#james.ballow
1 messages ยท Page 1 of 1 (latest)
Hello, can you tell me more about your payment element setup here? Are you rendering the payment element before or after creating the payment intent? And are you specifying automatic payment methods or specific payment methods?
Sure, I'm actually a bit confused about the timing of things. I I'm creating the payment intent in the server side, and then I'm sending the client secret to the client JS file, then I'm rendering the payment card on the client side.
I'm seeing that at the time of creating the payment intent, there is an "automatic_payment_methods" of True, but perhaps I need to add them manually to this section somehow?
Automatic payment methods being enabled means that Checkout will use your Payment Method settings to determine what PMs to show https://dashboard.stripe.com/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So if you go to that page and turn on ACH it should start showing up in your payment element
You can also manually specify the payment methods in the payment_method_types parameter when creating your intent
Ahhhh okay. I see now. I just want to the payment intent and typed in "us_bank_account" and it shows now. Can you please link me to the right page that shows all of the options that I can include in the payment intent? I'm looking for the developer page for it, not the "list of non-developers". I need to find out what the dictionary of options are so I can copy/paste.
The page that I linked to should show all the options for PMs that show up on your intent. Is the link broken for you?
And here is the list in the developer docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That was the link I"m looking for (the second one). Thanks!
Lastly, is there a way to show the price that they are paying inside of the payment element?
I know that I set this paymnet amount in the payment intent, but I want to show this value inside of the payment card.
Hello ๐
No, PaymentElement doesn't have a field to show the amount.
You can add your own UI component for that
Ah, okay thanks!