#Invalid-request-eerror
1 messages · Page 1 of 1 (latest)
Hi there, the error is pretty self-explanatory. Can you tell me what is confusing you?
idont rly understand where is the problem
req_mfFDD22P2vDZjN
ty
this is pretty self-explanatory but how do I fix it ?
this is my problem
XD
Looking
Looks like that paymnetmethod was previously detached form a customer: https://dashboard.stripe.com/logs/req_t0GqSx20dDPLKu
Once a PaymentMethod is detached it is consumed and can't be used in the future.
You can only use a PaymentMethod with one Customer on the account
Otherwise you need to recollect card details if you want to use the same card with a different Customer object
one paymentMethod with one customer?
Correct
what if ive mil of customers
if i have 1M customers?
Then each of those customers has their own credit card, no?
So they would each have an attached payment method
yes i need to go with 1M paymentMethod?
Well you collect a PaymentMethod from a customer when they pay, right?
yes
So then yeah.... you would collect as many different PaymentMethods as your customers provide you to pay with.
The point of the Customer object within Stripe is to allow you to re-use PaymentMethods without needing to collect the card details again.
why the card is detached, but still the customer was able to pay with card?
But you wouldn't use the same Customer object to represent multiple different real customers
They weren't?
Where do you see they could still pay?
The request failed
The one you provided
In terms of how it occurred... I can't tell you that. That is your own integration that you need to debug.
Are you a developer?
no pm
To attach a new PaymentMethod to a customer for future payments, we recommend you use a PaymentIntent with setup_future_usage: https://stripe.com/docs/api/payment_methods/attach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
its here right?
yes i think so
I recommend working with your developer to debug here for why you are de-taching a PaymentMethod that you then want to attempt to charge later on.
sorry one more question
if one user did multiple times of attach/detach card action, it might cause this error right?