#an_setupintent-link

1 messages ยท Page 1 of 1 (latest)

sharp oasisBOT
#

๐Ÿ‘‹ 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/1237069202368761976

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hollow tide
#

@real nova Sorry I'm going to need a bit more context on your ask. Where exactly do you see this sentence about targeting settings? What does your code look like?

real nova
hollow tide
#

Can you share a PaymentIntent id or similar? Also sorry I still need a lot more details such as your exact code, which doc(s) you follow, etc.

real nova
#

I'm following this doc https://docs.stripe.com/payments/link/payment-element-link to add Stripe Link to my checkout page. The Link payment method has been enabled in the Stripe Dashboard.
In my codebase, I use Payment Element in FE, and in BE, I created a setupIntent with automatic_payment_methods enabled by default. So that, I expected that Stripe Link would appear on my checkout page

#

My setup intent seti_1PDSoLJM6pJQSuvzaqamti0t

hollow tide
#

an_setupintent-link

#

Okay so crucial bit of information: You seem to be a Connect platform using our Direct Charges flow and creating the SetupIntent on the connected account (for the Direct Charges flow) is that correct?

real nova
#

yes, that's correct

hollow tide
#

And looking at this SetupIntent your own code that you control explicitly passed payment_method_types: ['card'] for that one

real nova
#

Got it
It looks like I made a mistake in my codebase. But I found another issue.
Yes, the setup intent seti_1PDSoLJM6pJQSuvzaqamti0t is created with payment_method_types: ['card'] but if I fake my IP to another country (eg Singapore or USA) the Stripe Link will not be shown in my checkout page. But if I turn off my fake ip tool, and still use this setup intent, I can see the Stripe Link on my checkout page. Do you know why ?

hollow tide
#

Link has 2 modes. One where it behaves like a normal card payment (you won't see Link) and one where it behaves as its own separate payment method type.
And then when it's in the first mode (what you seem to get) we have optimization/logic to decide when to show/hide Link based on many factors including the country of the IP.

My advice is: don't spend too much time trying to figure this out, there's a lot you won't be able to debug. Switch to dynamic payment methods by removing payment_method_types and let us handle things!

real nova
#

Got it @hollow tide
One more question, as I mentioned before, the setupIntent seti_1PDSoLJM6pJQSuvzaqamti0t is created without payment_method_types: link, but the Payment Element form can still render the Stripe Link in my checkout page. Is it normal? Or it can render the Stripe Link, but when I confirm setup intent the error will occur?

hollow tide
#

that's what I explained above

Link has 2 modes. One where it behaves like a normal card payment (you won't see Link) and one where it behaves as its own separate payment method type.

real nova
#

got it @hollow tide, thanks for your answers. ๐Ÿ‘