#dipak_docs

1 messages ¡ Page 1 of 1 (latest)

unreal badgeBOT
#

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

mellow moth
#

Hi there, is your question about card decline? Can you share with me the PaymentIntent ID?

graceful snow
#

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

mellow moth
#

Not possible. As explaiend in the error messsage, name and address are required as per Indian regulations

graceful snow
#

Okay. Is there any other way we can show the Address Element part depending on the cards no. for indian events?

mellow moth
#

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.

graceful snow
#

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

mellow moth
#

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?

graceful snow
#

Can you explain how this flow will work? The one you shared

graceful snow
mellow moth
#

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
graceful snow
#

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?

mellow moth
graceful snow
#

Okay thank you