Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 76 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,136 +1,180 @@
# 4.0.0
## 4.0.1

* 新增对 OpenHarmony 的支持

## 4.0.0

* iOS中的AliPay SDK升级到15.8.18
* iOS的支付功能需要添加universal link

# 3.3.2
## 3.3.2

* Merge #155: 增加iOS privacy manifest

# 3.3.1
## 3.3.1

* Android 增加namespace

# 3.3.0
## 3.3.0

* AliPay SDK升级到15.8.17

# 3.2.2
## 3.2.2

* Fix #151

# 3.2.1
## 3.2.1

* iOS新增ignore_security选项,详见#576

# 3.2.0
## 3.2.0

* AliPay SDK升级到15.8.15
* iOS切换至xcframework

# 3.1.3
## 3.1.3

* 修复Flutter module编译问题
* 降级SDK约束以支持dart 2.

# 3.1.2
## 3.1.2

* 支持检查AliPay HongKong是否安装

# 3.1.1
## 3.1.1

* 优化iOS yaml读取.

# 3.1.0
## 3.1.0

* iOS支持在pubspec.yaml中设置是否使用no_utdid.

# 3.0.0
## 3.0.0

* 重构Flutter端
* 现在可以在pubspec.yaml里直接配置url_schme
* 自动在iOS添加Queries

## 2.4.2
* compileSdkVersion -> compileSdk

* compileSdkVersion -> compileSdk

## 2.4.1+1

* Kotlin 1.7.10
* AGP 7.4.1

## 2.4.1

* 更新原生SDK
* 升级Kotlin

## 2.4.0+2

* 更新文档

## 2.4.0+1

* 修复iOS编译问题

## 2.4.0

* 升级SDK到15.8.08

## 2.3.0

* Update Android configurations

## 2.2.0

* Update AlipaySDK to 15.8.06

## 2.1.2+1

* Update compileSdk version to 30

## 2.1.2

* Use Android no-uuid sdk

## 2.1.1

* Merge #99
* Update Android SDK to 15.08.03

## 2.1.0

* NullSafety

## 2.0.0-nullsafety.3

* Fix #82

## 2.0.0-nullsafety.2

* Update dependency

## 2.0.0-nullsafety.1

* Support NullSafety

## 1.7.1+3

* Fix #82

## 1.7.1+2

* Update libs.

## 1.7.1+1

* Fix #57

## 1.7.1

* Fix #55

## 1.7.0

* 支付SDK升级至15.7.9
* 兼容Flutter 1.20
* Android 依赖升级

## 1.6.1+1

* 删除不必要的权限
* Android的支付宝SDK升级到15.7.6

## 1.6.1

* Android的支付宝SDK升级到15.7.5
* iOS的支付宝SDK升级到15.7.4
* Kotlin->1.3.72

## 1.6.0+1

* 升级

## 1.6.0

* Fix #41
* 升级kotlin coroutine

## 1.5.0

* 改进Android代码

## 1.4.0

* 修复1.3.0的问题

## 1.3.0

* 删除过时方法
* 升级Android plugin以兼容新API

## 1.2.3

* Android的支付宝SDK升级到15.7.3

## 1.2.2
Expand All @@ -152,71 +196,89 @@
* 修复ios获取版本的bug。

## 1.1.0+1

* 兼容swift

## 1.1.0

* 升级sdk,同时ios源换成官方源

## 1.0.0+1

* 按照pub意见进行修改

## 1.0.0

* ios不必重写AppDelegate

## 0.1.6+2

* 按照pub意见进行修改

## 0.1.6+1

* 按照pub意见进行修改

## 0.1.6

* 支付宝SDK升级到15.6.4
* 升级Kotlin

## 0.1.5

* 支持检查客户端是否安装了支付宝App。

## 0.1.4

* Fix #18

## 0.1.3
* Android支持沙箱了

* Android支持沙箱了

## 0.1.2

* 修复在ios上调用登录报错的问题

## 0.1.1

* 修复ios上通过webview登录无回调的问题

## 0.1.0

* 支持支付宝登录了。

## 0.0.8

* kotlin升级至1.3.21
* kotlinx-coroutines升级至1.1.1
* AliPaySDK升级至15.6.0

## 0.0.7

* android构建工具升级
* AliPaySDK升级至15.5.9

## 0.0.6

* android构建工具升级
* AliPaySDK升级至15.5.7

## 0.0.5

* *build.gradle*升级到了*3.2.0*
* *kotlin*升级到了*1.2.71*

## 0.0.4

* 修复iOS无回调问题

## 0.0.3

* 删除AliPayModel

## 0.0.2

* 修复iOS支付bug

## 0.0.1
Expand Down
41 changes: 31 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
![logo](./arts/tobias_logo.png)

[![pub package](https://img.shields.io/pub/v/tobias.svg)](https://pub.dartlang.org/packages/tobias)
![Build status](https://github.com/OpenFlutter/tobias/actions/workflows/build_test.yml/badge.svg)
[![GitHub stars](https://img.shields.io/github/stars/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/network)
[![GitHub license](https://img.shields.io/github/license/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/issues)
<a target="_blank" href="https://qm.qq.com/q/TJ29rkzywM"><img border="0" src="https://pub.idqqimg.com/wpa/images/group.png" alt="OpenFlutter" title="OpenFlutter"></a>

[中文移步这里](./README_CN.md)

Expand All @@ -9,27 +16,43 @@

## What's Tobias

Tobias is a flutter plugin for AliPaySDK.
Tobias is a flutter plugin for AliPaySDK, works on iOS, Android and OpenHarmony

## Getting Started

I highly recommend that you read [the official documents](https://docs.open.alipay.com/204/105051/) before using tobias.

1. You have to config `url_scheme` in [pubspec.yaml](./example/pubspec.yaml). Url scheme is a unique string to
1. You have to config `url_scheme` in [pubspec.yaml](./example/pubspec.yaml). Url scheme is a unique string to
resume you app on iOS but please note that `_` is invalid.

2. for OpenHarmony, you have to add scheme `alipays` to module.json5 in your project like this:

```json5
{
"module": {
"querySchemes": [
"alipays"
],
}
}
```

## Payment

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

```dart
import 'package:tobias/tobias.dart' ;
Tobias tobias = Tobias();
tobias.pay(yourOrder);
```

If you're working with iOS, please add and pass universal link. See [how to configure universal link](https://opendocs.alipay.com/open/0b9qzi).

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:

```dart
{
result: partner="2088411752388544"&seller_id="etongka123@163.com"&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=",
Expand All @@ -39,9 +62,9 @@ resultStatus: 9000,
}

```

> NOTE:Tobias use pay_V2.

> If you're facing conflicts with `utdid` on iOS, you can set `no_utdid: true` in [pubspec.yaml](./example/pubspec.yaml)

## Auth
Expand All @@ -61,10 +84,9 @@ var result = await tobias.isAliPayInstalled;

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
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`:

```objective-c
Expand All @@ -79,6 +101,7 @@ the following code in your `AppDelegate`:
```

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

```objective-c

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
Expand All @@ -92,20 +115,18 @@ If you have to override these two functions, make sure you have called the `supe
}
```



### Donate

Buy me a cup of coffee。

<img src="./arts/wx.jpeg" height="300"> <img src="./arts/ali.jpeg" height="300">


### Subscribe Us On WeChat

![subscribe](./arts/wx_subscription.png)

## LICENSE


Copyright 2018 OpenFlutter Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
Expand Down
Loading