#paulo-lacerda_code

1 messages · Page 1 of 1 (latest)

hushed haloBOT
#

👋 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/1300895312885452820

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tropic shoal
#

Hello
We don't discuss beta features on the discord server.
I would suggest you reach out to our support about that

https://support.stripe.com/?contact=true

cunning wedge
#

ok, thanks

tropic shoal
#

Just out of curiosity, are you seeing any errors when you pass config_override via Terminal JS SDK?

#

Oh you're using server-driven SDK

cunning wedge
#

exactly

#

I suppose that using the terminal js sdk it would work

tropic shoal
#

It should work for server-driven as well
As long as you pass in the beta header and your account is properly configured (from Stripe's end) to use the header, the API request should succeed

#

Ah sorry

#

I am reading the docs and I see this callout -

You can only use surcharging with the collect_payment_method and confirm_payment_intent server-driven endpoints. You can’t use surcharging with the process_payment_intent endpoint.

#

You will need to switch your flow to use different endpoints

cunning wedge
#

I'm kind of new to stripe, the confirm payment endpoint do something similar to the process one?

tropic shoal
#

process_payment_intent is an endpoint that collects payment method and tries to confirm the PaymentIntent in one go..

collect_payment_method is an endpoint that only prompts for payment method collection and let's you inspect the collected card

confirm_payment_intent is an endpoint which you'd then use to confirm the PaymentIntent with the collected payment method

#

So its a two step process

cunning wedge
#

oh, ok, I think I get it, I'll see where I can get with this information

#

thank you very much @tropic shoal