RechargeUtil class

单例的公共类-系统配置,充值,礼物 main.dart中设置 if (Platform.isAndroid) { InAppPurchaseAndroidPlatformAddition.enablePendingPurchases(); } 初始化 initInAppPurchase

Constructors

RechargeUtil()
factory

Properties

connection ↔ InAppPurchase
getter/setter pair
delegate OnRechargePluginDelegate
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxIndex int
getter/setter pair
meUser String?
getter/setter pair
orderId String?
getter/setter pair
payInType String?
getter/setter pair
payPrice String?
getter/setter pair
products List
getter/setter pair
rechargeError String?
getter/setter pair
rechargePay List?
getter/setter pair
rechargePP List?
支付
getter/setter pair
restored bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showInPay bool
getter/setter pair
showLoading bool
getter/setter pair
showPay bool
getter/setter pair
showPPY bool
getter/setter pair
subscription StreamSubscription<List<PurchaseDetails>>
getter/setter pair
timer Timer?
getter/setter pair

Methods

checkInPay({bool first = true}) Future
checkInPayPurchase(String? token, String? orderId, String? productID, {String? sign, String? price, bool first = false, bool refresh = false, PurchaseDetails? purchaseDetail, int index = 1, int indexNum = 1, int indexNumNext = 1}) Future
checkInPayPurchaseVip(String? token, String? orderId, String? productID, {String? sign, String? price, bool first = false, bool refresh = false, PurchaseDetails? purchaseDetail, int index = 1, int indexNum = 1, int indexNumNext = 1}) Future
checkPpyPurchase(dynamic orderId, {bool first = false}) → void
clearRechargeList() → void
compareString(String? str) String
completePurchaseInPay(PurchaseDetails? purchaseDetail) Future
connectionInPay(String? id, String? payId, String? price, {String? inType}) Future
connectionInPayVip(String id, String? payId, String price) → void
connectionPP(String? payId, String? price, {dynamic back}) Future
单独使用支付等
dispose() → void
getRechargeList(dynamic callback, dynamic changed, {String type = '0', bool mode = true, bool pop = true, bool cache = true}) → void
审核模式-mode:true审核模式,false正式模式
initInAppPurchase(OnRechargePluginDelegate delegate) → void
listenToPurchaseUpdated(List<PurchaseDetails?> purchaseDetailsList) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paymentQueueWrapper({String? payId, bool delayed = true, bool finish = true}) Future
purchaseUpdated(PurchaseDetails purchaseDetail) Future
queryPastPurchases({bool first = false, bool refresh = false}) Future
rechargeInList(dynamic callback, dynamic type, dynamic changed, {bool pop = false}) → void
rechargePpyList(dynamic callback, dynamic type, dynamic changed, dynamic pop, dynamic inApp) → void
showInPayDialog(String? token, String? orderId, String? productID, {String? sign, String? price, bool showLeft = true, bool restored = false}) → void
startInPayPurchase(String? token, String? orderId, String? productID, {String? sign, String? price, bool first = false, int index = 1, int indexNum = 1, int indexNumNext = 1}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance RechargeUtil?
no setter