#scliu-paymentelement-deferpaymentintent
1 messages · Page 1 of 1 (latest)
Hey it’s me again
👋 @fossil seal ! Make sure to just ask clearly your question on the first message 🙂
Oh my bad
I’m wonder about the accept a payment defer that beta api
There’s only Frontensegeln example code
How do I call that endpoint while I was in backend
Frontensegeln
what does that mean?
Oh
Sorry do you have a clear and detailed question? Those are really just some short sentences with no context
I mean frontend
scliu-paymentelement-deferpaymentintent
For this https://stripe.com/docs/payments/accept-a-payment-deferred endpoint is there any backend example code of it
this is not even clickable
Sorry, can you take a step back and write in one message your detailed question?
Is that clear enough😂
Mostly no. I have no idea what backend code you are looking for unfortunately. Collecting payment method details is always client-side, why do you want a backend? Which exact step?
Again please try to summarize with at least 3 or 4 full sentences and a clear link to which section of the doc is the problem.
So I would like to collect the card country before made an actually payment. Because I have to calculate the Stripe convenience fee, I’ll need the information for that endpoint. And I have to do this in my backend server instead of frontend. So I’m asking about if there’s backend example code that I can reference to
so the doc I gave you does exactly that. The first thing it does is collect payment method details at the step https://stripe.com/docs/payments/accept-a-payment-deferred?type=payment#create-pm and then the next step is https://stripe.com/docs/payments/accept-a-payment-deferred?type=payment#create-intent where you create the PaymentIntent server-side. At which point you have the pm_123 from the previous step and can do whatever you need with it to calculate the right amount/fee
sure thing
And thank you for the patience
Of course! We're here to help, just the server has been hectic today so all I ask is to try and explain your real ask all in one message, makes it a lot easier to grasp (and ask others on my team for help)
Yeah that’s my bad I should organize my question before
all good, we all do the same when we ask for help. It's rare that the server is this busy the entire day 🙂