#paulo-lacerda_code
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/1300895312885452820
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
We don't discuss beta features on the discord server.
I would suggest you reach out to our support about that
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok, thanks
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
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
I'm kind of new to stripe, the confirm payment endpoint do something similar to the process one?
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
We outline the two flows in this doc - https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#process-payment
You can switch the tab between the two