@@ -2,21 +2,21 @@ const sh = `#!/bin/sh
22curl https://api.paystack.co/transferrecipient
33-H "Authorization: Bearer YOUR_SECRET_KEY"
44-H "Content-Type: application/json"
5- -d '{ "type": "mobile_money",
6- "name": "Andrew Jones",
7- "account_number ": "0751234987",
8- "bank_code ": "MPESA",
5+ -d '{ "type": "mobile_money_business",
6+ "name": "Till Transfer",
7+ "bank_code ": "MPTILL",
8+ "account_number ": "247247",
99 "currency": "KES"
1010 }'
1111-X POST`
1212
1313const js = `const https = require('https')
1414
1515const params = JSON.stringify({
16- "type":"mobile_money ",
17- "name" : "Andrew Jones ",
18- "account_number ": "0751234987 ",
19- "bank_code ": "MPESA ",
16+ "type": "mobile_money_business ",
17+ "name": "Till Transfer ",
18+ "bank_code ": "MPTILL ",
19+ "account_number ": "247247 ",
2020 "currency": "KES"
2121})
2222
@@ -52,11 +52,11 @@ const php = `<?php
5252 $url = "https://api.paystack.co/transferrecipient";
5353
5454 $fields = [
55- ' type' => "mobile_money ",
56- ' name' => "Andrew Jones ",
57- 'account_number' => "0751234987 ",
58- 'bank_code' => "MPESA ",
59- ' currency' => "KES"
55+ " type" => "mobile_money_business ",
56+ " name" => "Till Transfer ",
57+ "bank_code" => "MPTILL ",
58+ "account_number" => "247247 ",
59+ " currency" => "KES"
6060 ];
6161
6262 $fields_string = http_build_query($fields);
@@ -86,24 +86,27 @@ const json = `{
8686 "message": "Transfer recipient created successfully",
8787 "data": {
8888 "active": true,
89- "createdAt": "2023-07-04T09:24:41.473Z",
90- "currency": "KES",
91- "domain": "test",
92- "id": 56462048,
93- "integration": 845995,
94- "name": "Andrew Jones",
95- "recipient_code": "RCP_7awxjfhopevkpxm",
96- "type": "mobile_money",
97- "updatedAt": "2023-07-04T09:24:41.473Z",
98- "is_deleted": false,
99- "isDeleted": false,
100- "details": {
101- "authorization_code": null,
102- "account_number": "0751234987",
103- "account_name": null,
104- "bank_code": "MPESA",
105- "bank_name": "M-PESA"
106- }
89+ "createdAt": "2024-11-28T09:28:50.000Z",
90+ "currency": "KES",
91+ "description": null,
92+ "domain": "test",
93+ "email": null,
94+ "id": 92176030,
95+ "integration": 845995,
96+ "metadata": null,
97+ "name": "Till Transfer Example",
98+ "recipient_code": "RCP_5vl8b2yma7xdnjp",
99+ "type": "mobile_money_business",
100+ "updatedAt": "2024-11-28T09:28:50.000Z",
101+ "is_deleted": false,
102+ "isDeleted": false,
103+ "details": {
104+ "authorization_code": null,
105+ "account_number": "247247",
106+ "account_name": null,
107+ "bank_code": "MPTILL",
108+ "bank_name": "M-PESA Till"
109+ }
107110 }
108111}
109112`
0 commit comments