alipay_auth

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

alipay auth

中文移步这里

contact us QQ:1552755354

What's alipay_auth #
alipay_auth is a flutter plugin for AliPayAuth.
Getting Started #
I highly recommend that you - read the official documents before using alipay_auth.
alipay_auth helps you to do something but not all. For example, you have to configure your URL Scheme on iOS.
AliPayAuth #
await AlipayAuthPlugin.aliPayAuth('your auth str');
copied to clipboard
The result is map contains results from AliPayAuth.The result also contains an external filed named platform
which means the result is from iOS or android. Result sample:
{
app_id: "",
auth_code:"",
result_code: SUCCESS,
scope: auth_user,
state: init,
platform: android
}
copied to clipboard
Check AliPay Installation #
var result = await isAliPayInstalled();
copied to clipboard
If you want to check alipay installation of Alipay on iOS,make sure you have added alipays into your whitelist in info.plist.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>alipay</string>
<string>alipays</string>
</array>
copied to clipboard
For iOS,yout have to add url schema named alipay. On Xcode GUI: url_schema
in your info.plist:
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>alipay</string>
<key>CFBundleURLSchemes</key>
<array>
<string>alipay_auth_example</string>
</array>
</dict>
</array>
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.