PayPal PHP SDK - Logged out message on PayPal site - How to fix it?
nerdneedscoffee
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-08-2019
05:22 AM
Hi,
i'd started to use the PHP SDK to integrate PayPalPlus into my Shop.
After transmitting all date i'm getting an approval URL and placing it with the following HTML snippet into the website.
If i'm clicking continue, PayPal says that they logged me out and i need to go back to the shop to start again, but why and how can fix it?
Thanks for help!
var ppp = PAYPAL.apps.PPP(<f:format.raw>{</f:format.raw>
"approvalUrl": "{approvalUrl}",
"placeholder": "ppplus",
"mode": "sandbox",
"country": "DE"
<f:format.raw>}</f:format.raw>);
{
"intent":"sale",
"payer":{
"payment_method":"paypal",
"payer_info":{
"email":"....EMAIL....",
"billing_address":{
"line1":"test 123 ",
"city":"test",
"country_code":"DE",
"postal_code":"12345"
},
"shipping_address":{
"recipient_name":" ",
"line1":"test 123 ",
"city":"test",
"country_code":"DE",
"postal_code":"12345"
}
}
},
"transactions":[
{
"item_list":{
"items":[
{
"name":"...PRODUCT_NAME...",
"currency":"EUR",
"quantity":1,
"price":"3.42",
"sku":"1009"
}
]
},
"amount":{
"total":"8.65",
"currency":"EUR",
"details":{
"subtotal":"3.42",
"tax":"0.24",
"shipping":"4.99"
}
},
"invoice_number":"2549"
}
],
"redirect_urls":{
"return_url":"....SUCCESS_URL....",
"cancel_url":"....CANCEL_URL...."
}
}
Labels:
- Labels:
-
REST SDK
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Sandbox testing has beaten me !! in Sandbox Environment
- SetExpressCheckout 10003 error with ITEMCATEGORY=Digital in NVP/SOAP APIs
- We're not currently set up for transactions in India. in PayPal Payments Standard
- IPN works in sandbox but not live in Sandbox Environment
- Connecting with site to take payments in Payflow