Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created June 28, 2020 07:18
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/2296bedba1655db0531f74782611add3 to your computer and use it in GitHub Desktop.
Save chanakaDe/2296bedba1655db0531f74782611add3 to your computer and use it in GitHub Desktop.
{
"type": "error",
"code": 500,
"msg": "Your card was declined.",
"body": {
"raw": {
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined.",
"param": "",
"type": "card_error",
"headers": {
"server": "nginx",
"date": "Sun, 28 Jun 2020 07:17:45 GMT",
"content-type": "application/json",
"content-length": "241",
"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_vpfRfKZDwgRDxX",
"stripe-version": "2019-12-03",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload"
},
"statusCode": 402,
"requestId": "req_vpfRfKZDwgRDxX"
},
"rawType": "card_error",
"code": "card_declined",
"param": "",
"headers": {
"server": "nginx",
"date": "Sun, 28 Jun 2020 07:17:45 GMT",
"content-type": "application/json",
"content-length": "241",
"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_vpfRfKZDwgRDxX",
"stripe-version": "2019-12-03",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload"
},
"requestId": "req_vpfRfKZDwgRDxX",
"statusCode": 402,
"decline_code": "generic_decline",
"type": "StripeCardError"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment