#dipak_docs
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/1362301694653890631
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, is your question about card decline? Can you share with me the PaymentIntent ID?
No, it's not related to a particular PaymentIntent ID, if any payment card that is outside India is falling because of not have an address. Is there any way we can proceed without collecting Address?
The Below screenshot is the error we got
Not possible. As explaiend in the error messsage, name and address are required as per Indian regulations
Okay. Is there any other way we can show the Address Element part depending on the cards no. for indian events?
Ok, so you'll want to use the deferred intent creation flow (https://docs.stripe.com/payments/accept-a-payment-deferred) which allow you collect the payment method from your customer first before creating a PaymentIntent.
If the card payment method's country is not India, you can then conditionally render the AddressElement to collect the full address from your customer.
No, I was asking is there any way like, for an indian event, if the payment card is from outside indian, we need to show the Address Elemen,t right? S,o can we show the Address element depending on the card's number, if the card is from ouside india show the Address Element, if not don't show the Address Element
I believe we are talking about the same and I just proposed a solution. Can I suggest you take a look at the doc that I shared earlier and try it out?
https://docs.stripe.com/js/payment_methods/create_payment_method_elements you can use this API to create a PaymentMethod object and check its country
Can you explain how this flow will work? The one you shared
we are doing this on backend
Here's how it works in high level.
- Listen to the change, if the "complete" property is true, call the createPaymentMethod() function to create a PaymentMethod
- Inspect the PaymentMethod object, if the country != India, render the AddressElement
Okay, thank you.
one more question I have is that, apart from the issue I mentioned, is there any other issues as same as I shared for other coutries, where stipe is being used?
https://docs.stripe.com/payments/cards#online-card-brand-capabilities you can review this doc for the countries that each card brand supports
Okay thank you