{
  "data": [
    {
      "api_version": "2020-08-27",
      "created": 1000000000,
      "data": {
        "object": {
          "amount": 48000,
          "amount_capturable": 0,
          "amount_received": 0,
          "application": null,
          "application_fee_amount": null,
          "automatic_payment_methods": null,
          "canceled_at": null,
          "cancellation_reason": null,
          "capture_method": "automatic",
          "charges": {
            "data": [
              {
                "amount": 48000,
                "amount_captured": 0,
                "amount_refunded": 0,
                "application": null,
                "application_fee": null,
                "application_fee_amount": null,
                "balance_transaction": null,
                "billing_details": {
                  "address": {
                    "city": null,
                    "country": null,
                    "line1": null,
                    "line2": null,
                    "postal_code": null,
                    "state": null
                  },
                  "email": null,
                  "name": null,
                  "phone": null
                },
                "calculated_statement_descriptor": "ZULIP STANDARD",
                "captured": false,
                "created": 1000000000,
                "currency": "usd",
                "customer": "cus_NORMALIZED0001",
                "description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
                "destination": null,
                "dispute": null,
                "disputed": false,
                "failure_code": "card_declined",
                "failure_message": "Your card was declined.",
                "fraud_details": {},
                "id": "ch_NORMALIZED00000000000001",
                "invoice": null,
                "livemode": false,
                "metadata": {
                  "billing_modality": "charge_automatically",
                  "billing_schedule": "1",
                  "license_management": "automatic",
                  "licenses": "6",
                  "price_per_license": "8000",
                  "realm_id": "1",
                  "realm_str": "zulip",
                  "seat_count": "6",
                  "type": "upgrade",
                  "user_email": "hamlet@zulip.com",
                  "user_id": "10"
                },
                "object": "charge",
                "on_behalf_of": null,
                "order": null,
                "outcome": {
                  "network_status": "declined_by_network",
                  "reason": "generic_decline",
                  "risk_level": "normal",
                  "risk_score": 0,
                  "seller_message": "The bank did not return any further details with this decline.",
                  "type": "issuer_declined"
                },
                "paid": false,
                "payment_intent": "pi_NORMALIZED00000000000001",
                "payment_method": "pm_1K2Ob7HSaWXyvFpKia7kC5ud",
                "payment_method_details": {
                  "card": {
                    "brand": "visa",
                    "checks": {
                      "address_line1_check": null,
                      "address_postal_code_check": null,
                      "cvc_check": "pass"
                    },
                    "country": "US",
                    "exp_month": 3,
                    "exp_year": 2033,
                    "fingerprint": "NORMALIZED000001",
                    "funding": "credit",
                    "installments": null,
                    "last4": "0341",
                    "network": "visa",
                    "three_d_secure": null,
                    "wallet": null
                  },
                  "type": "card"
                },
                "receipt_email": "hamlet@zulip.com",
                "receipt_number": null,
                "receipt_url": null,
                "refunded": false,
                "refunds": {
                  "data": [],
                  "has_more": false,
                  "object": "list",
                  "total_count": 0,
                  "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
                },
                "review": null,
                "shipping": null,
                "source": null,
                "source_transfer": null,
                "statement_descriptor": "Zulip Cloud Standard",
                "statement_descriptor_suffix": null,
                "status": "failed",
                "transfer_data": null,
                "transfer_group": null
              }
            ],
            "has_more": false,
            "object": "list",
            "total_count": 1,
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
          },
          "client_secret": "pi_NORMALIZED00000000000001_secret_eT8bz4tckMExuwElmoq8NBykB",
          "confirmation_method": "automatic",
          "created": 1000000000,
          "currency": "usd",
          "customer": "cus_NORMALIZED0001",
          "description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
          "id": "pi_NORMALIZED00000000000001",
          "invoice": null,
          "last_payment_error": {
            "charge": "ch_NORMALIZED00000000000001",
            "code": "card_declined",
            "decline_code": "generic_decline",
            "doc_url": "https://stripe.com/docs/error-codes/card-declined",
            "message": "Your card was declined.",
            "payment_method": {
              "billing_details": {
                "address": {
                  "city": null,
                  "country": null,
                  "line1": null,
                  "line2": null,
                  "postal_code": null,
                  "state": null
                },
                "email": null,
                "name": null,
                "phone": null
              },
              "card": {
                "brand": "visa",
                "checks": {
                  "address_line1_check": null,
                  "address_postal_code_check": null,
                  "cvc_check": "pass"
                },
                "country": "US",
                "exp_month": 3,
                "exp_year": 2033,
                "fingerprint": "NORMALIZED000001",
                "funding": "credit",
                "generated_from": null,
                "last4": "0341",
                "networks": {
                  "available": [
                    "visa"
                  ],
                  "preferred": null
                },
                "three_d_secure_usage": {
                  "supported": true
                },
                "wallet": null
              },
              "created": 1000000000,
              "customer": "cus_NORMALIZED0001",
              "id": "pm_1K2Ob7HSaWXyvFpKia7kC5ud",
              "livemode": false,
              "metadata": {},
              "object": "payment_method",
              "type": "card"
            },
            "type": "card_error"
          },
          "livemode": false,
          "metadata": {
            "billing_modality": "charge_automatically",
            "billing_schedule": "1",
            "license_management": "automatic",
            "licenses": "6",
            "price_per_license": "8000",
            "realm_id": "1",
            "realm_str": "zulip",
            "seat_count": "6",
            "type": "upgrade",
            "user_email": "hamlet@zulip.com",
            "user_id": "10"
          },
          "next_action": null,
          "object": "payment_intent",
          "on_behalf_of": null,
          "payment_method": null,
          "payment_method_options": {
            "card": {
              "installments": null,
              "network": null,
              "request_three_d_secure": "automatic"
            }
          },
          "payment_method_types": [
            "card"
          ],
          "receipt_email": "hamlet@zulip.com",
          "review": null,
          "setup_future_usage": null,
          "shipping": null,
          "source": null,
          "statement_descriptor": "Zulip Cloud Standard",
          "statement_descriptor_suffix": null,
          "status": "requires_payment_method",
          "transfer_data": null,
          "transfer_group": null
        }
      },
      "id": "evt_3K2Ob8HSaWXyvFpK1gSQt9MS",
      "livemode": false,
      "object": "event",
      "pending_webhooks": 0,
      "request": {
        "id": "req_NORMALIZED0002",
        "idempotency_key": "5fcc79f4-a027-436d-b434-662fc47bf825"
      },
      "type": "payment_intent.payment_failed"
    }
  ],
  "has_more": true,
  "object": "list",
  "url": "/v1/events"
}
