charge.failed
The charge.failed
event that is triggered when the end-user's credit card has failed upon submitting a charge. This could be due to insufficient funds on the card or trying to charge an expired card.
{
"type": "charge.failed",
"id": "evt_u5lv5YjaQm6ymhxgE7p93jlN",
"created": 1624531399,
"data": {
"object": {
"object": "charge",
"id": 86,
"amount": 15000,
"amount_refunded": 0,
"created": "2021-06-24 10:43:14",
"created_at": "2021-06-24 10:43:17",
"currency": "cad",
"customer": {
"object": "customer",
"id": 64,
"balance": 0,
"created": "2021-06-24 10:16:11",
"currency": "cad",
"default_source": {
"object": "source",
"id": 106,
"address_line1_check": "pass",
"address_zip_check": "pass",
"brand": "Visa",
"country": "US",
"cvc_check": "pass",
"dynamic_last4": null,
"exp_month": 5,
"exp_year": 2022,
"fingerprint": "b20EgCMpRnuPYluY",
"funding": "credit",
"last4": "0019",
"name": null,
"three_d_secure": "optional",
"tokenization_method": null
},
"delinquent": false,
"display_name": "display_name",
"email": "[email protected]",
"email_confirm": null,
"first_name": "first name",
"has_password": 0,
"language": null,
"last_name": "last name",
"metadata": {
"pelcro_account_id": "1",
"pelcro_customer_id": "64"
},
"object_id": "cus_PicxVTB4Sso6g7",
"phone": "12345678",
"phone_confirm": null,
"salutation": "salutation",
"title": "title"
},
"description": "Subscription creation",
"disputed": false,
"failure_code": "card_declined",
"failure_message": "Your card was declined.",
"invoice": {
"object": "invoice",
"id": 159,
"address_billing": {
"object": "address",
"id": 44,
"city": "cit",
"company": null,
"country": "CA",
"country_name": "Canada",
"created_at": "2021-06-24 10:28:08",
"department": null,
"first_name": "first name",
"is_default": true,
"last_name": "last name",
"line1": "ad",
"line2": null,
"postal_code": "12345",
"salutation": null,
"state": "QC",
"state_name": "Quebec",
"title": null,
"type": "billing",
"updated_at": "2021-06-24 10:28:08"
},
"address_shipping": null,
"amount_due": 15000,
"amount_paid": 0,
"amount_remaining": 15000,
"auto_advance": true,
"billing": "charge_automatically",
"billing_address": {
"object": "address",
"id": 44,
"city": "cit",
"company": null,
"country": "CA",
"country_name": "Canada",
"created_at": "2021-06-24 10:28:08",
"department": null,
"first_name": "first name",
"is_default": true,
"last_name": "last name",
"line1": "ad",
"line2": null,
"postal_code": "12345",
"salutation": null,
"state": "QC",
"state_name": "Quebec",
"title": null,
"type": "billing",
"updated_at": "2021-06-24 10:28:08"
},
"billing_reason": "subscription_create",
"charge_id": null,
"created": "2021-06-24 10:43:13",
"currency": "cad",
"customer": {
"object": "customer",
"id": 64,
"balance": 0,
"created": "2021-06-24 10:16:11",
"currency": "cad",
"default_source": {
"object": "source",
"id": 106,
"address_line1_check": "pass",
"address_zip_check": "pass",
"brand": "Visa",
"country": "US",
"cvc_check": "pass",
"dynamic_last4": null,
"exp_month": 5,
"exp_year": 2022,
"fingerprint": "b20EgCMpRnuPYluY",
"funding": "credit",
"last4": "0019",
"name": null,
"three_d_secure": "optional",
"tokenization_method": null
},
"delinquent": false,
"display_name": "display_name",
"email": "[email protected]",
"email_confirm": null,
"first_name": "first name",
"has_password": 0,
"language": null,
"last_name": "last name",
"metadata": {
"pelcro_account_id": "1",
"pelcro_customer_id": "64"
},
"object_id": "cus_PicxVTB4Sso6g7",
"phone": "12345678",
"phone_confirm": null,
"salutation": "salutation",
"title": "title"
},
"customer_address": {
"city": "cit",
"country": "CA",
"line1": "ad",
"line2": null,
"postal_code": "12345",
"state": "QC"
},
"customer_shipping": null,
"default_tax_rates": null,
"deleted_at": null,
"discount_id": null,
"ending_balance": 0,
"finalized_at": "2021-06-24 10:43:13",
"is_imported": null,
"lines": null,
"marked_uncollectible_at": null,
"number": "5408B141-0002",
"object_id": "in_19vkKQGrB8QvQYKPFguF5dN0",
"paid_at": null,
"period_end": "2021-06-24 10:43:13",
"period_start": "2021-06-24 10:43:13",
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"purchase_order": null,
"source": {
"object": "source",
"id": 106,
"address_line1_check": "pass",
"address_zip_check": "pass",
"brand": "Visa",
"country": "US",
"cvc_check": "pass",
"dynamic_last4": null,
"exp_month": 5,
"exp_year": 2022,
"fingerprint": "b20EgCMpRnuPYluY",
"funding": "credit",
"last4": "0019",
"name": null,
"object_id": "src_1DOYwzIZYE1ApGjqEnkUtNNv",
"three_d_secure": "optional",
"tokenization_method": null
},
"starting_balance": 0,
"status": "open",
"subtotal": 15000,
"tax": null,
"tax_percent": null,
"total": 15000,
"total_tax_amounts": null,
"updated_at": "2021-06-24 10:43:15",
"voided_at": null
},
"invoice_id": 159,
"object_id": "ch_2DvKNaGqB8PvQGJPEvZv5gTp",
"paid": false,
"receipt_email": null,
"receipt_number": null,
"receipt_url": null,
"refunded": false,
"source_id": 106,
"statement_descriptor": "Cool product",
"status": "failed",
"updated_at": "2021-06-24 10:43:17",
"user_id": 64
}
}
}
Updated 7 months ago
Did this page help you?