Hi @kashifzia,
Greetings from Webtoffee!
Kindly confirm if the “No such customer” error is displayed when using saved cards.
The?No such customer
?error is caused by customer and payment information from sandbox mode that was left behind in the database.
?
The customer information saved in Stripe for sandbox mode and live mode is different. If you have made an order in the sandbox mode, the customer information is saved in the WordPress & Stripe database and it will be used for all future payments. However, when you use the live mode, the customer details are not available in your Stripe database. However, the existing customer data from the WordPress database will be used to initiate this test payment. This results in the?No such customer: 'cus_xxxxxxxxx'
?error.
?
To resolve this, ensure that your customer information in live mode is separate from sandbox mode, preventing discrepancies between WordPress and Stripe databases during test payments.