PaddleHQ / paddle-js-wrapper

Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.
Apache License 2.0
44 stars 6 forks source link

[Bug]: Not getting the email id prefilled in the checkout dialog only for a new user and for the 1st time #68

Open ShafiKhan141 opened 1 month ago

ShafiKhan141 commented 1 month ago

What happened?

As attached in the 2nd screenshot, I'm getting the "customer" key as null, which is leading to my email being empty From 2nd time onwards, it's working fine (attached in 1st ss) Screenshot 2024-10-17 at 4 09 41 PM Screenshot 2024-10-17 at 4 09 12 PM

Steps to reproduce

-> Make a new user -> User tries to make payment(opens paddle checkout) and email field shows empty -> User closes it again, and reopens, email is present

What did you expect to happen?

The email field should be filled on 1st try as well

How are you integrating?

React

Logs

No response

danbillson commented 1 month ago

Hi @ShafiKhan141, thanks for raising the issue. Are you able to share any implementation details, which endpoints you're calling and order of operations?

Is there any sort of race condition being created where the response from creating a customer hasn't actually finished before opening the checkout?