Skip to content

Commit 4b40fd1

Browse files
docs(readme): Update readme
1 parent 74b1b01 commit 4b40fd1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,15 @@ Note: Make sure you have `/payment/callback` registered in Paystack Dashboard [h
116116
![payment-callback](https://cloud.githubusercontent.com/assets/2946769/12746754/9bd383fc-c9a0-11e5-94f1-64433fc6a965.png)
117117

118118
```php
119-
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
119+
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay'); // Laravel 5.1.17 and above
120+
121+
OR
122+
123+
Route::post('/pay', [
124+
'uses' => 'PaymentController@redirectToGateway',
125+
'as' => 'pay'
126+
]);
127+
120128
Route::get('/payment/callback', 'PaymentController@handleGatewayCallback');
121129
```
122130

0 commit comments

Comments
 (0)