File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ class Arb
17
17
/**
18
18
* @var string The URL to redirect to after a successful payment.
19
19
*/
20
- protected string $ success_url = ' https://api-dev.lockers.com.sa/arb/response ' ;
20
+ protected ? string $ success_url ;
21
21
22
22
/**
23
23
* @var string The URL to redirect to after a failed payment.
24
24
*/
25
- protected string $ error_url = ' https://api-dev.lockers.com.sa/arb/response ' ;
25
+ protected ? string $ error_url ;
26
26
27
27
/**
28
28
* @var array The data to be sent with the payment request.
@@ -284,7 +284,7 @@ public function successUrl(?string $url = null): string|self
284
284
return $ this ;
285
285
}
286
286
287
- return $ this ->success_url ;
287
+ return $ this ->success_url ?? config ( ' arb.redirect.success ' ) ;
288
288
}
289
289
290
290
/**
@@ -301,7 +301,7 @@ public function failUrl(?string $url = null): string|self
301
301
return $ this ;
302
302
}
303
303
304
- return $ this ->error_url ;
304
+ return $ this ->error_url ?? config ( ' arb.redirect.fail ' ) ;
305
305
}
306
306
307
307
/**
You can’t perform that action at this time.
0 commit comments