All Projects → OpenFlutter → Tobias

OpenFlutter / Tobias

Licence: apache-2.0
AliPay For Flutter.支付宝Flutter插件

Projects that are alternatives of or similar to Tobias

Alipay
轻量的支付宝组件(A Lightweight Alipay Component)
Stars: ✭ 266 (-42.17%)
Mutual labels:  alipay
Oss.clients.pay
开源支付SDK(标准库),主要打造微信支付,支付宝支付,标准库项目,同时支持.net framework和.net core
Stars: ✭ 314 (-31.74%)
Mutual labels:  alipay
Easypay
[DEPRECATED]A simple frame for mobile pay in China, easy to use & expand . 简单易用的第三方可扩展支付框架。
Stars: ✭ 388 (-15.65%)
Mutual labels:  alipay
Ijpay
IJPay 让支付触手可及,封装了微信支付、QQ支付、支付宝支付、京东支付、银联支付、PayPal 支付等常用的支付方式以及各种常用的接口。不依赖任何第三方 mvc 框架,仅仅作为工具使用简单快速完成支付模块的开发,可轻松嵌入到任何系统里。右上角点下小星星✨
Stars: ✭ 3,561 (+674.13%)
Mutual labels:  alipay
Pay Php Sdk
PHP支付SDK(微信支付 + 支付宝支付)
Stars: ✭ 306 (-33.48%)
Mutual labels:  alipay
Php Practice
🌹 一天一点点,积少成多...
Stars: ✭ 351 (-23.7%)
Mutual labels:  alipay
java-pay
微信支付宝App、小程序、扫码支付、退款、提现案例
Stars: ✭ 40 (-91.3%)
Mutual labels:  alipay
Pay
可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了
Stars: ✭ 4,176 (+807.83%)
Mutual labels:  alipay
Alipay Php Sdk
支付宝即时到账 SDK 简化版(含移动网页支付)
Stars: ✭ 308 (-33.04%)
Mutual labels:  alipay
Alipayorderssupervisor
✨ 使用Node监视支付宝订单,即时通知服务器以实现免签约支付接口
Stars: ✭ 384 (-16.52%)
Mutual labels:  alipay
React Native Puti Pay
基于 React Native 的微信支付,支付宝支付插件
Stars: ✭ 277 (-39.78%)
Mutual labels:  alipay
Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (-36.3%)
Mutual labels:  alipay
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (-20.22%)
Mutual labels:  alipay
Stepchanger
步数修改器
Stars: ✭ 275 (-40.22%)
Mutual labels:  alipay
Jpay
🔥对微信App支付、支付宝App支付、银联APP支付的二次封装,对外提供一个相对简单的接口以及支付结果的回调
Stars: ✭ 394 (-14.35%)
Mutual labels:  alipay
Egg Commerce
Stars: ✭ 264 (-42.61%)
Mutual labels:  alipay
Gopay
golang支付:微信公众号,微信app,微信小程序,微信企业支付,支付宝网页版,支付宝app,支付宝企业支付
Stars: ✭ 313 (-31.96%)
Mutual labels:  alipay
Alipay
alipay
Stars: ✭ 421 (-8.48%)
Mutual labels:  alipay
Okam
Mini program development framework
Stars: ✭ 399 (-13.26%)
Mutual labels:  alipay
Profit
🤔 biezhi 在线打赏系统,开启你的要饭生涯。
Stars: ✭ 372 (-19.13%)
Mutual labels:  alipay

logo pub package

中文移步这里

QQ Group:892398530。

What's Tobias

Tobias is a flutter plugin for AliPaySDK.

Getting Started

I highly recommend that you read the official documents before using tobias. Tobias helps you to do something but not all. For example, you have to configure your URL Scheme on iOS.

Payment

It's simple,pass Tobias your order info from server :

import 'package:tobias/tobias.dart' ;
aliPay(yourOrder);

The result is map contains results from AliPay.The result also contains an external filed named platform which means the result is from iOS or android. Result sample:

{
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
}

NOTE:Tobias use pay_V2.

Auth

   aliPayAuth("your auth str");

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.

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>tobiasexample</string>
   			</array>
   		</dict>
   	</array>

You can also call tobias.version() which returns a map contains version and platform.

Upgrade to 1.0.0

There's no need to override AppDelegate since tobais 1.0.0. If you have done that before, please remove the following code in your AppDelegate:


- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
  return [TobiasPlugin handleOpenURL:url];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options
{
  return [TobiasPlugin handleOpenURL:url];
}

If you have to override these two functions, make sure you have called the super:


- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
    
  return [super application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options
{
    
  return [super application:application openURL:url options:options];
}

Donate

Buy me a cup of coffee。

Subscribe Us On WeChat

subscribe

LICENSE

Copyright 2018 OpenFlutter Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for
additional information regarding copyright ownership.  The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.  You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
License for the specific language governing permissions and limitations under
the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].