We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b555cb9 + 9335479 commit a370608Copy full SHA for a370608
README.md
@@ -181,7 +181,11 @@ class PaymentController extends Controller
181
*/
182
public function redirectToGateway()
183
{
184
- return Paystack::getAuthorizationUrl()->redirectNow();
+ try{
185
+ return Paystack::getAuthorizationUrl()->redirectNow();
186
+ }catch(\Exception $e) {
187
+ return Redirect::back()->withMessage(['msg'=>'The paystack token has expired. Please refresh the page and try again.', 'type'=>'error']);
188
+ }
189
}
190
191
/**
0 commit comments