18 lines
476 B
Dart
18 lines
476 B
Dart
import 'package:flutter_keychain/flutter_keychain.dart';
|
|
|
|
class IAPPendingOrderService {
|
|
static const _key = 'hi_iap_pending_order_no';
|
|
|
|
static Future<void> setPendingOrderNo(String orderNo) async {
|
|
await FlutterKeychain.put(key: _key, value: orderNo);
|
|
}
|
|
|
|
static Future<String?> getPendingOrderNo() async {
|
|
return await FlutterKeychain.get(key: _key);
|
|
}
|
|
|
|
static Future<void> clearPendingOrderNo() async {
|
|
await FlutterKeychain.remove(key: _key);
|
|
}
|
|
}
|