#ilamathi-PaymentMethod

1 messages · Page 1 of 1 (latest)

foggy walrus
uneven ember
#

ok .. with respect to this payment method update API, is it possible to update CVC?

foggy walrus
uneven ember
#

For example if customer receive new card and they already saved the existing card with stripe.. so in the card expiry case, how they can update latest card details to the stripe ? so that future payment for the subsacription will happen without any issues

#

I am avoiding the saving duplicate cards, so i am checking the finger print

#

but in this expiry case, getting same fingerprint.. so i want to update the expired card payment method with this new card details... For that i suggested to use the paymentMethod API to update the new card in the existing payment method

foggy walrus
#

Most of your questions are already answered in the previous threads. Do you have a follow-up question?

uneven ember
#

yes... as per step#3, step#3 of this message only i am asking #987219770631913492 message i have to update payment method if the finger print is matching

#

so my question is what are all the details i need to update in the existing payment method to reflect with new cards in that

foggy walrus
#

OK. I think what river meant is that you need to collect a new payment method, and attach the new payment method to the customer.

uneven ember
#

then we will get the duplicate cards saved right .. already we have one with expired and for new card we are creating new payment method and attaching to the customer right.. so total two... I think river mentioned like update the existing payment method with new card details using the update payment method API

#

but only exp_month & year we can update.. not sure with CVC..

foggy walrus
#

You can only update exp_month & year for an existing card payment method.

#

If you just want to keep one payment method, you can use the API to detach the old payment method.

#

However, if I can suggest, you should just listen to the invoice.payment_failed events and ask your customer to update the payment details if that event happens.

uneven ember
#

so for that we need to provide stripe customer portal API to update the details ?

#

using that user can update the new card details into stripe ...

foggy walrus
#

Yes, that would be my recommendation as well.

uneven ember
#

QQ , On card expiry, we will get new card.. in that new card i am sure card number is going to be same as previous one and exp month & year different.. what about CVC is it also different or same with previous card?

foggy walrus
#

It's entirely up to the issuing banks, there' no guarantee that the CVC will remain the same.

uneven ember
#

ok. so just updating expiry_month & year with payment method update API won;t suffice...

#

for this expiry case

foggy walrus
#

I'm afraid not.

uneven ember
foggy walrus
uneven ember
#

ok

#

one more QQ, i am using the card element to collect the payment details and i am creating the payment method and comparing finger print to avoid duplicate payment method.. then i am confirming the payment by using stripe.confirCardPayment(secret, params) in the params i am passing set_up_future_usage: off_session.. so this will save the payment method to the user and can uses for future usage offline right?

#

i could see this new card getting added to that particular customer payment method.. just want to confirm my understanding is correct

foggy walrus
#

Yes you are right, using setup_future_usage flag in a PaymentIntent will save the payment method to the customer.

uneven ember
#

i am using this with confirmCardPayment, i think which internally set in the corresponding payment intent

#

Reg, customer portal, it seems there is no option to update the existing payment method?.. only i can add or delete the payment method

#

is that correct?

foggy walrus
#

Yes, this is the expected behaviour. The customer can only add/remove the payment methods

uneven ember
#

what customer need to do on card expiry case?.. he need to remove existing one and add to new payment method for the new card?

foggy walrus
#

The customer need to add a new payment method, set it to default, and remove the old payment method

uneven ember
#

If so what will happen, i have multiple payment method and i bought one subscription with that expiry card.. now i deleted that payment method instead of updating as it expired

#

so what will happen on the next month payment

foggy walrus
#

The customer can't delete the default payment method before setting another to default.

uneven ember
#

no i have 4 payment method.. i bought one subscription with payment method#3. which is not default one. this got expired.. now i am deleting that payment method and adding new one for new card.. so in this case how this subscription know this new payment method and charge from this?

foggy walrus
#

Can you share with me the portal URL so that I can take a look?