#clown_paymentelement-pmts

1 messages ยท Page 1 of 1 (latest)

fallow glacierBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

bronze rose
#

to add more context, my organization needs to allow for all payment methods due to other ways that we are using stripe. For this project, we only want to allow the user to use credit cards.

Here is the link to the documentation that I am referring to https://docs.stripe.com/payments/payment-element

jade night
#

Just passing PaymentMethodTypes like that should restrict the intent to only using cards. Are you doing a flow where you render the payment element before an intent is created?

bronze rose
#

ah thats a good call I bet thats it. let me give that a shot i didnt even think about that

#

I made sure to wait for the intent to get returned from my backend and still end up with the bank option

#

the intent appears to be being created correctly with the proper values, it just seems like the control is ignoring them for some reason.

jade night
#

Interesting. Not immediately sure why that is happening. Can you show me your code for setting up that Payment Element?

bronze rose
#

sure thing one moment

#

smh. I figured it out I was doing something dumb. appreciate they help ๐Ÿค™

#

sorry for wasting your time

jade night
#

No worries at all, don't consider this a waste at all. Out of curiousity, what was happening here? Was that form just using a different payment intent or something?

bronze rose
#

I was passing in options for an amount and currency in my stripe wrapper that i forgot to remove from when u was testing. Not sure if that regenerates a new intent ir not but it seemed to be overriding my payment options from my intent

#

As soon as i removed the options and only included the client secret everything rendered properly

jade night
#

Ah gotcha, nice catch! I do that all the time

fallow glacierBOT