Skip to content

Commit c6b49eb

Browse files
Merge pull request #101 from PaystackOSS/patch-pwt
Chore: Update PWT code snippet
2 parents c500698 + 7bc2d27 commit c6b49eb

File tree

5 files changed

+42
-45
lines changed

5 files changed

+42
-45
lines changed

dist/doc/payments/payment-methods/pwt.js

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
55
content_type="Content-Type: application/json"
66
data='{
77
"email": "[email protected]",
8-
"amount": "25000",
8+
"amount": "10000",
99
"bank_transfer": {
10-
"account_expires_at": "2023-09-12T13:10:00Z"
10+
"account_expires_at": "2025-04-24T16:40:57.954Z"
1111
}
1212
}'
1313
@@ -17,9 +17,9 @@ const js = `const https = require('https')
1717
1818
const params = JSON.stringify({
1919
"email": "[email protected]",
20-
"amount": "25000",
20+
"amount": "10000",
2121
"bank_transfer": {
22-
"account_expires_at": "2023-09-12T13:10:00Z"
22+
"account_expires_at": "2025-04-24T16:40:57.954Z"
2323
}
2424
})
2525
@@ -66,7 +66,7 @@ const php = `<?php
6666
"email" => "[email protected]",
6767
"amount" => "10000",
6868
"bank_transfer" => [
69-
"account_expires_at" => "2023-09-12T13:10:00Z"
69+
"account_expires_at" => "2025-04-24T16:40:57.954Z"
7070
]
7171
],
7272
CURLOPT_HTTPHEADER => array(
@@ -88,23 +88,21 @@ const php = `<?php
8888
?>`
8989

9090
const json = `{
91-
"status": true,
92-
"message": "Charge attempted",
93-
"data": {
94-
"status": "pending_bank_transfer",
95-
"display_text": "Please make a transfer to the account specified",
96-
"reference": "4tn28gwznc",
97-
"amount": 20000,
98-
"account_name": "PAYSTACK CHECKOUT",
99-
"account_number": "1231084927",
100-
"bank": {
101-
"slug": "test-bank",
102-
"name": "Test Bank",
103-
"id": 24
104-
},
105-
"account_expires_at": "2023-09-12T13:10:55.000Z"
106-
}
107-
}
108-
`
91+
"status": true,
92+
"message": "Charge attempted",
93+
"data": {
94+
"reference": "kcvu0t3kzs",
95+
"status": "pending_bank_transfer",
96+
"display_text": "Please make a transfer to the account specified",
97+
"account_name": "TEST-MANAGED-ACCOUNT",
98+
"account_number": "1260257501",
99+
"bank": {
100+
"slug": "test-bank",
101+
"name": "Test Bank",
102+
"id": 24
103+
},
104+
"account_expires_at": "2025-04-24T16:40:57.954Z"
105+
}
106+
}`
109107

110108
export {sh, js, php, json}

src/doc/payments/payment-methods/pwt/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const https = require('https')
22

33
const params = JSON.stringify({
44
"email": "[email protected]",
5-
"amount": "25000",
5+
"amount": "10000",
66
"bank_transfer": {
7-
"account_expires_at": "2023-09-12T13:10:00Z"
7+
"account_expires_at": "2025-04-24T16:40:57.954Z"
88
}
99
})
1010

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"status": true,
3-
"message": "Charge attempted",
4-
"data": {
5-
"status": "pending_bank_transfer",
6-
"display_text": "Please make a transfer to the account specified",
7-
"reference": "4tn28gwznc",
8-
"amount": 20000,
9-
"account_name": "PAYSTACK CHECKOUT",
10-
"account_number": "1231084927",
11-
"bank": {
12-
"slug": "test-bank",
13-
"name": "Test Bank",
14-
"id": 24
15-
},
16-
"account_expires_at": "2023-09-12T13:10:55.000Z"
17-
}
18-
}
2+
"status": true,
3+
"message": "Charge attempted",
4+
"data": {
5+
"reference": "kcvu0t3kzs",
6+
"status": "pending_bank_transfer",
7+
"display_text": "Please make a transfer to the account specified",
8+
"account_name": "TEST-MANAGED-ACCOUNT",
9+
"account_number": "1260257501",
10+
"bank": {
11+
"slug": "test-bank",
12+
"name": "Test Bank",
13+
"id": 24
14+
},
15+
"account_expires_at": "2025-04-24T16:40:57.954Z"
16+
}
17+
}

src/doc/payments/payment-methods/pwt/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"email" => "[email protected]",
1414
"amount" => "10000",
1515
"bank_transfer" => [
16-
"account_expires_at" => "2023-09-12T13:10:00Z"
16+
"account_expires_at" => "2025-04-24T16:40:57.954Z"
1717
]
1818
],
1919
CURLOPT_HTTPHEADER => array(

src/doc/payments/payment-methods/pwt/index.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
55
content_type="Content-Type: application/json"
66
data='{
77
"email": "[email protected]",
8-
"amount": "25000",
8+
"amount": "10000",
99
"bank_transfer": {
10-
"account_expires_at": "2023-09-12T13:10:00Z"
10+
"account_expires_at": "2025-04-24T16:40:57.954Z"
1111
}
1212
}'
1313

0 commit comments

Comments
 (0)