#Ante75-Token

1 messages · Page 1 of 1 (latest)

ember estuary
jade cobalt
#

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

ember estuary
#

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.

jade cobalt
#

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

ember estuary
#

May I know why you think it's a problem?

jade cobalt
#

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

ember estuary
#

How about reusing the Payment method instead of creating and attaching a new one?

jade cobalt
#

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 ?

ember estuary
jade cobalt
#

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

ember estuary
#

Are you using PaymentSheet in your mobile integration?

jade cobalt
#

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
ember estuary
#

OK. - I attach the payment method to the customer, if the payment method is not meant to be reused, you can skip this step

jade cobalt
#

the payment will be confirmed by our platform in the future, not immediately

ember estuary
#

It's OK. You don't need to attach the payment method to a customer, the PaymentIntent object will also carry the paymentMethod ID

jade cobalt
#

ok, can i do some tests and in case contact you here please?

ember estuary
#

Sure. I'll leave this thread open. In case if you don't find me here later, my colleague will continue to help you.

jade cobalt
#

thank you very much

earnest nimbus
#

Hi! I'm taking over this thread. Let me know if you have any other question.

jade cobalt
#

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

earnest nimbus
#

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.

jade cobalt
#

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

earnest nimbus
#

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

jade cobalt
#

ok,
thank you

can I ask for more information?