#alainux_api
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/1272508226541457469
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Examples
- pi_3PgppcGXtcqHgDW81easY7r6 Successful payment, null mandate
- pi_3PiWqzGXtcqHgDW83vLIIBm3 Successful payment, non null mandate
one option would be just to check if charges[0].payment_method_details.card.country == "IN"
We were hoping to target only users who fail to setup their payment method for off-session charges. We do have indian customers who succeed.
Setting all indian customers to manual payments would be our last resource ๐
possibly last_payment_errorhttps://docs.stripe.com/api/payment_intents/object#payment_intent_object-last_payment_error and you can check the decline code + card country together