#nickderobertis
1 messages · Page 1 of 1 (latest)
This is the response that we got:
{
"id": "pi_xxx",
"object": "payment_intent",
"amount": 27500,
"amount_details": {
"tip": {}
},
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_xxxxx",
"confirmation_method": "automatic",
"created": 1680733657,
"currency": "usd",
"description": " Carbon Health",
"last_payment_error": null,
"livemode": false,
"next_action": null,
"payment_method": "card_xxxx",
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": null,
"status": "succeeded"
}
What API version are you using?
I believe we are on the newest, let me double check
Should be 2022-11-15, we are setting that header in the request
What's the expected structure? What exact fields are not the same as you expect?
We were expecting the structure shown in that docs link where all the card information is nested under "card"
But you're calling this endpoint: https://stripe.com/docs/api/payment_intents/retrieve
Yes, correct. It shows that there should be a "card" attribute like this:
"card": {
"brand": "mastercard",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "US",
"exp_month": 7,
"exp_year": 2027,
"fingerprint": "7a9bk9ncM08SXfua",
"funding": "credit",
"generated_from": null,
"last4": "4444",
"networks": {
"available": [
"mastercard"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
wait hold on
i think my colleague sent over the wrong response
Haha ok, sorry to waste your time, the response is coming back in the expected format 😅 we had just mistakenly thought there would be an ID in card but there is not and we don't need that anyway
We can close this, thank you!
No worries, this happens! Please, let me know if you have any other questions.