mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 21:44:34 -04:00
Catch all for payments that attempt to hit GET route
This commit is contained in:
parent
f3d9552614
commit
677f1649ee
@ -69,6 +69,11 @@ class PaymentController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function catch_process(Request $request)
|
||||
{
|
||||
return $this->render('payments.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Presents the payment screen for a given
|
||||
* gateway and payment method.
|
||||
|
@ -44,6 +44,8 @@ Route::group(['middleware' => ['auth:contact', 'locale', 'check_client_existence
|
||||
Route::get('recurring_invoices/{recurring_invoice}/request_cancellation', 'ClientPortal\RecurringInvoiceController@requestCancellation')->name('recurring_invoices.request_cancellation');
|
||||
|
||||
Route::post('payments/process', 'ClientPortal\PaymentController@process')->name('payments.process');
|
||||
Route::get('payments/process', 'ClientPortal\PaymentController@catch_process')->name('payments.catch_process');
|
||||
|
||||
Route::post('payments/credit_response', 'ClientPortal\PaymentController@credit_response')->name('payments.credit_response');
|
||||
|
||||
Route::get('payments', 'ClientPortal\PaymentController@index')->name('payments.index')->middleware('portal_enabled');
|
||||
|
Loading…
x
Reference in New Issue
Block a user