OpenFlutter / OpenFlutter/tobias

Flutter IOS 从支付宝跳转回app 收不到回调

Open
#128 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
749
Forks
138
Avg merge
1h 8m
Merged PRs (30d)
2

Description

支付成功之后,在安卓平台正常。
在iOS平台,支付宝可以跳回app,但app收不到支付宝的成功失败回调。
试了改了url scheme,还是不起作用。
URL Scheme设置:

CFBundleTypeRole
Editor
CFBundleURLName
alipay
CFBundleURLSchemes

alipaytobias


支付代码:
// 支付宝支付
var rst = await createOrderAliPay({
"orderNum": orderid,
});
tobias.aliPay(rst).then((val) {
这么什么都没有返回,好像就没有进到这个里面。
print(val['resultStatus']);
EasyLoading.dismiss();
if (val['resultStatus'] == '6001') {
EasyLoading.showToast("取消支付");
// Get.back();
}
if (val['resultStatus'] == '9000') {
_productInfoController.onDeleteCart();
EasyLoading.showSuccess('支付成功');
Get.toNamed("/paySuccessPage");
}
});
这个是什么问题,着急已经好长时间了,URL Scheme的设置也改了好几次了依旧不知道是什么问题
有哪位知道的吗?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Flutter call to tobias.aliPay(rst) and the iOS URL Scheme configuration shown in the issue. Trace the iOS payment-return callback and reproduce a successful or cancelled payment. Done means the callback returns a result to the Dart then handler on iOS, including the documented status values.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, objective-c
Domain
mobile-dev, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.