Skip to content

Commit 3b6adc3

Browse files
committed
Update terminal hardware waiting to fetch ID from session
1 parent 0cd9fba commit 3b6adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/PaymentHandlers/PaystackTerminal/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function createPaymentRequest(string $model, int $modelId, string $email,
7373

7474
public function waitForTerminalHardware()
7575
{
76-
$terminalId = config("laravel-multipay.paystack_terminal_id");
76+
$terminalId = session('multipay::paystack_terminal_id', config('laravel-multipay.paystack_terminal_id'));
7777

7878
if (!$terminalId) {
7979
throw new \Exception("Terminal id is not set in the config file");

0 commit comments

Comments
 (0)