-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d2b20
commit 6b86225
Showing
4 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
dist/doc/payments/direct-debit/authorization-status/events.js
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
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} |
30 changes: 30 additions & 0 deletions
30
src/doc/payments/direct-debit/authorization-status/events/authorization-active.json
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
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" | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/doc/payments/direct-debit/authorization-status/events/authorization-created.json
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
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" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/doc/payments/direct-debit/authorization-status/events/config.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: event | ||
languages: | ||
- json |