90后菜鸟
90后菜鸟
  • 发布:2020-06-11 11:58
  • 更新:2020-06-11 11:58
  • 阅读:905

IOS应用内支付

分类:HBuilderX
App

昨天还是好好的 今天就获取不到支付通道了 有没有人知道是啥问题

getIOSPay() {  
            var IAPOrders;  
            var _this = this;  
            // 获取支付通道  
            plus.payment.getChannels(  
                function(channels) {  
                    console.log(channels);  
                    for (var i in channels) {  
                        if (channels[i].id == 'appleiap') {  
                            console.log(channels[i]);  
                            var iapChannel = channels[i];  
                            iapChannel.requestOrder(  
                                ['monthVips','fanyin.year.vip'],  
                                function(event) {  
                                    console.log('--------------');  
                                    console.log(event);  
                                },  
                                function(errormsg) {  
                                    console.log('获取支付通道失败:' + errormsg.message);  
                                }  
                            );  
                        }  
                    }  
                },  
                function(e) {  
                    console.log('获取支付通道失败:' + e.message);  
                }  
            );  
        },

获取支付通道失败:Payment_appleiap:Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={AMSStatusCode=502, NSLocalizedDescription=Invalid Status Code, NSLocalizedFailureReason=The response has an invalid status code},

2020-06-11 11:58 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复