Skip to content

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

Open
@Time-lass

Description

@Time-lass

支付成功之后,在安卓平台正常。
在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的设置也改了好几次了依旧不知道是什么问题
有哪位知道的吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions