From 5e2d8c997a057cf2d74e5eeea16739802c3366ef Mon Sep 17 00:00:00 2001 From: Michael Okoh Date: Wed, 31 Jan 2018 14:46:31 +0100 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff074d5..a72d127 100644 --- a/README.md +++ b/README.md @@ -116,22 +116,30 @@ Note: Make sure you have `/payment/callback` registered in Paystack Dashboard [h ![payment-callback](https://cloud.githubusercontent.com/assets/2946769/12746754/9bd383fc-c9a0-11e5-94f1-64433fc6a965.png) ```php -Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay'); // Laravel 5.1.17 and above +// Laravel 5.1.17 and above +Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay'); +``` OR +```php Route::post('/pay', [ 'uses' => 'PaymentController@redirectToGateway', 'as' => 'pay' ]); +``` +```php Route::get('/payment/callback', 'PaymentController@handleGatewayCallback'); +``` OR +```php +// Laravel 5.0 Route::get('payment/callback', [ 'uses' => 'PaymentController@handleGatewayCallback' -]); //Laravel 5.0 +]); ``` ```php