#dan_code

1 messages ยท Page 1 of 1 (latest)

wheat ventureBOT
#

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

๐Ÿ“ 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.

warm wigeon
#

Hi there, can you thell me what problem you are trying to solve?

cosmic mortar
#

I'm trying to create PI for existing Link customers, while the option is disabled in dashboard. This will be a temporary implementation until it is re-enabled eventually

warm wigeon
#

Just to clarify, you want to surface Link to you customers but the Link option is currently disabled?

cosmic mortar
#

Only for existing customers, new customers will not see the option at all. All existing customers with subsequent purchases is what this code is aimed at

warm wigeon
#

What Stripe integration do you use? PaymentElement?

cosmic mortar
#

Yes, PaymentElement

warm wigeon
#

Ok, there's no option to conditionally turn off Link in PaymentElmeent, but you can turn on/off Link for individual Stripe UI (i.e., CardElement, PaymentElement, PaymentRequestButton, ExpressCheckoutElemenet). Can you disable Link in PaymentElement, and enable Link in CardElement, and so that you can only surface CardElement to existing customers?

cosmic mortar
#

By subsequent payments, these are all handed programmatically (off_session) with no user interaction at all.
In our stripe dashboard the method is disabled on the payment method configuration

warm wigeon
#

I see. Another way is to use payment_method_types , but exclude link from the list

cosmic mortar
#

Will that allow us to create PI for Link payment methods as a source on the customer?

warm wigeon
#

Yes you are right

cosmic mortar
#

Apologies Jack, forgot to mention in the payload I have off_session set to true as well.
It is still not processing a payment without Link in the payment methods array

warm wigeon
cosmic mortar
#

req_dnhUr4e2X9YFRX

warm wigeon
#

You didn't include a payment_method_types in this PaymentIntent creation request

cosmic mortar
#

In PHP Code, definitely sending:
'payment_method_options' => [
'card' => [],
'link' => [],
],

Does the SDK interpret this as an empty object?

warm wigeon
#

But that's payment_method_options, not payment_method_types

cosmic mortar
#

Ahh apologies. ๐Ÿคฆโ€โ™‚๏ธ Thank you so much! ๐Ÿ™‚