Skip to content

Instantly share code, notes, and snippets.

@wehub
Last active November 8, 2021 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wehub/96fb17bd43451fe1c9ffba7f7f62e365 to your computer and use it in GitHub Desktop.
Save wehub/96fb17bd43451fe1c9ffba7f7f62e365 to your computer and use it in GitHub Desktop.
{
"id": "{NOTIFICATION-ID}",
"resource": "notifications",
"path": "/notifications/{NOTIFICATION-ID}",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "refunds.failed",
"event_time": 1568920734,
"payload": {
"id": "{REFUND-ID}",
"resource": "refunds",
"path": "/refunds/{REFUND-ID}",
"owner": {
"id": "{ACCOUNT-ID}",
"resource": "accounts",
"path": "/accounts/{ACCOUNT-ID}"
},
"create_time": 1553317851,
"status": "completed",
"refund_reason": "Return",
"amounts": {
"total_amount": 4400,
"fee_refund_amount": 158,
"currency": "USD"
},
"payment": {
"id": "{PAYMENT-ID}",
"resource": "payments",
"path": "/payments/{PAYMENT-ID}"
},
"payment_method": {
"id": "{PAYMENT_METHOD-ID}",
"resource": "payment_methods",
"path": "/payment_methods/{PAYMENT_METHOD-ID}"
},
"txnr_merchant_refund": {
"id": "{TRANSACTION_RECORD-ID}",
"resource": "transaction_records",
"path": "/transaction_records/{TRANSACTION_RECORD-ID}"
},
"txnr_app_fee_refund": {
"id": "{TRANSACTION_RECORD-ID}",
"resource": "transaction_records",
"path": "/transaction_records/{TRANSACTION_RECORD-ID}"
},
"pending_reasons": null,
"failure_reason": {
"details": {
"detail_code": "unknown",
"detail_message": "The payment could not refunded for unknown reasons."
},
"reason_code": "UNKNOWN",
"reason_message": "Failed to refund the payment due to unknown reasons"
},
"order": null,
"api_version": "3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment