OnShippingAddressChange() function does not provide shipping addresses lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I noticed that when using OnShippingAddressChange() function, the shipping address that can be accessed through the passed "data" variable to this function does not have the shipping lines (line1 & line2).
However, I need these lines to be able to calculate the tax. Tax can not be only calculated based on city, state, zip code. Since Tax depends on the county the customer is from, then it is impossible to calculate tax accurately without knowing the address lines. Is there any other way to get the address lines?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @wild-harts
Thank you for posting to the PayPal community.
I kindly suggest that you create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . It is important to provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox account collect billing and shipping address in Sandbox Environment
- Why does PayPal make it difficult to send an item to a different shipping address from billing? in PayPal Upgrade Community
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs
- Enable PayPal Billing Address Request on sandbox account in Sandbox Environment
- PayPalWebPayments - Shipping Address Change in SDKs