Applying Taxes with Payments REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When creating a payment with the Payments REST API, if you do not pass a shipping address, it is possible for the customer to update their shipping address in the paypal pop-up window before completing their payment. If they do this, how can I execute a callback to my server to update the amount in taxes that they should be charged based on their updated shipping address? Ideally, they complete their purchase in the pop-up window without having to be redirected to a review page on my site.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, in REST you first create the payment and then you need to call the execute method to execute it. In between you can call the
payment_id
to get the payment details and if the address is changed then you have 2 options:
1) before to call POST /v1/payments/payment/payment_id
/payment_id
to amend the tax value.
2) when you call POST /v1/payments/payment/payment_id
/
References:
Get details: https://developer.paypal.com/docs/api/payments/#payment_get
Update PATCH : https://developer.paypal.com/docs/api/payments/#payment_update

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Configure PayPal Payments to calculate Taxes automatically in REST APIs
- Im am a developer and i am having issues getting google pay to work on my account. in Sandbox Environment
- How to apply for ADVANCED CREDIT AND DEBIT CARD PAYMENTS in the U.K ? in PayPal Payments Standard
- cant apply Advanced Credit and Debit Card Payments in REST APIs
- Do PayPal support recurring payment based on an event ??? in REST APIs