How to set up shipping and sales tax to be added to the total cost in sandbox environment

Pete813
Contributor
Contributor

I am trying to test out adding the shipping cost and sales tax to the total cost of a purchase as part of a checkout and payment flow integration with an application outside PayPal. The integration is done through PayPal smart payment button. I have set up shipping calculation and state sales tax in my sandbox business account, but the shipping and tax is not added to the purchase order sent over from the smart payment button.

Will such integration allow adding shipping and sales tax to orders in PayPal? Does the sandbox support such feature as it does for the live environment? How to set it up appropriately in sandbox for testing? 

[I labeled this as WPS, but not sure this is the right label and there does not appear to be a way to add a new label]

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hello,

" I have set up shipping calculation and state sales tax in my sandbox business account, but the shipping and tax is not added to the purchase order sent over from the smart payment button"

In-account sales / shipping calculations are only applied to website payments standard transactions.

An example for smart payment buttons can be seen here : https://stackoverflow.com/questions/63285844/how-to-ammend-paypal-smart-button-to-include-vat-tax

Thanks !

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

Pete813
Contributor
Contributor

Thanks much for pointing out this critical point! Where can I read find the up-to-date technical documentations on different transactions and associated available methods or APIs?

 

I searched for "paypal website payments standard transactions" but could not find a web page that explains it with sufficient technical details. 

 

Thanks for the link on how to update the paypal smart button to include tax!  Again, where can I read more technical details about this so that I know all the relevant and available methods, such as shipping cost, etc.? 

 

All I can find is a legacy doc that contains high-level (vs. technical) descriptions of such features https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/ProfileAndTools/#calcul...  

 

Up-to-date documentation with sufficient technical details (APIs) would be greatly appreciated! 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

The various information for sales tax/ shipping ect. can be found at the URL's below :

Website Payments Standard (WPS) :

https://developer.paypal.com/docs/admin/checkout-settings/?q=change checkout logo#auto-calculate-sales-tax

Express Checkout (NVP API) :

https://developer.paypal.com/docs/nvp-soap-api/set-express-checkout-nvp

Orders v2 (REST API) :

https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown

Thanks !

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.