User not getting charged

sharik709
Contributor
Contributor

On my website user fill out checkout details, add items and click pay now with PayPal. User gets redirected to PayPal. User login with his/her PayPal credentials, confirm and pay and then user is redirected to success page on my site. That's I guess a regular flow. All these things happen but user is not getting charged.

 

When PayPal redirect user to success page. It sends

fallback=1&reason=bootstrap_failed

 

I get state as "created". I thought it might be the "intent" I used all three intent "sale", "order" and "authorize". But none of these are charging User. I stored PayPal response in database and here is how it looks.

{  
   "\u0000PayPal\\Common\\PayPalModel\u0000_propMap":{  
      "id":"PAY-1234567890",
      "intent":"authorize",
      "state":"created",
      "cart":"123456789",
      "payer":{  
      },
      "transactions":[  
         {  
         }
      ],
      "redirect_urls":{  
      },
      "create_time":"2018-03-22T23:16:36Z",
      "update_time":"2018-03-22T23:19:32Z",
      "links":[  
         {  
         },
         {  
         },
         {  
         }
      ]
   }
}

 

I'm using PayPal Payment SDK. My Site is build with Laravel 5.6.

 

 

Thank you for allowing me to post here for help.

Login to Me Too
1 REPLY 1

MTS_Justin
Moderator
Moderator
Hi,

Looks like you have only "created" the payment, you still need to "execute" it for the funds to be transferred.

Review the REST API reference here : https://developer.paypal.com/docs/api/payments/

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.