PayPal Checkout order total display not being updated after PATCH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When using PayPal Checkout to process payment we have a case where the user initiates payment before the application has their zip code to calculate shipping and tax. We've managed to handle this using the steps below, but when following those steps the cart total is not updated on PayPal's interface.
Render Paypal button using paypal.Buttons() method
Create order by sending purchase_units info with currency_code and value
In onShippingChange method fetch the already saved address in User’s paypal account and make HTTP calls to our APIs, recalculate the Order Total and add Shipping Charges.
Patch the order to Paypal interface using actions.order.patch method with operation as replace
Patch request is successful and we are getting Success message from Paypal
In this scenario the order is placed successfully with the patched order total, but it is not visible to the user until checkout is completed and they are forwarded back to our application. We have confirmed this by viewing the transactions on our sandbox account.
The screenshot below shows the PayPal checkout window after the order has been patched, but the total is not reflecting the patched amount.
This screenshot shows the patch request body for the session in the screenshot above
This screenshot shows some of the headers, including the response status code for the request above
Any help would be greatly appreciated.
Thanks.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Change the button from Sandbox to Production in REST APIs
- The Advanced Credit Card Option from PayPal Advanced Checkout SDK is displaying different UIs. in PayPal Upgrade Community
- Error: Payment gateway is unavailable in PayPal Payments Standard
- Web address change in PayPal Payments Standard
- new wordpress paypal plugin in PayPal Payments Standard