File tree 1 file changed +10
-2
lines changed
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
116
116
![ payment-callback] ( https://cloud.githubusercontent.com/assets/2946769/12746754/9bd383fc-c9a0-11e5-94f1-64433fc6a965.png )
117
117
118
118
``` 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
+ ```
120
122
121
123
OR
122
124
125
+ ``` php
123
126
Route::post('/pay', [
124
127
'uses' => 'PaymentController@redirectToGateway',
125
128
'as' => 'pay'
126
129
]);
130
+ ```
127
131
132
+ ``` php
128
133
Route::get('/payment/callback', 'PaymentController@handleGatewayCallback');
134
+ ```
129
135
130
136
OR
131
137
138
+ ``` php
139
+ // Laravel 5.0
132
140
Route::get('payment/callback', [
133
141
'uses' => 'PaymentController@handleGatewayCallback'
134
- ]); //Laravel 5.0
142
+ ]);
135
143
```
136
144
137
145
``` php
You can’t perform that action at this time.
0 commit comments