#jess_elements-intent-pmc
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/1384210936566649044
๐ 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.
- jess_docs, 5 days ago, 7 messages
Hello ๐
If the configurations used for the Stripe.js Elements instance do not match the Payment Intent, thyis will often cause payments to fail
If you wish to use different configurations on the Payment Intent, I recommend configuring your Elements instance to match
I was actually wondering if there are any consequences to passing the payment configuration to only the payment element
And not the payment intents
Can you clarify what you mean here? Do you have example Javascript code?
Basically, when rendering the stripe payment element, I will pass in: payment_method_configuration=pmc_123 in the options. While when I am creating the payment intent, I do not pass in any payment_method_configuration
Why is that?
What purpose does it serve?
Payment Method Configurations (PMCs) specify what Payment Method Types you will accept. Using the deferred-intent integraiton, you already know what payment method type the Customer has selected and can create the Payment Intent to accept only that type
I just want to change my UI (payment element)I to display the appropriate payment methods.
but it seems to me that when I create the intent, I need to pass in that same payment_method_configuration regardless, is that correct?
Only if you don't know the payment method type your customer has selected at that time. Are you using Confirmation Tokens in your Payment Element integration?
yes, I am using confirmation tokens in my payment element
So essentially, in the deferred intent integration, I can theorectically not pass in the PMC that I passed into my payment element. But if I create an intent beforehand, I should be passing in the PMC as I am unsure which payment method type my customer will select?
Correct.
Since you have the payment method preview in the Confirmation Token, you can ensure that you create the Payment Intent configured to accept the Payment Method Type selected by your Customer
ah I see, thank you!
Sure thing! Happy to shed what ๐ก I can ๐