Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiqimanbu/flutter_alipay_auth
基于flutter的支付宝授权登录插件,同时支持Android、IOS
https://github.com/yiqimanbu/flutter_alipay_auth
alipay alipayauth alipaysdk flutter
Last synced: 2 months ago
JSON representation
基于flutter的支付宝授权登录插件,同时支持Android、IOS
- Host: GitHub
- URL: https://github.com/yiqimanbu/flutter_alipay_auth
- Owner: yiqimanbu
- License: bsd-3-clause
- Created: 2022-09-15T03:28:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T10:21:50.000Z (over 2 years ago)
- Last Synced: 2024-09-30T12:04:54.594Z (3 months ago)
- Topics: alipay, alipayauth, alipaysdk, flutter
- Language: C++
- Homepage:
- Size: 552 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[中文移步这里](https://github.com/yiqimanbu/flutter_alipay_auth/blob/main/README_CN.md)
>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](https://opendocs.alipay.com/open/218/sxc60m) 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');
```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
}
```# Check AliPay Installation
```
var result = await isAliPayInstalled();
```If you want to check alipay installation of Alipay on iOS,make sure you have added alipays into your whitelist in info.plist.
```
LSApplicationQueriesSchemesalipay
alipays```
For iOS,yout have to add url schema named alipay. On Xcode GUI: url_schema
in your info.plist:```
CFBundleTypeRole
Editor
CFBundleURLName
alipay
CFBundleURLSchemes
alipay_auth_example
```