#sukhendu555-card-update
1 messages · Page 1 of 1 (latest)
Can you explain what "card updater" does?
it should help us to get latest card informations for those cards are expired
lost , stolen
so we can charge on latest card
we are a subscription based compan
company *
Hi @flat dune I'm taking over thread, give me a sec to catch up
okay
Stripe has already implemented automatic card updates (see https://stripe.com/docs/saving-cards#automatic-card-updates) and you will receive payment_method.automatically_updated events when the card details are automatically updated by the network.
If you want to perform the card update manually, you can use the PaymentMethod update API https://stripe.com/docs/api/payment_methods/update#update_payment_method-card
Yes, we read this documentation,
Let us know how can we process through api?
Yex, how to call the API for customer create, card create , link customer and card?
And how to process payment through api?
You will need the new card details (new expiry date, cvc) in order to update the card payment method, and your customer need to provide them.
Instead of doing these all by your self, I'd suggest you to use the Customer billing portal (https://stripe.com/docs/billing/subscriptions/integrating-customer-portal) instead.
Here's the solution that I'd recommend
- Listen to
invoice.payment_failedevents, these events will be fired when the invoice payment failed - Notify your customer and send them a Customer billing portal URL where they can update the payment details.
Ok, then you will need to use the PaymentMethod update API that I mentioned earlier.
How do you get the new card details from your customers?
Usually customers not provide new card details.
Anyway we will receive new card details from stripe?
You will receive payment_method.automatically_updated events when the card details are automatically updated by the network. And you can then check the paymentMethod object and see if anything changed.
okay
However, not all cards can be automatically updated, it varies from country to country.
Can you check my payment receive process form customer?
1st we set : new \Stripe\StripeClient(
Can you elaborate more?
then : $stripe->customers->create(
$stripe->paymentMethods->create(
Here we receive payment : $stripe->paymentIntents->create(
These process we receive payment. Is it correct?
For this step $stripe->paymentMethods->create( how did you get the card details from customer?
customer give there card details in payment form.
are you collecting the raw PAN?
We discourage collecting PAN directly because you need to get your own PCI compliance.
Don't understand raw PAN?
You should use PaymentElement or CardElement to collect the payment details.
PAN = Primary Account Number
This integration guide will give you the full details https://stripe.com/docs/payments/save-and-reuse?platform=web
\Stripe\PaymentIntent::create([
'amount' => 1099,
'currency' => 'usd',
'customer' => '{{CUSTOMER_ID}}',
'payment_method' => '{{PAYMENT_METHOD_ID}}',
'off_session' => true,
'confirm' => true,
]);
Where I'll get {{PAYMENT_METHOD_ID}} ?
Hi, have you read through the doc that I sent earlier? It covers how payment method is collected.
okay