Skip to content

Commit

Permalink
Chore: DD events
Browse files Browse the repository at this point in the history
  • Loading branch information
damilola-paystack committed Feb 28, 2024
1 parent a0d2b20 commit 6b86225
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
64 changes: 64 additions & 0 deletions dist/doc/payments/direct-debit/authorization-status/events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
const authorization_active = `{
"event": "direct_debit.authorization.active",
"data": {
"authorization_code": "AUTH_JV4T9Wawdj",
"active": true,
"last4": "1234",
"channel": "direct_debit",
"card_type": "mandate",
"bank": "Guaranty Trust Bank",
"exp_month": 1,
"exp_year": 2034,
"country_code": "NG",
"brand": "Guaranty Trust Bank",
"reusable": true,
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
"account_name": "Ravi Demo",
"integration": 191390,
"domain": "live",
"reference": "miinublwbjkjm7",
"customer": {
"first_name": "Ravi",
"last_name": "Demo",
"code": "CUS_g0a2pm2ilthhh62",
"email": "[email protected]",
"phone": "",
"metadata": null,
"risk_action": "default"
}
}
}
`

const authorization_created = `{
"event": "direct_debit.authorization.created",
"status": true,
"message": "Authorization retrieved successfully",
"data": {
"authorization_code": "AUTH_JV4T9Wawdj",
"active": true,
"last4": "1234",
"channel": "direct_debit",
"card_type": "mandate",
"bank": "Guaranty Trust Bank",
"exp_month": 1,
"exp_year": 2034,
"country_code": "NG",
"brand": "Guaranty Trust Bank",
"reusable": true,
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
"account_name": "Ravi Demo",
"customer": {
"first_name": "Ravi",
"last_name": "Demo",
"code": "CUS_g0a2pm2ilthhh62",
"email": "[email protected]",
"phone": "",
"metadata": null,
"risk_action": "default"
}
}
}
`

export {authorization_active, authorization_created}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"event": "direct_debit.authorization.active",
"data": {
"authorization_code": "AUTH_JV4T9Wawdj",
"active": true,
"last4": "1234",
"channel": "direct_debit",
"card_type": "mandate",
"bank": "Guaranty Trust Bank",
"exp_month": 1,
"exp_year": 2034,
"country_code": "NG",
"brand": "Guaranty Trust Bank",
"reusable": true,
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
"account_name": "Ravi Demo",
"integration": 191390,
"domain": "live",
"reference": "miinublwbjkjm7",
"customer": {
"first_name": "Ravi",
"last_name": "Demo",
"code": "CUS_g0a2pm2ilthhh62",
"email": "[email protected]",
"phone": "",
"metadata": null,
"risk_action": "default"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"event": "direct_debit.authorization.created",
"status": true,
"message": "Authorization retrieved successfully",
"data": {
"authorization_code": "AUTH_JV4T9Wawdj",
"active": true,
"last4": "1234",
"channel": "direct_debit",
"card_type": "mandate",
"bank": "Guaranty Trust Bank",
"exp_month": 1,
"exp_year": 2034,
"country_code": "NG",
"brand": "Guaranty Trust Bank",
"reusable": true,
"signature": "SIG_u8SqR3E6ty2koQ9i5IrI",
"account_name": "Ravi Demo",
"customer": {
"first_name": "Ravi",
"last_name": "Demo",
"code": "CUS_g0a2pm2ilthhh62",
"email": "[email protected]",
"phone": "",
"metadata": null,
"risk_action": "default"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: event
languages:
- json

0 comments on commit 6b86225

Please sign in to comment.