Catch all for payments that attempt to hit GET route

This commit is contained in:
David Bomba 2021-12-15 10:07:04 +11:00
parent f3d9552614
commit 677f1649ee
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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');