File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -116,22 +116,30 @@ 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'); // Laravel 5.1.17 and above
119+ // Laravel 5.1.17 and above
120+ Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
121+ ```
120122
121123OR
122124
125+ ``` php
123126Route::post('/pay', [
124127 'uses' => 'PaymentController@redirectToGateway',
125128 'as' => 'pay'
126129]);
130+ ```
127131
132+ ``` php
128133Route::get('/payment/callback', 'PaymentController@handleGatewayCallback');
134+ ```
129135
130136OR
131137
138+ ``` php
139+ // Laravel 5.0
132140Route::get('payment/callback', [
133141 'uses' => 'PaymentController@handleGatewayCallback'
134- ]); //Laravel 5.0
142+ ]);
135143```
136144
137145``` php
You can’t perform that action at this time.
0 commit comments