Last active
January 25, 2023 13:21
-
-
Save mladenilic/a1b8ca4593d3d6f7db0d2159661d4e99 to your computer and use it in GitHub Desktop.
Sample payload for Stripe `customer.source.expiring` event webhook.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "evt_000000000000000000000000", | |
"object": "event", | |
"api_version": "2017-02-14", | |
"created": 1535997315, | |
"data": { | |
"object": { | |
"id": "card_000000000000000000000000", | |
"object": "card", | |
"address_city": null, | |
"address_country": null, | |
"address_line1": null, | |
"address_line1_check": null, | |
"address_line2": null, | |
"address_state": null, | |
"address_zip": null, | |
"address_zip_check": null, | |
"brand": "MasterCard", | |
"country": "NO", | |
"customer": "cus_00000000000000", | |
"cvc_check": "pass", | |
"dynamic_last4": null, | |
"exp_month": 9, | |
"exp_year": 2018, | |
"fingerprint": "0000000000000000", | |
"funding": "credit", | |
"last4": "2429", | |
"metadata": { | |
}, | |
"name": "hello@example.com", | |
"tokenization_method": null | |
} | |
}, | |
"livemode": false, | |
"pending_webhooks": 1, | |
"request": null, | |
"type": "customer.source.expiring", | |
"stripe_webhook": { | |
"id": "evt_000000000000000000000000", | |
"object": "event", | |
"api_version": "2017-02-14", | |
"created": 1535997315, | |
"data": { | |
"object": { | |
"id": "card_000000000000000000000000", | |
"object": "card", | |
"address_city": null, | |
"address_country": null, | |
"address_line1": null, | |
"address_line1_check": null, | |
"address_line2": null, | |
"address_state": null, | |
"address_zip": null, | |
"address_zip_check": null, | |
"brand": "MasterCard", | |
"country": "NO", | |
"customer": "cus_00000000000000", | |
"cvc_check": "pass", | |
"dynamic_last4": null, | |
"exp_month": 9, | |
"exp_year": 2018, | |
"fingerprint": "0000000000000000", | |
"funding": "credit", | |
"last4": "2429", | |
"metadata": { | |
}, | |
"name": "hello@example.com", | |
"tokenization_method": null | |
} | |
}, | |
"livemode": false, | |
"pending_webhooks": 1, | |
"request": null, | |
"type": "customer.source.expiring" | |
} | |
} |
@xkomiks The gist created back in 2018, so I doubt things haven't changed since then. To be completely honest, it was so long ago that I don't even remember why I needed this payload, but back then there was no example payload in their documentation, hence the gist.
If I had to guess stripe_webhook
was probably there to provide backward compatibility to some older API version, but that's only a guess.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mladenilic why
stripe_webhook
if it duplicates an external object? It's not in the documentationBy the way, payload from 2020-08-27 maybe useful to someone