Skip to content

Commit b2fbc69

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent f05a8fb commit b2fbc69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Testing/RedirectionTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ protected function makeSuccessfulRedirection(string $uri, array $payload = [])
3232
$signature = new Signature(config('services.billplz.x-signature'), Signature::REDIRECT_PARAMETERS);
3333

3434
$encodedData = collect($data['billplz'])
35-
->mapWithKeys(fn ($value, $key) => ["billplz$key" => $value])
35+
->mapWithKeys(function ($value, $key) {
36+
return ["billplz$key" => $value];
37+
})
3638
->toArray();
3739

3840
$data['billplz']['x_signature'] = $signature->create($encodedData);

tests/Feature/PaymentCompletion/RedirectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function it_can_accept_redirection_callback_with_extra_payment_info()
3838
{
3939
$this->makeSuccessfulRedirection('completed', [
4040
'transaction_id' => 'AC4GC031F42H',
41-
'transaction_status' => 'completed',
41+
'transaction_status' => 'completed',
4242
])
4343
->assertJson([
4444
'id' => 'W_79pJDk',

0 commit comments

Comments
 (0)