Skip to content

Commit 2b9f717

Browse files
authored
Update Arb.php
1 parent 7f742e8 commit 2b9f717

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Arb.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class Arb
1717
/**
1818
* @var string The URL to redirect to after a successful payment.
1919
*/
20-
protected string $success_url = 'https://api-dev.lockers.com.sa/arb/response';
20+
protected ?string $success_url;
2121

2222
/**
2323
* @var string The URL to redirect to after a failed payment.
2424
*/
25-
protected string $error_url = 'https://api-dev.lockers.com.sa/arb/response';
25+
protected ?string $error_url;
2626

2727
/**
2828
* @var array The data to be sent with the payment request.
@@ -284,7 +284,7 @@ public function successUrl(?string $url = null): string|self
284284
return $this;
285285
}
286286

287-
return $this->success_url;
287+
return $this->success_url ?? config('arb.redirect.success');
288288
}
289289

290290
/**
@@ -301,7 +301,7 @@ public function failUrl(?string $url = null): string|self
301301
return $this;
302302
}
303303

304-
return $this->error_url;
304+
return $this->error_url ?? config('arb.redirect.fail');
305305
}
306306

307307
/**

0 commit comments

Comments
 (0)