Charge events
What data you get for charge.created, charge.paid, charge.captured, charge.failed, charge.canceled, charge.expired, charge.refunded, and charge.requires_action.
Fires as a charge moves through its lifecycle — created, paid, captured, declined, canceled or expired, refunded, or waiting on an extra step from the payer.
Each event arrives as an event object.
The examples on this page show its data.object.
Prop
Type
charge.created
Sent right after a charge is opened, usually still pending.
{
"id": "ch_01J9ABCDEFGHJKMNPQRSTV",
"object": "charge",
"status": "pending",
"customer_id": "cus_01J8XYZABCDEFGHJKMNPQR",
"payment_method_id": "pm_01J8XYZABCDEFGHJKMNPQR",
"amount": 150000,
"currency": "thb",
"scaling_factor": 100,
"paid": false,
"canceled": false,
"refunded": false,
"captured": false,
"capture_method": "automatic",
"settlement_status": "pending",
"disputed": false,
"provider": "omise",
"metadata": { "order_id": "SO-2026-0042" },
"payment_method": {
"id": "pm_01J8XYZABCDEFGHJKMNPQR",
"type": "card",
"brand": "visa",
"issuer": "kbank",
"last4": "4242"
}
}amount is in the currency's minor unit — divide by scaling_factor for a display
value.
charge.paid and charge.captured
Same shape as above.
charge.paidis sent once, when the charge becomes paid:statusis"succeeded"andpaidistrue. A charge that is already paid when it's created sends onlycharge.created, withpaid: true.charge.capturedis sent once, when a charge that was not captured becomes captured: after you capture amanualcharge, or when anautomaticcharge is captured after it was paid.capturedistrueandamount_capturedis the captured amount, which is less thanamountafter a partial capture. A charge that is already captured when it's created doesn't send it; itscharge.createdshowscaptured: true.
charge.failed
Sent when the provider declines the charge, as Stripe sends charge.failed: at once when the
card is refused while the payment is confirmed, or later when the provider reports the decline.
status is "failed", paid and captured are false, and canceled stays false, because
a declined charge was not canceled. reference_id is the failed charge the provider created, when
it created one. The payment intent moves back to requires_payment_method and sends
payment_intent.payment_failed.
{
"id": "ch_01J9ABCDEFGHJKMNPQRSTV",
"object": "charge",
"status": "failed",
"paid": false,
"captured": false,
"canceled": false,
"failure_reason": "provider_declined",
"failure_code": "card_declined",
"failure_provider_code": "generic_decline",
"failure_message": "The card was declined by the issuer. Try a different card, or contact your bank.",
"outcome": {
"type": "issuer_declined",
"network_status": "declined_by_network",
"reason": "generic_decline",
"seller_message": "The bank did not return any further details with this decline."
},
"reference_id": "ch_3Pxyz",
"provider": "stripe",
"currency": "thb",
"amount": 150000
}failure_code is Stripe's code whichever provider declined the card; failure_provider_code
keeps the provider's own code.
charge.canceled and charge.expired
Same shape, status becomes "failed" and canceled is true. A declined charge sends
charge.failed instead. charge.expired
fires instead of charge.canceled when the cancellation was caused by something timing
out (a QR code, a redirect, a session) rather than an explicit cancel:
{
"id": "ch_01J9ABCDEFGHJKMNPQRSTV",
"object": "charge",
"status": "failed",
"canceled": true,
"failure_reason": "qr_expired",
"failure_message": "payment expired before completion",
"reason_source": "local_ttl",
"canceled_at": 1785000900,
"currency": "thb",
"amount": 150000
}failure_reason always holds one of the listed values, so you can branch on it.
failure_code is left out when the provider gave no code, as on an expiry.
charge.refunded
Sent when a refund on the charge succeeds, fully or partially — the same event as
Stripe's. amount_refunded is the total refunded so far, and refunded turns true
once the whole charge has been refunded. A partial refund leaves the rest refundable,
so the event can fire more than once for the same charge.
{
"id": "ch_01J9ABCDEFGHJKMNPQRSTV",
"object": "charge",
"status": "succeeded",
"amount": 150000,
"amount_captured": 150000,
"amount_refunded": 50000,
"currency": "thb",
"scaling_factor": 100,
"paid": true,
"captured": true,
"refunded": false,
"provider": "omise"
}The refund itself arrives as refund.created and refund.updated.
charge.requires_action
The one event where next_action is populated — a provider is asking the payer to
complete an extra step (3DS challenge, bank redirect, app confirmation) before the
charge can settle.
{
"id": "ch_01J9ABCDEFGHJKMNPQRSTV",
"object": "charge",
"status": "pending",
"amount": 150000,
"currency": "thb",
"next_action": [
{
"type": "redirect",
"title": "Complete authentication",
"description": "Confirm the payment in your banking app.",
"url": "https://api.omise.co/payments/authorize/xyz"
}
],
"payment_method": {
"type": "card",
"brand": "visa",
"last4": "4242"
}
}