#ilamathi-PaymentMethod
1 messages · Page 1 of 1 (latest)
Hi there, you can also integrate customer billing portal to let your customer manage the payment methods by themselves. https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
ok .. with respect to this payment method update API, is it possible to update CVC?
You can only update exp_month and exp_year, see https://stripe.com/docs/api/payment_methods/update#update_payment_method-card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Actually my question is continuation of this thread #https://discord.com/channels/841573134531821608/987219770631913492
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
step#3 of this message only i am asking #987219770631913492 message
Most of your questions are already answered in the previous threads. Do you have a follow-up question?
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
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.
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..
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.
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 ...
Yes, that would be my recommendation as well.
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?
It's entirely up to the issuing banks, there' no guarantee that the CVC will remain the same.
ok. so just updating expiry_month & year with payment method update API won;t suffice...
for this expiry case
I'm afraid not.
So using this customer protal user can update the expired card and all https://stripe.com/docs/billing/subscriptions/integrating-customer-portal?
You customer is able to add/remove payment methods, you can view a demo using this URL https://billing.stripe.com/customer-portal-demo
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
Yes you are right, using setup_future_usage flag in a PaymentIntent will save the payment method to the customer.
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?
Yes, this is the expected behaviour. The customer can only add/remove the payment methods
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?
The customer need to add a new payment method, set it to default, and remove the old payment method
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
The customer can't delete the default payment method before setting another to default.
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?
Can you share with me the portal URL so that I can take a look?