Question

Using Paypal's Adaptive Payments API, I am selling physical items that require a ship to address - on the Paypal purchase page I inform Paypal to have the customer select an address. If I have sales tax rules set up on my merchant account, how do I get Adaptive Payments to add sales tax to the order - I hand it the subtotal, and based on the state in the address the user selects, it calculates and adds the sales tax to that subtotal for a grand total?

Isn't this the entire point of Paypal - customer provides this information to Paypal, and then provides me only the information I need for the transaction?

Was it helpful?

Solution 2

Doesn't seem to be able to compute this on its own - I ended up keeping a hack of a solution in place. Prompt the user to provide the state to which the goods will be shipped to, and then calculate the tax on my own before sending the order total (subtotal + tax) to the Paypal workflow. Disappointing, IMO.

OTHER TIPS

You're right but AFAIK, since PayPal does not want to keep tax rates which differ for countries and type of goods you ship. So, you can either try using

GetShippingAddresses

api call before executing the payment, and add

totalTax

information during

SetPaymentsOptions

call..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top