#Ante75-Token
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_7sCkIiI0yX8FNP
everything works but I don't know if the concept is correct
I attach the payment method to the customer, because I conclude the payment not from the customer's device but from our server, so I need the PaymentMethod and I am forced to attach it to the customer to use it in the future,
excuse my English
OK. So if the same payment method is going to be reused in the future, then you need to attach it to a customer.
If the payment method is for single use, it's not necessary to attach it to a customer.
my doubt is that every time the customer pays from google-pay or apple-pay, a new stripe payment method will be created, is this a problem for you?
payments always start on the device, but are terminated on our server, so it cannot be single use
May I know why you think it's a problem?
it was just a doubt, seeing all payment methods the same in the customer, I was worrying that there were limits
each customer will make 10 to 20 orders / year, if he pays with the app, 10/20 payment methods will be added every year
How about reusing the Payment method instead of creating and attaching a new one?
was what i wanted to do but how is it possible ?, when i get the token from apple or google, then i create a new payment method, i can't associate it with an existing one? there's a way ?
Basically the idea is to use SetupIntent to collect the payment method and use PaymentIntent to charge the customer the details is here https://stripe.com/docs/payments/save-and-reuse
with credit cards it's easy and I do it,
but with payments from google-pay and apple-pay, I am unable to associate the token with a payment method already saved in the customer
Are you using PaymentSheet in your mobile integration?
no I use Xamarin Forms
I followed Mindfire's examples
- App-pay generate a token
- with token create a paymentmethod
- I attach the payment method to the customer
- I make the payment request and send the PaymentMethod to our platform
- our platform then concludes the payment with the payment method
OK. - I attach the payment method to the customer, if the payment method is not meant to be reused, you can skip this step
the payment will be confirmed by our platform in the future, not immediately
It's OK. You don't need to attach the payment method to a customer, the PaymentIntent object will also carry the paymentMethod ID
ok, can i do some tests and in case contact you here please?
Sure. I'll leave this thread open. In case if you don't find me here later, my colleague will continue to help you.
thank you very much
Hi! I'm taking over this thread. Let me know if you have any other question.
it works for the down payment, but when I try to pay the balance using the same payment method I get this error:
Stripe.StripeException: 'The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first.'
maybe I'm really forced to attach the payment method to the customer to be able to use it again later
maybe I'm really forced to attach the payment method to the customer to be able to use it again later
You should be able to use a PaymentMethod once without attaching it. If you are using it more than once then it won't work.
Can you share the request ID (req_xxx) where you see that error? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_e91FHyFcnjBTYb
I understand the error, and I really think that there are no other ways, I must necessarily attach the payment method to the customer to be able to reuse them, if there is no problem adding many payment methods to the customer I will continue to do this
I must necessarily attach the payment method to the customer to be able to reuse them
Yes that's correct.
if there is no problem adding many payment methods to the customer I will continue to do this
I think there is a hard limit of 200 payment method per customer
ok,
thank you
can I ask for more information?