Last active
December 20, 2016 09:21
-
-
Save allaniftrue/f7179c841035a36e1dcc to your computer and use it in GitHub Desktop.
Using Omnipay Paypal With Laravel Route
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('', array( | |
'as' => 'home', | |
'uses' => 'BaseController@getIndex' | |
) | |
); | |
Route::post('pay_via_paypal', 'PaymentController@postPayment'); | |
Route::get('payment_success', 'PaymentController@getSuccessPayment'); | |
Route::get('cancel_order', function() { | |
return Redirect:route('home'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment