Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PayPalButtons onShippingAddressChange not able to update shipping costs #538

Open
jqrn opened this issue Jul 12, 2024 · 3 comments
Open

Comments

@jqrn
Copy link

jqrn commented Jul 12, 2024

Library used

react-paypal-js

🐞 Describe the Bug

The docs for PayPalButtons onShippingAddressChange state that it can be used to update shipping costs after the buyer has selected an address in PayPal:


image

However, unlike the now-deprecated onShippingChange, onShippingAddressChange does not provide a data.actions.order.patch() that can be used to patch the order with the new shipping costs. It only provides a reject method for when the new address isn't one the seller can support.

After an order is first created via PayPalButtons createOrder (actions.order.create()), and then the buyer has logged into PayPal and selected their shipping address, how can we update the order with the shipping cost recalculated using the buyer's address?

Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Stale label Oct 11, 2024
@chowey
Copy link

chowey commented Oct 14, 2024

This is still an issue.

@github-actions github-actions bot removed the Stale label Oct 15, 2024
@ederoyd46
Copy link

Is there an update on when this issue will be resolved?

This is affecting one of our customers. They require the shipping methods to be updated when an address is entered, this works fine for existing Paypal users as the call back is triggered. However when signing up for a new account or using it in the guest flow, the call back is not triggered to update the shipping methods and so the order validation fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants