Giter VIP home page Giter VIP logo

alipay_me's Introduction

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.

阿里蚂蚁金服开放平台: https://openhome.alipay.com/platform/appManage.htm

支付宝登录文档: https://docs.open.alipay.com/218/105326/

支付宝支付文档: https://docs.open.alipay.com/204/105295/

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

alipay_me's People

Contributors

yangyxd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alipay_me's Issues

not find

Could not find :alipaySdk-15.5.9-20181123210601:.
Searched in the following locations: file:/E:/flutterSpace/love-flutter/android/app/libs/alipaySdk-15.5.9-20181123210601.aar
Required by:
project :app > project :alipay_me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.