我试图根据以下文档将巴西PayPal Plus集成
https://developer.payvelighter.paypal.com/develicer.paypal.com/develi /payment-selection-page/
我从文件
ppplusdcc.js:格式化:5349未访问的typeerror:无法阅读
未定义的属性(读取“ substr”)
在function.q [as docheckout](ppplusdcc.js:格式:5349:25)
在swagpaypalpluspaymentwall.afterpayorder(payment-wall.js?27e3:300:1)
在xmlhttprequest.eval(http-client.service.js?93cb:133:1)
文件中的cookie名称是paypalplus_session,
如果我们打印cookie,我们会得到以下值
collectBillingAddress:false
国家:“ BW”
disallyrememberedcard:false
Ectoken:“ EC-87B846367D652562M”
语言:“ en_gb”
模式:“沙盒”
付款人邮件:“ ”
PAYERFIRSTNAME:“ John”
PAIMERLASTNAME:“ DOE”
付费电话:“ 0634312345”
payertaxid:“”
payertaxidtype:“”
记住:“”
第三疗法:{}
UserAction:“ commit”
[[原型]]:对象
从ppplusdcc.min.js文件中的cookie访问对象'PaymentMethod'变量。但是它实际上不存在于cookie中。
有人知道为什么cookie中未设置“付款方式”变量?
I am trying to integrate Paypal plus for Brazil(Sandbox) based on the following documentation
https://developer.paypal.com/docs/regional/br/payment-selection-page/
I am getting the error from https://www.paypalobjects.com/webstatic/ppplusdcc/ppplusdcc.min.js file
ppplusdcc.js:formatted:5349 Uncaught TypeError: Cannot read
properties of undefined (reading 'substr')
at Function.Q [as doCheckout] (ppplusdcc.js:formatted:5349:25)
at SwagPayPalPlusPaymentWall.afterPayOrder (payment-wall.js?27e3:300:1)
at XMLHttpRequest.eval (http-client.service.js?93cb:133:1)
The cookie name inside the file is paypalplus_session
If we print the cookie we get the following values
collectBillingAddress: false
country: "BW"
disallowRememberedCards: false
ecToken: "EC-87B846367D652562M"
language: "en_GB"
mode: "sandbox"
payerEmail: "[email protected]"
payerFirstName: "John"
payerLastName: "Doe"
payerPhone:"0634312345"
payerTaxId: ""
payerTaxIdType: ""
rememberedCards: ""
thirdPartyMethods: {}
useraction: "commit"
[[Prototype]]: Object
'paymentMethod' variable is accessed from the cookie in ppplusdcc.min.js file. but it actually does not exist in the cookie.
Does anybody know why the 'paymentMethod' variable is not set in the cookie?
发布评论
评论(1)
创建国家:巴西。
创建
更改您的集成以使用该应用程序的客户端ID和所有API调用的秘密。
Create a sandbox Business account of country: Brazil.
Create a REST App for that Brazil account.
Change your integration to use that App's client-id and secret for all API calls.