#runjan

1 messages · Page 1 of 1 (latest)

still helmBOT
quiet bear
#

Did you re-use the saved payment method instead of collecting new payment method from the customer?

willow void
#

can you explain more ?

quiet bear
willow void
#

yes but when i use google pay then everytime same card is added

#

in my customer stripe account

#

with different different paymentMethod

quiet bear
#

Yes! Stripe doesn't de-duplicate even if same Google Pay is newly added

willow void
#

no , my card detail is same and i stripe add is multiple times.

quiet bear
#

If you use Google Pay every time and have the payment methods saved, then yes - Stripe will add the same payment methods to the customer

willow void
#

then how i fix it brcause in my product i retrive the all card of user from stripe and then show in user dashboard and user see same card multiple times?

quiet bear
willow void
#

fingerprint is same for all the cards.

quiet bear
#

There are two ways to go about it:

  1. Show saved payment methods to the customer and have them use the saved payment methods instead of using Google Pay again; OR
  2. After adding Google Pay, delete the duplicated payment method with same finger
willow void
#

stripe.paymentMethods.list
stripe.customers.listPaymentMethods

both are same or some different ?

quiet bear
#

They are different.

  • stripe.paymentMethods.list list all payment methods
  • stripe.customers.listPaymentMethods list specific customer's payment methods
willow void
#

and i have one doubt if i delete payment method of user of same card then how to take payment from user of next month of subscriptions?

willow void
quiet bear
#

but when i pass cutomer id of user in stripe.paymentMethods.list then its show only customer payment methods
If you set customer ID in the request, then it works the same as stripe.customers.listPaymentMethod

#

and i have one doubt if i delete payment method of user of same card then how to take payment from user of next month of subscriptions?
You can update the subscription's payment method to the final one that left

willow void
#

if i dont update the susbcritions payment method and delete duplicate card then what happen?

#

?????

quiet bear
#

Nothing will happen