#meet_code

1 messages ยท Page 1 of 1 (latest)

dusk gobletBOT
#

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

๐Ÿ“ 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.

warm finch
#

Hi there

vestal gazelle
#

hey

warm finch
#

Do you want to disable Link as a PaymentMethod entirely?

vestal gazelle
#

yeah just want "card", "exp date" and "cvv"

#

what's the reason behind showing 1-link ? as a default wayy

warm finch
#

Let me rephrase

#

So you're working with the PaymentElement. There are two ways you can control which payment method types are displayed:

vestal gazelle
#

??

warm finch
#

Wait, before I get there. Are you creating PaymentIntents before rendering the PaymentElement or are you displaying the PaymentElement first?

#

If you're following a specific guide, can you link it here?

vestal gazelle
#

displaying payment element first and then paymentIntent takes place

#

had a link , but do not remember now

#

?

warm finch
#

Sorry for the delay, give me a few more minutes

vestal gazelle
#

okay

warm finch
#

If you only plan on accepting card payments across your entire account, you can disable PaymentMethods in your Dashboard and use dynamic payment methods. This means you can omit paymentMethodOptions altogether and we'd just pull the enabled PM types for your account

vestal gazelle
#

for my case, one of the platforms do not need to save the payment info and others might need/ not need (conditional). so I think adding paymentMethodTypes: ['card'] would make more sense.

#

~~it's working. ~~
do i need to make any changes for the payment handler which charges the card ? (does adding paymentMethodTypes: ['card'] require any additional changes to be made ?)

warm finch
#

Give me a few minutes, just double checking this

vestal gazelle
#

okk

warm finch
#

I see you crossed out it's working above

#

I take it you still see "Save your info for secure 1-click checkout with Link" in the PaymentElement even after passing paymentMethodTypes: ['card']?

vestal gazelle
#

i crossed out because, i got this error: Payment details were collected through Stripe Elements using payment_method_types and cannot be confirmed with a configured with automatic payment methods.

#

Save your info for secure 1-click checkout with Link is gone !! ๐Ÿฅ‚

warm finch
#

Got it, okay. I take it you likely created the PaymentIntent server side with automatic_payment_methods.enabled: 'true'. You should omit this altogether. This means the PaymentIntent will be created for card only

vestal gazelle
#

so, client side's change: paymentMethodTypes: ['card'] follows by ommitting automatic_payment_methods.enabled: 'true' on server-side (where we create paymentIntent) ?

#

is automatic_payment_methods.enabled: 'true' for getting the payment methods setup in stripe acc dashboard ?

warm finch
vestal gazelle
#

let me verify the changes

dusk gobletBOT
vestal gazelle
#

on server side, after setting automatic_payment_methods[enabled] to false, i had to remove automatic_payment_methods[allow_redirects] param as well.

#

do you think are these right server side changes ? it seems logical to me, but want to confirm before it goes to prod

torpid citrus
#

yes, that's correct, but you should be also testing to make sure everything works as per you expect

vestal gazelle
#

yes.

#

i have one more que

#

amount that we specify in options, does it need to be updated to the amound we are going to charge to the customer ?