当我使用 payu 付款时,它在 flutter iOS 中崩溃了

问题描述 投票:0回答:1

支付网关的 flutter iOS 设备中未发现支付选项错误

 showPaymentOption() {     onlineDepositeProvider         .getinitiatGatWayTrasaction(             "2", "4", amountController.text, "UPI", context)         .then((value) {           print("getinitiatGatWayTrasaction response ===== ${value.error}");       if (value.error == "0") {         checksum = value.checkSum;         salt = value.salt;         value.gateWayData.forEach((element) {           userId = element.userid.toString();           merchantKey = element.merchantKey;           callbackurl = element.callbackurl;           email = element.email;           mobile = element.mobile;           fullname = element.fullname;           txnid = element.txnid;         });         checkoutPro!.openCheckoutScreen(           payUPaymentParams: {           PayUPaymentParamKey.key: merchantKey,           PayUPaymentParamKey.amount: amountController.text,           PayUPaymentParamKey.productInfo: userId,           PayUPaymentParamKey.firstName: fullname,           PayUPaymentParamKey.email: email,           PayUPaymentParamKey.phone: mobile,           PayUPaymentParamKey.environment: "0",           // String - "0" for Production and "1" for Test           PayUPaymentParamKey.transactionId: txnid,           // transactionId Cannot be null or empty and should be unique for each transaction. Maximum allowed length is 25 characters. It cannot contain special characters like: -_/           PayUPaymentParamKey.userCredential: ":1000",           //  Format: <merchantKey>:<userId> ... UserId is any id/email/phone number to uniquely identify the user.           PayUPaymentParamKey.android_surl: callbackurl,           PayUPaymentParamKey.android_furl: callbackurl,           PayUPaymentParamKey.ios_surl: callbackurl,           PayUPaymentParamKey.ios_furl: callbackurl,         }, payUCheckoutProConfig: {           PayUCheckoutProConfigKeys.merchantName: fullname,         }).then((value){           print("value ============== $value");         });         isEnable = true;         setState(() {});       }     });   } No payment option error show in flutter iOS but it work perfectly for android but when I am test it in iOS then it is not working , I have tried it many times but not work it properly. 
ios flutter payu
1个回答
0
投票

“请检查您的订单ID,其中包含特殊字符,将其删除,即可顺利使用。” “如果仍然不起作用,请重写 onError 函数并打印响应。在错误消息中查找错误。”

© www.soinside.com 2019 - 2024. All rights reserved.