Skip to content

Commit 2873457

Browse files
Merge pull request #95 from tolu-paystack/feat/add-virtual-terminal
add vt webhook code snippet
2 parents aab102b + 71caf0a commit 2873457

File tree

3 files changed

+137
-0
lines changed

3 files changed

+137
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
const json = `{
2+
"event": "charge.success",
3+
"data": {
4+
"id": 4677002219,
5+
"domain": "test",
6+
"status": "success",
7+
"reference": "T173424527684156",
8+
"amount": 10000,
9+
"message": null,
10+
"gateway_response": "Successful",
11+
"paid_at": "2025-02-11T10:42:20.000Z",
12+
"created_at": "2025-02-11T10:42:03.000Z",
13+
"channel": "card",
14+
"currency": "KES",
15+
"ip_address": "129.222.206.7",
16+
"metadata": {
17+
"virtual_terminal": { "code": "VT_68SBY77G" },
18+
"referrer": "https://paystack.shop/pay/vt_68sby77g"
19+
},
20+
"fees_breakdown": null,
21+
"log": null,
22+
"fees": 290,
23+
"fees_split": null,
24+
"authorization": {
25+
"authorization_code": "AUTH_7k5skwmhxu",
26+
"bin": "408408",
27+
"last4": "4081",
28+
"exp_month": "12",
29+
"exp_year": "2030",
30+
"channel": "card",
31+
"card_type": "visa ",
32+
"bank": "TEST BANK",
33+
"country_code": "KE",
34+
"brand": "visa",
35+
"reusable": true,
36+
"signature": "SIG_C9LhIPX2mQ8uckT6In2U",
37+
"account_name": null,
38+
"receiver_bank_account_number": null,
39+
"receiver_bank": null
40+
},
41+
"customer": {
42+
"id": 239551424,
43+
"first_name": "",
44+
"last_name": "",
45+
"email": "[email protected]",
46+
"customer_code": "CUS_edn4wbf00pcot1p",
47+
"phone": "",
48+
"metadata": null,
49+
"risk_action": "default",
50+
"international_format_phone": null
51+
},
52+
"plan": {},
53+
"subaccount": {},
54+
"split": {},
55+
"order_id": null,
56+
"paidAt": "2025-02-11T10:42:20.000Z",
57+
"requested_amount": 10000,
58+
"pos_transaction_data": null,
59+
"source": {
60+
"type": "offline",
61+
"source": "virtual_terminal",
62+
"entry_point": "request_inline",
63+
"identifier": "VT_68SBY77G"
64+
}
65+
}
66+
}
67+
`
68+
69+
export {json}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
languages:
2+
- json
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"event": "charge.success",
3+
"data": {
4+
"id": 4677002219,
5+
"domain": "test",
6+
"status": "success",
7+
"reference": "T173424527684156",
8+
"amount": 10000,
9+
"message": null,
10+
"gateway_response": "Successful",
11+
"paid_at": "2025-02-11T10:42:20.000Z",
12+
"created_at": "2025-02-11T10:42:03.000Z",
13+
"channel": "card",
14+
"currency": "KES",
15+
"ip_address": "129.222.206.7",
16+
"metadata": {
17+
"virtual_terminal": { "code": "VT_68SBY77G" },
18+
"referrer": "https://paystack.shop/pay/vt_68sby77g"
19+
},
20+
"fees_breakdown": null,
21+
"log": null,
22+
"fees": 290,
23+
"fees_split": null,
24+
"authorization": {
25+
"authorization_code": "AUTH_7k5skwmhxu",
26+
"bin": "408408",
27+
"last4": "4081",
28+
"exp_month": "12",
29+
"exp_year": "2030",
30+
"channel": "card",
31+
"card_type": "visa ",
32+
"bank": "TEST BANK",
33+
"country_code": "KE",
34+
"brand": "visa",
35+
"reusable": true,
36+
"signature": "SIG_C9LhIPX2mQ8uckT6In2U",
37+
"account_name": null,
38+
"receiver_bank_account_number": null,
39+
"receiver_bank": null
40+
},
41+
"customer": {
42+
"id": 239551424,
43+
"first_name": "",
44+
"last_name": "",
45+
"email": "[email protected]",
46+
"customer_code": "CUS_edn4wbf00pcot1p",
47+
"phone": "",
48+
"metadata": null,
49+
"risk_action": "default",
50+
"international_format_phone": null
51+
},
52+
"plan": {},
53+
"subaccount": {},
54+
"split": {},
55+
"order_id": null,
56+
"paidAt": "2025-02-11T10:42:20.000Z",
57+
"requested_amount": 10000,
58+
"pos_transaction_data": null,
59+
"source": {
60+
"type": "offline",
61+
"source": "virtual_terminal",
62+
"entry_point": "request_inline",
63+
"identifier": "VT_68SBY77G"
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)