#Krishnachandran

1 messages · Page 1 of 1 (latest)

hearty coralBOT
umbral summit
#

hi

thorn hinge
#

the PaymentIntent still creates a Charge object, and you can get the same information like receipt_url from that

#

the PaymentIntent has a latest_charge field which is the successful Charge object's ID

umbral summit
#

where i could find the "receipt_url"

thorn hinge
#

same place, as a field on the Charge object

umbral summit
#

"charges": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3MFEa8HDuZ8zjL7e09GytZuk"
},

#

u meant the "url" is same as receipt_url

thorn hinge
#

no

#

if the charges array is empty that mean the PaymentIntent is not finished yet

#

once the PaymentIntent has as status of succeeded you can find a Charge object in that array, and that object will have a receipt_url like normal.

umbral summit
#

ohh really ithought when making payment the same will be created

#

so you said like when payment become successful then only the response is populated the "receipt_url".Right?

#

also all others status are populated inside the charge object.am i correct?

thorn hinge
#

not entirely sure I follow what you mean, I'd suggest you do some testing with the API and it will make sense!