我已使用此链接示例代码来集成 PayUhttps://github.com/payu-intrepos/Android-SDK-Sample-App https://github.com/payu-intrepos/Android-SDK-Sample-App
如需了解更多信息,您可以在此处查看 Android PayU SDK 集成https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration
我认为你没有传递所有参数
我已经使用下面的参数完成了这样的操作
String merchantKey = "YOUR_KEY";
String mandatoryKeys[] = { PayuConstants.KEY, PayuConstants.AMOUNT, PayuConstants.PRODUCT_INFO,
PayuConstants.FIRST_NAME, PayuConstants.EMAIL, PayuConstants.TXNID, PayuConstants.SURL,
PayuConstants.FURL, PayuConstants.USER_CREDENTIALS, PayuConstants.UDF1, PayuConstants.UDF2,
PayuConstants.UDF3, PayuConstants.UDF4, PayuConstants.UDF5, PayuConstants.ENV};
String mandatoryValues[] = { merchantKey, "10.0", "myproduct", "firstname", "[email protected] /cdn-cgi/l/email-protection",
""+System.currentTimeMillis(), "https://payu.herokuapp.com/success",
"https://payu.herokuapp.com/failure", merchantKey+":[email protected] /cdn-cgi/l/email-protection",
"udf1", "udf2", "udf3", "udf4", "udf5", ""+PayuConstants.PRODUCTION_ENV};