我正在使用Paypal此处应用程序的sideloader功能。 如here所述。
它正在启动该应用程序,但是在IOS和Android上,这都只会导致该应用程序收到“无法加载发票明细”错误。
我尝试使用base64
和json
的发票数据,但是它们都返回相同的错误,我也看不到发票数据有问题,我已经删除了零件并向其中添加了零件测试,但无济于事。
JSON发票数据
{
"paymentTerms": "DueOnReceipt",
"merchantEmail": "gjcroxford@gmail.com",
"currencyCode": "USD",
"itemList": {
"item": {
"name": "Disney Winnie the Pooh Eeyore & Piglet A Grand Adventure Mug",
"description": "TEST",
"quantity": 1,
"unitPrice": 9.95
}
}
}
以下是带有JSON数据的URL的示例:
paypalhere://takePayment/v2?accepted=cash%2Ccard%2Cpaypal%26step%3DchoosePayment%26returnUrl%3Dhttps%3A%2F%2Foms.custom-gateway.net%2Fv2%2Fpayment%2Fpaypal-here%2Fcomplete%3Ftype%3D%7BType%7D%26invoiceId%3D%7BInvoiceId%7D%26sid%3DA27B217E855B9F7E275b9f7e28291b5%26invoice%3D%7B%22paymentTerms%22%3A%22DueOnReceipt%22%2C%22merchantEmail%22%3A%22gjcroxford%40gmail.com%22%2C%22currencyCode%22%3A%22USD%22%2C%22itemList%22%3A%7B%22item%22%3A%7B%22name%22%3A%22Disney%20Winnie%20the%20Pooh%20Eeyore%20%26%20Piglet%20A%20Grand%20Adventure%20Mug%22%2C%22description%22%3A%22TEST%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A9.95%7D%7D%7D
base64数据:
paypalhere://takePayment/v2?as=b64%26accepted%3Dcash%2Ccard%2Cpaypal%26step%3DchoosePayment%26returnUrl%3Dhttps%3A%2F%2Foms.custom-gateway.net%2Fv2%2Fpayment%2Fpaypal-here%2Fcomplete%3Ftype%3D%7BType%7D%26invoiceId%3D%7BInvoiceId%7D%26sid%3DA27B217E855B9F7E275b9f7e28291b5%26invoice%3DeyJwYXltZW50VGVybXMiOiJEdWVPblJlY2VpcHQiLCJtZXJjaGFudEVtYWlsIjoiZ2pjcm94Zm9yZEBnbWFpbC5jb20iLCJjdXJyZW5jeUNvZGUiOiJVU0QiLCJpdGVtTGlzdCI6eyJpdGVtIjp7Im5hbWUiOiJEaXNuZXkgV2lubmllIHRoZSBQb29oIEVleW9yZSAmIFBpZ2xldCBBIEdyYW5kIEFkdmVudHVyZSBNdWciLCJkZXNjcmlwdGlvbiI6IlRFU1QiLCJxdWFudGl0eSI6MSwidW5pdFByaWNlIjo5Ljk1fX19