-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathevents.js
More file actions
98 lines (93 loc) · 2.47 KB
/
events.js
File metadata and controls
98 lines (93 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const refund_failed = `{
"event": "refund.failed",
"data": {
"status": "failed",
"transaction_reference": "T9171231_412325_3be2736c_n6tml",
"refund_reference": "TRF_9vgfawjnoz58uxy",
"amount": 20000,
"currency": "NGN",
"processor": "instant-transfer",
"customer": {
"first_name": "Tobi",
"last_name": "Digz",
"email": "tobi@mail.com"
},
"integration": 412325,
"domain": "live"
}
}`
const refund_needs_attention = `{
"event": "refund.needs-attention",
"data": {
"status": "needs-attention",
"transaction_reference": "88bfa94509eb96aa9785641c26cc57cc",
"refund_reference": "TRF_7jn17u9vkqm91efk",
"amount": 5306,
"currency": "NGN",
"customer": {
"first_name": null,
"last_name": null,
"email": "customer@email.com"
},
"integration": 123456,
"domain": "live",
"id": "123456",
"customer_note": "Refund for transaction 88bfa94509eb96aa9785641c26cc57cc",
"merchant_note": "Refund for transaction 88bfa94509eb96aa9785641c26cc57cc by paystack@email.com"
}
}`
const refund_pending = `{
"event": "refund.pending",
"data": {
"status": "pending",
"transaction_reference": "tvunjbbd_412829_4b18075d_c7had",
"refund_reference": null,
"amount": "10000",
"currency": "NGN",
"processor": "instant-transfer",
"customer": {
"first_name": "Drew",
"last_name": "Berry",
"email": "demo@email.com"
},
"integration": 412829,
"domain": "live"
}
}`
const refund_processed = `{
"event": "refund.processed",
"data": {
"status": "processed",
"transaction_reference": "T2154954_412829_3be32076_6lcg3",
"refund_reference": "132013318360",
"amount": "5000",
"currency": "NGN",
"processor": "mpgs_zen",
"customer": {
"first_name": "Damilola",
"last_name": "Kwabena",
"email": "damilola@email.com"
},
"integration": 412829,
"domain": "live"
}
}`
const refund_processing = `{
"event": "refund.processing",
"data": {
"status": "processing",
"transaction_reference": "tvunjbbd_412829_4b18075d_c7had",
"refund_reference": null,
"amount": "10000",
"currency": "NGN",
"processor": "instant-transfer",
"customer": {
"first_name": "Drew",
"last_name": "Berry",
"email": "demo@email.com"
},
"integration": 412829,
"domain": "live"
}
}`
export {refund_failed, refund_needs_attention, refund_pending, refund_processed, refund_processing}