陳宇楽
陳宇楽
  • 发布:2023-12-14 14:31
  • 更新:2024-12-24 18:09
  • 阅读:1694

paypal支付唤起登录之后然后一直转圈,uni.requestPayment一直停留在这,success一直没有返回

分类:uni-app
let orderInfo = {  
                    clientId: res.data.client_id, //客户端id  
                    orderId: res.data.id, //订单id  
                    userAction: 'continue', //  paynow/continue  
                    currency: 'HKD', //币种  
                    environment: 'sandbox', //运行环境 sandbox/live  
                };  
                uni.getProvider({  
                    service: 'payment',  
                    success: function(data) {  
                        if (~data.provider.indexOf('paypal')) {  
                            console.log(4566, res.data.client_id, res.data.id)  
                                uni.requestPayment({  
                                    "provider": 'paypal',  
                                    "orderInfo": orderInfo,  
                                    success: async function(res) {  
                                        console.log(5678)  
                                        var rawdata = JSON.parse(res.rawdata);  
                                        console.log("orderId:" + rawdata.orderId);  
                                        let res1 = await api.capture_paypal_order({orderId:rawdata.orderId,reference_id:res.reference_id});  
                                        console.log(567778,JSON.parse(res1))  
                                    },  
                                    fail: function(err) {  
                                        console.log('fail:' + JSON.stringify(err))  
                                        console.log(5679)  
                                    },  
                                })  
                        } else {  
                            uni.showToast({  
                                title: '抱歉,当前您的系统暂不支持使用Paypal支付。',  
                                icon: 'none'  
                            })  
                        }  
                    },  
                })
2023-12-14 14:31 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com - 波仔

我的也是一样 你的解决了吗

Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

是不是有些配置没有配置呢,看看有没有类似情况:https://ask.dcloud.net.cn/question/153205

  • 1***@qq.com

    它可以唤起支付 但是 登录用户名和密码之后就一直在转圈圈

    2023-12-18 16:43

  • 陳宇楽 (作者)

    这个后台配置我按照文档操作了

    2023-12-19 12:48

  • 陳宇楽 (作者)

    回复 1***@qq.com: 你解决了吗

    2023-12-19 17:07

  • 陳宇楽 (作者)

    回复 1***@qq.com: 你有解决嘛

    2023-12-21 18:14

  • 陳宇楽 (作者)

    没有用

    2024-01-30 10:39

  • r***@thintlgroup.com

    回复 1***@qq.com: 请问解决了吗,我也是这个问题

    2024-04-03 15:49

  • r***@thintlgroup.com

    回复 陳宇楽: 请问解决了吗。我也遇到了这个问题

    2024-04-03 15:50

  • 柏林998

    回复 r***@thintlgroup.com: 解决了嘛兄弟

    2024-04-18 17:23

  • 我啥也不会啊

    回复 1***@qq.com: 解决了么兄弟

    2024-05-15 14:25

我啥也不会啊

我啥也不会啊 - 我啥也不会啊

搞定了么兄弟们

我啥也不会啊

我啥也不会啊 - 我啥也不会啊

根本没人搭理,下个项目准备弃坑了,uniapp坑有点多

2***@qq.com

2***@qq.com - 暂无

我知道这么解决

  • 1***@qq.com

    怎么解决的?我也到这一步了

    2025-09-30 18:49

要回复问题请先登录注册