Open alefesouza opened 1 week ago
@alefesouza, can you share how you create a new account on the merchant site? Below is what I did:
Error: No such customer: 'cus_QhhaeO1o5wRxKI'
@hsingyuc I use these steps:
Allow subscription customers to create an account during checkout
.But the main problem here is allowing guest users to buy subscriptions with direct checkout, #9792 fixes that.
Describe the bug
(copied from the WooPay repo, text by @malithsen)
Shopper should always be logged into the merchant site when purchasing a subscription via WooPay, however this requirement is bypassed when using Direct Checkout which can sometimes results in an order failure.
To Reproduce
This failure is because when processing the subscription, merchant site tries to create a new user for the email provided by WooPay but fails as there's already a user with that email.
Actual behavior
Direct Checkout is enabled when shopper is logged out and is purchasing a subscription.
Screenshots
Expected behavior
Direct Checkout should be disabled when the shopper is not logged in to merchant site and is purchasing a subscription.