#nickderobertis

1 messages · Page 1 of 1 (latest)

young briarBOT
bronze nymph
#

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"
}
ruby forge
#

What API version are you using?

bronze nymph
#

I believe we are on the newest, let me double check

#

Should be 2022-11-15, we are setting that header in the request

ruby forge
#

What's the expected structure? What exact fields are not the same as you expect?

bronze nymph
#

We were expecting the structure shown in that docs link where all the card information is nested under "card"

ruby forge
bronze nymph
#

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!

ruby forge
#

No worries, this happens! Please, let me know if you have any other questions.