alipay_me 1.0.0 copy "alipay_me: ^1.0.0" to clipboard
alipay_me: ^1.0.0 copied to clipboard

Alipay plug-in. Support payment and authorized login. Support Android and iOS. Android supports local computational signatures.

alipay_me #

pub package GitHub GitHub stars

Alipay plug-in. Support payment and authorized login. Support Android and iOS. Android supports local computational signatures.

Usage #

To use this plugin, add alipay_me as a dependency in your pubspec.yaml file.

ROADMAP #

  • 发起支付
  • 授权登录
  • 本地计算签名(仅Android)
  • 沙盒模式(仅Android)

Supported Platforms

  • Android
  • IOS

Examples #

  • Examples App - Demonstrates how to use the alipay_me plugin.
import 'package:alipay_me/alipay_me.dart';

  // 初始化
  initAlipay() async {
    final String tid = "tid_${DateTime.now().millisecondsSinceEpoch}";
    await AlipayMe.init(
        appId: "2019010362782013",
        pid: "2088012716890635",
        rsa2Private: RSAPrivate,
        targetId: tid
    );
  }
  
  // 发起支付
  var o = await AlipayMe.pay(apyInfo,
      urlScheme: "alisdkdemo",  // 这里的URL Schemes中输入的alisdkdemo,为测试demo,实际商户的app中要填写独立的scheme
      isSandbox: _isSandbox,
   );

  //授权申请
  await AlipayMe.auth(
        urlScheme: "alisdkdemo", // 这里的URL Schemes中输入的alisdkdemo,为测试demo,实际商户的app中要填写独立的scheme
        isSandbox: _isSandbox,
        authInfo: data,
      );
  

License MIT #

Copyright (c) 2019

2
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Alipay plug-in. Support payment and authorized login. Support Android and iOS. Android supports local computational signatures.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on alipay_me