Skip to content

Instantly share code, notes, and snippets.

@mmikhan
Created February 15, 2025 19:45
Show Gist options
  • Save mmikhan/0a42805c480948d626814d231296e3d8 to your computer and use it in GitHub Desktop.
Save mmikhan/0a42805c480948d626814d231296e3d8 to your computer and use it in GitHub Desktop.
Stripe checkout session completed event web hook object
{
"api_version": "2025-01-27.acacia",
"created": 1739648336,
"data": {
"object": {
"adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": 1000,
"amount_total": 1000,
"automatic_tax": {
"enabled": false,
"liability": null,
"status": null
},
"billing_address_collection": null,
"cancel_url": "http://localhost:3000/cancel",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
"shipping_details": null
},
"consent": null,
"consent_collection": null,
"created": 1739648270,
"currency": "usd",
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
"after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
},
"customer": "cus_RmQ2KmdnpWFXIL",
"customer_creation": "always",
"customer_details": {
"address": {
"city": null,
"country": "NL",
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": "[email protected]",
"name": "John Doe",
"phone": null,
"tax_exempt": "none",
"tax_ids": []
},
"customer_email": null,
"discounts": [],
"expires_at": 1739734670,
"id": "cs_test_a1ZETwrCoc0wk2QGJfY09FWMu9i7lWa1xxc53phwLtpgTkR7DP3MCLxMfZ",
"invoice": "in_1QsrCT2NivGZCNxWCqneEbJy",
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
"customerId": "10"
},
"mode": "subscription",
"object": "checkout.session",
"payment_intent": null,
"payment_link": null,
"payment_method_collection": "always",
"payment_method_configuration_details": {
"id": "pmc_1Qsial2NivGZCNxW4GCmdSzv",
"parent": null
},
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card",
"link"
],
"payment_status": "paid",
"phone_number_collection": {
"enabled": false
},
"recovered_from": null,
"saved_payment_method_options": {
"allow_redisplay_filters": [
"always"
],
"payment_method_remove": null,
"payment_method_save": null
},
"setup_intent": null,
"shipping_address_collection": null,
"shipping_cost": null,
"shipping_details": null,
"shipping_options": [],
"status": "complete",
"submit_type": null,
"subscription": "sub_1QsrCT2NivGZCNxWBhyDzhwW",
"success_url": "http://localhost:3000/success",
"total_details": {
"amount_discount": 0,
"amount_shipping": 0,
"amount_tax": 0
},
"ui_mode": "hosted",
"url": null
}
},
"id": "evt_1QsrCW2NivGZCNxWj8ZJn3jT",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": null,
"idempotency_key": null
},
"type": "checkout.session.completed"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment