Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created June 28, 2020 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chanakaDe/4f160b75bda346c01184f98e496c407e to your computer and use it in GitHub Desktop.
Save chanakaDe/4f160b75bda346c01184f98e496c407e to your computer and use it in GitHub Desktop.
{
"type": "error",
"code": 500,
"msg": "Your card has expired.",
"body": {
"raw": {
"code": "expired_card",
"doc_url": "https://stripe.com/docs/error-codes/expired-card",
"message": "Your card has expired.",
"param": "exp_month",
"type": "card_error",
"headers": {
"server": "nginx",
"date": "Sun, 28 Jun 2020 07:06:37 GMT",
"content-type": "application/json",
"content-length": "208",
"connection": "keep-alive",
"access-control-allow-credentials": "true",
"access-control-allow-methods": "GET, POST, HEAD, OPTIONS, DELETE",
"access-control-allow-origin": "*",
"access-control-expose-headers": "Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required",
"access-control-max-age": "300",
"cache-control": "no-cache, no-store",
"request-id": "req_UTJ7M459tTA40v",
"stripe-version": "2019-12-03",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload"
},
"statusCode": 402,
"requestId": "req_UTJ7M459tTA40v"
},
"rawType": "card_error",
"code": "expired_card",
"param": "exp_month",
"headers": {
"server": "nginx",
"date": "Sun, 28 Jun 2020 07:06:37 GMT",
"content-type": "application/json",
"content-length": "208",
"connection": "keep-alive",
"access-control-allow-credentials": "true",
"access-control-allow-methods": "GET, POST, HEAD, OPTIONS, DELETE",
"access-control-allow-origin": "*",
"access-control-expose-headers": "Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required",
"access-control-max-age": "300",
"cache-control": "no-cache, no-store",
"request-id": "req_UTJ7M459tTA40v",
"stripe-version": "2019-12-03",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload"
},
"requestId": "req_UTJ7M459tTA40v",
"statusCode": 402,
"type": "StripeCardError"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment