Skip to content

Commit 8fdf9b3

Browse files
Ghostscyphergithub-actions[bot]
authored andcommitted
Fix styling
1 parent d83286a commit 8fdf9b3

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

config/mpesa.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
*/
272272
'bill_manager_callback_url' => env('MPESA_BILL_MANAGER_CALLBACK_URL', ''),
273273

274-
275274
/*
276275
|--------------------------------------------------------------------------
277276
| M-Ratiba Callback URL

src/Concerns/MpesaC2B.php

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ public function registerUrl(
5454
* @param string $start_date - The date when the standing order should start
5555
* @param string $end_date - The date when the standing order should end
5656
* @param string $frequency - The frequency of the standing order
57-
* - 1 - One Off
58-
* - 2 - Daily
59-
* - 3 - Weekly
60-
* - 4 - Monthly
61-
* - 5 - Bi-Monthly
62-
* - 6 - Quarterly
63-
* - 7 - Half Year
64-
* - 8 - Yearly
57+
* - 1 - One Off
58+
* - 2 - Daily
59+
* - 3 - Weekly
60+
* - 4 - Monthly
61+
* - 5 - Bi-Monthly
62+
* - 6 - Quarterly
63+
* - 7 - Half Year
64+
* - 8 - Yearly
6565
* @param string $account_reference - The account reference for the transaction
6666
* @param string $callback_url - The URL to receive the result of the transaction
6767
* @param string $description - The description of the transaction
@@ -79,14 +79,13 @@ public function ratiba(
7979
string $start_date,
8080
string $end_date,
8181
string $frequency,
82-
string $account_reference = "Account",
82+
string $account_reference = 'Account',
8383
?string $callback_url = null,
84-
string $description = "Payment",
84+
string $description = 'Payment',
8585
?string $business_short_code = null,
86-
string $transaction_type = "Standing Order Customer Pay Bill",
87-
string $reciever_identifier_type = "4"
88-
): Response
89-
{
86+
string $transaction_type = 'Standing Order Customer Pay Bill',
87+
string $reciever_identifier_type = '4'
88+
): Response {
9089
// Generate token
9190
$this->generateToken();
9291

@@ -126,5 +125,4 @@ public function ratiba(
126125

127126
return $this->http_client->post('standingorder/v1/createStandingOrderExternal', $validator->validated());
128127
}
129-
130128
}

tests/Unit/B2CTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
expect($response)->toBeInstanceOf(\Illuminate\Http\Client\Response::class);
2020
});
2121

22-
it("can send B2C Ratiba request", function () {
22+
it('can send B2C Ratiba request', function () {
2323
Http::fake([
2424
'*' => Http::response([
2525
'ResponseDescription' => 'success',
@@ -29,7 +29,7 @@
2929
], 200),
3030
]);
3131

32-
$response = Mpesa::ratiba("lipa mdogo", "254708374149", 500, "20250101", "20250131", 4, "January 2025 Payment");
32+
$response = Mpesa::ratiba('lipa mdogo', '254708374149', 500, '20250101', '20250131', 4, 'January 2025 Payment');
3333

3434
expect($response)->toBeInstanceOf(\Illuminate\Http\Client\Response::class);
3535
});

0 commit comments

Comments
 (0)