Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
6.8 kB
0
Indexable
Never
{
  "payment_method_data": {
    "billing_details": {
      "address": {
        "line2": "-",
        "line1": "wesley.craig@example.com",
        "state": "idaho",
        "postal_code": "64473",
        "city": "greeley",
        "country": "US"
      },
      "email": "negative33673@gmail.com",
      "phone": "(591)-234-0325",
      "name": "wesley craig"
    },
    "type": "card",
    "card": {
      "number": "************5314",
      "exp_month": "01",
      "cvc": "",
      "exp_year": "2026"
    },
    "payment_user_agent": "stripe.js/H3pDiYvmUAtUoGPz; stripe-js-v3/H3pDiYvmUAtUoGPz; payment-element",
    "muid": "H3pDiYvmUAtUoGPz",
    "pasted_fields": "number",
    "sid": "H3pDiYvmUAtUoGPz",
    "guid": "H3pDiYvmUAtUoGPz",
    "time_on_page": "18264"
  },
  "use_stripe_sdk": "true",
  "return_url": "https://store.jaycad.com/checkout/order-received//?key=wc_order_RfaJRuJyfPmKi&order_id=&wc_payment_method=stripe&_wpnonce=&save_payment_method=no",
  "client_secret": "************************************************************",
  "key": "pk_live_*********************************************************************************************alRrpi",
  "expected_payment_method_type": "card"
}
Response body
{
  "error": {
    "charge": "ch_3Mx2lzLiagegAdGN0XeNf7OZ",
    "code": "card_declined",
    "decline_code": "generic_decline",
    "doc_url": "https://stripe.com/docs/error-codes/card-declined",
    "message": "Your card was declined.",
    "payment_intent": {
      "id": "pi_3Mx2lzLiagegAdGN02xa3Z2r",
      "object": "payment_intent",
      "allowed_source_types": [
        "card",
        "link"
      ],
      "amount": 500,
      "amount_details": {
        "tip": {
        }
      },
      "automatic_payment_methods": null,
      "canceled_at": null,
      "cancellation_reason": null,
      "capture_method": "automatic",
      "client_secret": "pi_3Mx2lzLiagegAdGN02xa3Z2r_secret_691iUiuNjzRzA7FZWS9az2qSX",
      "confirmation_method": "automatic",
      "created": 1681540787,
      "currency": "usd",
      "description": null,
      "last_payment_error": {
        "charge": "ch_3Mx2lzLiagegAdGN0XeNf7OZ",
        "code": "card_declined",
        "decline_code": "generic_decline",
        "doc_url": "https://stripe.com/docs/error-codes/card-declined",
        "message": "Your card was declined.",
        "payment_method": {
          "id": "pm_1Mx2m0LiagegAdGNrLdKKETG",
          "object": "payment_method",
          "billing_details": {
            "address": {
              "city": "greeley",
              "country": "US",
              "line1": "wesley.craig@example.com",
              "line2": "-",
              "postal_code": "64473",
              "state": "idaho"
            },
            "email": "negative33673@gmail.com",
            "name": "wesley craig",
            "phone": "(591)-234-0325"
          },
          "card": {
            "brand": "visa",
            "checks": {
              "address_line1_check": null,
              "address_postal_code_check": null,
              "cvc_check": null
            },
            "country": "CA",
            "exp_month": 1,
            "exp_year": 2026,
            "funding": "credit",
            "generated_from": null,
            "last4": "5314",
            "networks": {
              "available": [
                "visa"
              ],
              "preferred": null
            },
            "three_d_secure_usage": {
              "supported": true
            },
            "wallet": null
          },
          "created": 1681540789,
          "customer": null,
          "livemode": true,
          "type": "card"
        },
        "type": "card_error"
      },
      "livemode": true,
      "next_action": null,
      "next_source_action": null,
      "payment_method": null,
      "payment_method_types": [
        "card",
        "link"
      ],
      "processing": null,
      "receipt_email": null,
      "return_url": "https://store.jaycad.com/checkout/order-received//?key=wc_order_RfaJRuJyfPmKi&order_id=&wc_payment_method=stripe&_wpnonce=&save_payment_method=no",
      "setup_future_usage": null,
      "shipping": null,
      "source": null,
      "status": "requires_source"
    },
    "payment_method": {
      "id": "pm_1Mx2m0LiagegAdGNrLdKKETG",
      "object": "payment_method",
      "billing_details": {
        "address": {
          "city": "greeley",
          "country": "US",
          "line1": "wesley.craig@example.com",
          "line2": "-",
          "postal_code": "64473",
          "state": "idaho"
        },
        "email": "negative33673@gmail.com",
        "name": "wesley craig",
        "phone": "(591)-234-0325"
      },
      "card": {
        "brand": "visa",
        "checks": {
          "address_line1_check": null,
          "address_postal_code_check": null,
          "cvc_check": null
        },
        "country": "CA",
        "exp_month": 1,
        "exp_year": 2026,
        "funding": "credit",
        "generated_from": null,
        "last4": "5314",
        "networks": {
          "available": [
            "visa"
          ],
          "preferred": null
        },
        "three_d_secure_usage": {
          "supported": true
        },
        "wallet": null
      },
      "created": 1681540789,
      "customer": null,
      "livemode": true,
      "type": "card"
    },
    "request_log_url": "https://dashboard.stripe.com/acct_1KwvwYLiagegAdGN/logs/req_P66emqU1FZN5A5?t=1681540788",
    "type": "card_error"
  }
}
Request POST body
{
  "payment_method_data": {
    "billing_details": {
      "address": {
        "line2": "-",
        "line1": "wesley.craig@example.com",
        "state": "idaho",
        "postal_code": "64473",
        "city": "greeley",
        "country": "US"
      },
      "email": "negative33673@gmail.com",
      "phone": "(591)-234-0325",
      "name": "wesley craig"
    },
    "type": "card",
    "card": {
      "number": "************5314",
      "exp_month": "01",
      "cvc": "",
      "exp_year": "2026"
    },
    "payment_user_agent": "stripe.js/H3pDiYvmUAtUoGPz; stripe-js-v3/H3pDiYvmUAtUoGPz; payment-element",
    "muid": "H3pDiYvmUAtUoGPz",
    "pasted_fields": "number",
    "sid": "H3pDiYvmUAtUoGPz",
    "guid": "H3pDiYvmUAtUoGPz",
    "time_on_page": "18264"
  },
  "use_stripe_sdk": "true",
  "return_url": "https://store.jaycad.com/checkout/order-received//?key=wc_order_RfaJRuJyfPmKi&order_id=&wc_payment_method=stripe&_wpnonce=&save_payment_method=no",
  "client_secret": "************************************************************",
  "key": "pk_live_*********************************************************************************************alRrpi",
  "expected_payment_method_type": "card"
}