#friedrich_paymentelement-defer
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/1263159630062813245
๐ 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.
- friedrich-keydel_code, 1 day ago, 31 messages
Can you tell me a bit more about this use-case? Do you have an amount that may be updated? Or is this saving a card for a payment at a later date maybe?
I have a form, in which the user can choose a package, so that the price ist not clear while loading the form. But I want to display the payment methods already
Gotcha, and is one of those selected by default or is there no price at all? Because we do have a way to render the element without an intent or subscription where you provide an amount that can be changed. So if the $10 package is selected by default you can just pass that and then update the elements object when the user selects another price https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription#add-the-payment-element-to-your-checkout-page
OK! I think this is really prone to errors, but if there is no other way, I will do so!
Can you tell me more about the kind of errors you are looking to address here?
friedrich_paymentelement-defer
It's more about maybe sending the wrong price because a default one was set
What does that mean "sending the wrong price" exactly?
You control both sides of the code so that shouldn't happen
I've got another Question: I've got a PaymentIntent response - how can I access the clientSecret?
What programming language are you using? Can you share the code where you created it?
PHP
I see a _value-Key inside the returned object, but cannot access it
Sorry - I got it! ๐
If you share your creation code I can show you how to do this properly
I found out, that it's stored as class portperty of the PaymentIntent Object - thank you! ๐