#maxime1992
1 messages · Page 1 of 1 (latest)
Hello 👋
The reason you're seeing this error is because you're passing raw card numbers to the API
You should use Elements instead to collect payment method information and attach it to customers
https://stripe.com/docs/payments/save-and-reuse
(I'm a colleague of Maxime)
We are actually using the Stripe hosted checkout to collect payment methods from the user, but for our end to end automated tests we need to emulate the customer setting a payment method for their subscription. Elements won't work for us as we're not building a user facing integration. Is payment intent the right way to go instead of setting default payment method on the customer?