#nimish-tank_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1316621068441485322
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nimish-tank_code, 2 days ago, 12 messages
- nimish-tank_code, 6 days ago, 24 messages
- nimish-tank_webhooks, 6 days ago, 8 messages
Hi there, there's no events for card expirations. But stripe may automatically attempts to update saved cards whenever a customer receives a new card and you'll receive a payment_method.automatically_updated event when this happens
but my client's requirement is that the customer's card expired to send the custom mail and custom template set
Then you might want to retrieve the card payment method 's exp_month and exp_year (https://docs.stripe.com/api/payment_methods/object?lang=node#payment_method_object-card-exp_month), and notify your customer when a card is about to expire.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
customer.source.expiring this webhook example provide me
how to add the expired card add ?
This webhook is only applicable to sources and cards (both are legacy APIs), and it wont' happen if you are using PaymentIntents API
I don't understand your latest qustion, can you rephrase?
My question is customer's card expired so I have informed the customer I have sent a mailed your card is expired
It's the same question which I've already answered earlier
You might want to retrieve the card payment method 's exp_month and exp_year (https://docs.stripe.com/api/payment_methods/object?lang=node#payment_method_object-card-exp_month), and notify your customer when a card is about to expire.
In essense, you need to implement something in your system to keep track of the expiry date of the cards, so that you can notify your customers when they are expiring.
{
"object": "list",
"url": "/v1/customers/cus_9s6XKzkNRiz8i3/payment_methods",
"has_more": false,
"data": [
{
"id": "pm_1NVChw2eZvKYlo2CHxiM5E2E",
"object": "payment_method",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "US",
"exp_month": 12,
"exp_year": 2034,
"fingerprint": "Xt5EWLLDS7FJjR1c",
"funding": "credit",
"generated_from": null,
"last4": "4242",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1689682128,
"customer": "cus_9s6XKzkNRiz8i3",
"livemode": false,
"metadata": {},
"redaction": null,
"type": "card"
}
]
}
this are the card object my question is
which date to my card expire how to find it?
You might want to retrieve the card payment method 's exp_month and exp_year