mi_pay

Last updated:

0 purchases

mi_pay Image
mi_pay Images
Add to Cart

Description:

mi pay

mi_pay #
Android小米联运支付SDK

微信sdk已内置

初始化sdk #
Future<void> initSDK({
required String appId,
required String appKey,
bool isDebug = false,
});
copied to clipboard
SDK状态回调 #
mixin SDKCallback{

void onInitSuccess(String info);
void onInitFailed(String info);

void onLoginSuccess(String accountInfo);
void onLoginFailed(int code);

void onPaySuccess(int type);
void onPayFailed(int type,int code ,String info);
void onPayCancel(int type);
}
copied to clipboard
获取登录状态 #
Future<bool> isLogin() ;
copied to clipboard
登录(自动登录,如果未登录则手动登录) #
Future<void> login();
copied to clipboard
支付(非消耗类商品) #
Future<void> payProduct({
required String productCode,
required int amount,
String? orderId,
});
copied to clipboard
支付(消耗型商品) #
Future<void> pay({
required int feeValue,
String? orderId,
});
copied to clipboard
订阅(非消耗型商品) #
Future<void> subscribeProduct({
required String productCode,
required int amount,
String? orderId,
});
copied to clipboard
订阅(消耗型商品) #
Future<void> subscribe({required int feeValue, String? orderId})
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.