#guedes-retrieve-payment-intent

1 messages · Page 1 of 1 (latest)

south quarry
#

Do you have a request ID for the API call that you believe is triggering this?

stark lantern
#

i found it

#

but i'm not sure what it means

south quarry
#

What is the request ID? Should look like req_abc123. Or, if you can't find that, a Payment Intent ID will work too

stark lantern
#

I think is it

south quarry
#

Okay, so is your question "why does this automatically succeed after a second?" or is your question something else?

stark lantern
#

yes, why its change to success I just confirmed the payment_intent to have access to next_actions and use pooling to wait for payment , but after some minutes it automatically changed to success without me making the payment

south quarry
#

That's expected in test mode unless you're manually transitioning states.

stark lantern
#

I'm using a pix method to generate payment so the state payment just changes to success only if the customer makes a payment of the pix right? I mean i make the payment intent and confirm it to get in the Next_action the qrCode and make a long pooling to check if the payment is yet in require_actions status or succeded when alredy paid

#

but it changes to succeded without payment

south quarry
#

If those are the wrong docs, can you link me to the ones you're following?

stark lantern
#

thank you so much i didn't notice the use cases i was using {any_prefix}@{any_domain}```
stripe.paymentIntents.create({
amount: params.price,
currency: 'brl',
payment_method_types: ['pix'],
payment_method_data: { type: 'pix' as any },
receipt_email:params.customerEmail,
payment_method_options: { pix: { expires_after_seconds: 900 } } as any

})```
#

do you think is it what happens in receipt_email?