diff --git a/app/Http/Controllers/ClientPortal/PaymentController.php b/app/Http/Controllers/ClientPortal/PaymentController.php index f5cb923d5d68..7bdb1c2dbdc0 100644 --- a/app/Http/Controllers/ClientPortal/PaymentController.php +++ b/app/Http/Controllers/ClientPortal/PaymentController.php @@ -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. diff --git a/routes/client.php b/routes/client.php index 2b3e30ee37b1..161c73cd43af 100644 --- a/routes/client.php +++ b/routes/client.php @@ -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');