User not getting charged
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs
- Button in PayPal Payments Standard
- I want to implement subscription functionality. in REST APIs
- How can I integrate PayPal to enable direct tipping features between users on a content platform? in REST APIs
- Subscription notifications in PayPal Reporting