PayPal PHP SDK - Logged out message on PayPal site - How to fix it?

nerdneedscoffee
Contributor
Contributor

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...."
   }
}

 

 

Login to Me Too
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.