#dan_code
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/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.
- dan_api, 1 hour ago, 6 messages
Hi there, can you thell me what problem you are trying to solve?
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
Just to clarify, you want to surface Link to you customers but the Link option is currently disabled?
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
What Stripe integration do you use? PaymentElement?
Yes, PaymentElement
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?
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
I see. Another way is to use payment_method_types , but exclude link from the list
Will that allow us to create PI for Link payment methods as a source on the customer?
Yes you are right
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
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_dnhUr4e2X9YFRX
You didn't include a payment_method_types in this PaymentIntent creation request
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In PHP Code, definitely sending:
'payment_method_options' => [
'card' => [],
'link' => [],
],
Does the SDK interpret this as an empty object?
But that's payment_method_options, not payment_method_types
Ahh apologies. ๐คฆโโ๏ธ Thank you so much! ๐