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]: Country Select has no callback #23

Open
b-bot opened this issue Feb 9, 2024 · 4 comments
Open

[Bug]: Country Select has no callback #23

b-bot opened this issue Feb 9, 2024 · 4 comments
Assignees

Comments

@b-bot
Copy link

b-bot commented Feb 9, 2024

What happened?

When opening inline checkout, an initial country code is passed in by Paddle using geolocation. This allows us to get the correct PricePreview(). However if the user changes the country, there is no callback to update the pricing on the page. This could be they are out of the country or using a VPN.

Steps to reproduce

  1. Use inline checkout with callback events.
  2. Open checkout programmatically - see default country code is passed in when none supplied.
  3. Change country using Paddle select.
  4. Pricing data reflects the old country code prices until moving to the payment screen (card details / PayPal etc.) by firing the checkout.customer.updated callback.
  5. Price Preview function is not usable without a callback for country change.

What did you expect to happen?

A callback event checkout.address.updated added so whenever a user changes their country or postal code the system can adjust the displayed pricing data.

How are you integrating?

Next.js, will be applicable anywhere as it's a library level issue.

Logs

No response

@vijayasingam-paddle
Copy link
Contributor

Hi @b-bot,
Thank you for raising this.

We agree that it is a little cumbersome to wait until the user lands on the payment page to see the updated price.

We will discuss within the team about adding some events while the user is changing country and or postcode in the initial screen and get back to you.

@b-bot
Copy link
Author

b-bot commented Feb 13, 2024

Thanks @vijayasingam-paddle appreciate it!

@hilmia
Copy link

hilmia commented May 29, 2024

Needing this right now, I hope we can get an event for this soon.

@mdorda
Copy link

mdorda commented Sep 3, 2024

Any update? We have come across it too and it is quite confusing for user.

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

No branches or pull requests

4 participants