RechargeUtils class
单例的公共类-系统配置,充值,礼物 main.dart中设置 if (Platform.isAndroid) { InAppPurchaseAndroidPlatformAddition.enablePendingPurchases(); } 初始化 initInAppPurchase
Constructors
- RechargeUtils()
-
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
- rechargeError ↔ String?
-
getter/setter pair
-
rechargeModels
↔ Map<
RechargeTypeList, List< RechargeList> > -
支付
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
-
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 show = false, int type = 0, int index = 1, int indexNum = 1, int indexNumNext = 1}) → Future -
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 - 单独使用支付等
-
connectionTBF(
String? payId, String? price, dynamic req, {dynamic back}) → Future -
dispose(
) → void -
getRechargeList(
dynamic changed, {String type = '0', bool mode = true, bool pop = true, bool cache = true}) → Future< 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 -
popDialog(
) → bool -
purchaseUpdated(
PurchaseDetails purchaseDetail) → Future -
queryPastPurchases(
{bool first = false, bool refresh = false}) → Future -
rechargeInList(
String type, RechargeTypeList codeType, {bool pop = false}) → Future -
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 → RechargeUtils
-
no setter