Skip to content

Commit 5e2d8c9

Browse files
authored
Update README.md
1 parent cf43075 commit 5e2d8c9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

121123
OR
122124

125+
```php
123126
Route::post('/pay', [
124127
'uses' => 'PaymentController@redirectToGateway',
125128
'as' => 'pay'
126129
]);
130+
```
127131

132+
```php
128133
Route::get('/payment/callback', 'PaymentController@handleGatewayCallback');
134+
```
129135

130136
OR
131137

138+
```php
139+
// Laravel 5.0
132140
Route::get('payment/callback', [
133141
'uses' => 'PaymentController@handleGatewayCallback'
134-
]); //Laravel 5.0
142+
]);
135143
```
136144

137145
```php

0 commit comments

Comments
 (0)