#juangomez0120_api
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/1458937742309458053
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there - looking
Do you have a counter example to hand? like a run-of-the-mill PaymentIntent that succeeds?
Not a big deal but if you do it'll help me move faster
I have the one used in my test env, would that work for you?
As long as the code is the same as production, yes
Terminal reader req: req_4vPhQyFKvVE0nW
Payment intent confirmation req: req_e4sokFyry6mVaZ
The only difference here is that the reader request was triggered from the stripe shell
and you're using the server-driven integration, right?
Correct
ok so the operations on pi_3ShF4BBsYzIqHjob0In4aPQw differ significantly from your testmode example. I'll explain
the API calls are as follows:
- Create PaymentIntent
- Process PaymentIntent on reader
- Confirm PaymentIntent on client (paymentintent status = 'requires_capture') which is normal at this stage
- Process PaymentIntent again (hits error because status is requires capture
- trying to update PaymentIntent with a new PaymentMethod, which doesn't work because you're in requires_capture
- same as 5
- cancel
Confirmation is distinct from capture when using manual capture, which you are.
on pi_3SnQiiBsYzIqHjob12acJefP you make a call to capture immediately after confirming
But both pi are created using the "capture_method": "manual" attribute, what's the difference between both payment intents that trigger a different confirmation flow ?
I don't know - I only know what requests Stripe receives from your integration, not why you sent them.