#nimish-tank_webhooks

1 messages ¡ Page 1 of 1 (latest)

frozen flameBOT
#

👋 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.

tribal hedge
#

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

fallen pier
#

but my client's requirement is that the customer's card expired to send the custom mail and custom template set

tribal hedge
fallen pier
#

customer.source.expiring this webhook example provide me

#

how to add the expired card add ?

tribal hedge
#

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?

fallen pier
#

My question is customer's card expired so I have informed the customer I have sent a mailed your card is expired

tribal hedge
#

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.

fallen pier
#

{
"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?

tribal hedge
#

You might want to retrieve the card payment method 's exp_month and exp_year

frozen flameBOT