meta {
  name: STRIPE WEBHOOKS
  type: http
  seq: 3
}

post {
  url: https://memeaigen.test/stripe/webhook
  body: json
  auth: none
}

body:json {
  {
    "id": "evt_1RgRPrEEXQJo9EEOWggvNEHe",
    "object": "event",
    "api_version": "2025-05-28.basil",
    "created": 1751465619,
    "data": {
      "object": {
        "id": "cs_test_a1RMSyzQu5Mk2cZYoAYLOCV9hfoc5z9RuYdE4jLY2htoizGr1AJZeAcnDh",
        "object": "checkout.session",
        "adaptive_pricing": {
          "enabled": true
        },
        "after_expiration": null,
        "allow_promotion_codes": null,
        "amount_subtotal": 400,
        "amount_total": 400,
        "automatic_tax": {
          "enabled": false,
          "liability": null,
          "provider": null,
          "status": null
        },
        "billing_address_collection": null,
        "cancel_url": "https://memeaigen.test/subscribe/cancelled?session_id={CHECKOUT_SESSION_ID}",
        "client_reference_id": null,
        "client_secret": null,
        "collected_information": {
          "shipping_details": null
        },
        "consent": null,
        "consent_collection": null,
        "created": 1751465613,
        "currency": "usd",
        "currency_conversion": null,
        "custom_fields": [],
        "custom_text": {
          "after_submit": null,
          "shipping_address": null,
          "submit": null,
          "terms_of_service_acceptance": null
        },
        "customer": "cus_SbGYl34MpG4nv5",
        "customer_creation": null,
        "customer_details": {
          "address": {
            "city": null,
            "country": "MY",
            "line1": null,
            "line2": null,
            "postal_code": null,
            "state": null
          },
          "email": "memeaigen.com@gmail.com",
          "name": "TEST NAME",
          "phone": null,
          "tax_exempt": "none",
          "tax_ids": []
        },
        "customer_email": null,
        "discounts": [],
        "expires_at": 1751552013,
        "invoice": null,
        "invoice_creation": {
          "enabled": false,
          "invoice_data": {
            "account_tax_ids": null,
            "custom_fields": null,
            "description": null,
            "footer": null,
            "issuer": null,
            "metadata": {},
            "rendering_options": null
          }
        },
        "livemode": false,
        "locale": null,
        "metadata": {},
        "mode": "payment",
        "payment_intent": "pi_3RgRPqEEXQJo9EEO1a43uB5g",
        "payment_link": null,
        "payment_method_collection": "if_required",
        "payment_method_configuration_details": {
          "id": "pmc_1RfN0QEEXQJo9EEOzYHrN3LV",
          "parent": null
        },
        "payment_method_options": {
          "card": {
            "request_three_d_secure": "automatic"
          }
        },
        "payment_method_types": [
          "card",
          "link"
        ],
        "payment_status": "paid",
        "permissions": null,
        "phone_number_collection": {
          "enabled": false
        },
        "recovered_from": null,
        "saved_payment_method_options": {
          "allow_redisplay_filters": [
            "always"
          ],
          "payment_method_remove": "disabled",
          "payment_method_save": null
        },
        "setup_intent": null,
        "shipping_address_collection": null,
        "shipping_cost": null,
        "shipping_options": [],
        "status": "complete",
        "submit_type": null,
        "subscription": null,
        "success_url": "https://memeaigen.test/subscribe/success?session_id={CHECKOUT_SESSION_ID}",
        "total_details": {
          "amount_discount": 0,
          "amount_shipping": 0,
          "amount_tax": 0
        },
        "ui_mode": "hosted",
        "url": null,
        "wallet_options": null
      }
    },
    "livemode": false,
    "pending_webhooks": 2,
    "request": {
      "id": null,
      "idempotency_key": null
    },
    "type": "checkout.session.completed"
  }
}
