#yogeshp-refunds

1 messages · Page 1 of 1 (latest)

plain mason
#

Hi can you provide the request ID?

worthy kayak
#

where can i get the request Id

#

The id which we get from RequestOptions?

stray quest
#

You would need to find the Charge Id inside the PaymentIntent object

worthy kayak
#

I don't have charge id

#

when I did the payment In that response I got only Payment intent

#

do you want to check that response?

#

to check

stray quest
#

Yes the Charge Id is inside the PaymentIntent object

#

I can take a look at the response

#

Also, the PaymentIntent only has Charges after it is confirmed

#

so if you just created a PaymentIntent and haven't confirmed it, it won't have a Charge object inside

worthy kayak
#

{"paymentIntent":{"id":"pi_1ImsYD2eZvKYlo2CsH7hwSY0",
"object":"payment_intent",
"amount":5000,"canceled_at":null,
"cancellation_reason":null,
"capture_method":"automatic",
"client_secret":"pi_************************g",
"confirmation_method":"automatic",
"created":1620012869,
"currency":"usd",
"description":null,"last_payment_error":null,"livemode":false,"next_action":null,"payment_method":"pm_1ImsYG2eZvKYlo2CKjFwdxnB","payment_method_types":["card"],"receipt_email":null,"setup_future_usage":null,"shipping":null,"source":null,"status":"succeeded"}}

#

this is the response for one test payment i have created

stray quest
#

(do it after confirmation on client, and before you want to refund)

worthy kayak
#

ok

stray quest
worthy kayak
#

to retrieve the payment intent what other parameters we required other than pi id?

#

com.stripe.exception.InvalidRequestException: No such payment_intent: 'pi_3JNKa22cB6Xp2wRX09HtTaEQ'; code: resource_missing; request-id: req_1yZvtPlOuJRVNX

#

getting this exception

#

I got this exception while retriveing the payment intent

stray quest
#

Hmm only the PaymentIntent should be provided

#

Let me see

#

You are retrieving a PaymentIntent from a different Stripe account