Coder Social home page Coder Social logo

tobias_no_utdid's Introduction

Tobias_no_utdid

支付宝SDK Flutter插件

注:此插件是Tobias兼容版,主要解决App已接入阿里百川等阿里系SDK,构建时可能发生utdid 库相关的冲突。

使用

支付
import 'package:tobias/tobias.dart' ;

final result = await aliPay('xxx');

/// 支付结果result
{
  "result": partner="2088411752388544"&seller_id="[email protected]"&out_trade_no="180926084213001"&subject="test pay"&total_fee="0.01"&notify_url="http://127.0.0.1/alipay001"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&it_b_pay="30m"&return_url="m.alipay.com"&success="true"&sign_type="RSA"&sign="nCZ8MDhsNvYNAbrLZJZ2VUy6vydgAp+JCq1aQo6ORDYtI9zwtnja3qNGQNiDJCuktoIj7fSTM487XhjPDqnOreZjIA1GJpxu9D1I3nMXIn1M7DfZ0noDwXcYZ438/jbYac7g8mhpwdKGweLCAni9mO3Y6q3iBFkox8i9PcsGxJY=",
  resultStatus: 9000,
  memo: "",
  platform:iOS
}
授权
aliPayAuth("xxx");
检查支付宝是否已安装
var result = await isAliPayInstalled();

IOS端原生工程配置

1.想要使用isAliPayInstalled检测支付宝是否已安装,需要在info.plist加入白名单 alipays
<key>LSApplicationQueriesSchemes</key>
<array>
	<string>alipays</string>
</array>
2.支付回调需要 info.plist中添加URL scheme:
<array>
    <dict>
    <key>CFBundleTypeRole</key>
        <string>Editor</string>
    <key>CFBundleURLName</key>
        <string>alipay</string>
    <key>CFBundleURLSchemes</key>
        <array>
	    <string>tobiasexample</string> 
        </array>
    </dict>
</array>

tobias_no_utdid's People

Contributors

zenganiu avatar

Watchers

 avatar

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.