diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 87bb1fc59666..c344f111f790 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -381,7 +381,7 @@ class PaymentController extends BaseController if ($validator->fails()) { return Redirect::to('payment/'.$invitationKey) ->withErrors($validator) - ->withInput(); + ->withInput(Request::except('cvv')); } if ($accountGateway->update_address) { @@ -422,7 +422,8 @@ class PaymentController extends BaseController $details['customerReference'] = $token; } else { $this->error('Token-No-Ref', $this->paymentService->lastError, $accountGateway); - return Redirect::to('payment/'.$invitationKey)->withInput(); + return Redirect::to('payment/'.$invitationKey) + ->withInput(Request::except('cvv')); } } } @@ -443,7 +444,8 @@ class PaymentController extends BaseController $this->error('No-Ref', $response->getMessage(), $accountGateway); if ($onSite) { - return Redirect::to('payment/'.$invitationKey)->withInput(); + return Redirect::to('payment/'.$invitationKey) + ->withInput(Request::except('cvv')); } else { return Redirect::to('view/'.$invitationKey); } @@ -472,7 +474,7 @@ class PaymentController extends BaseController } catch (\Exception $e) { $this->error('Uncaught', false, $accountGateway, $e); if ($onSite) { - return Redirect::to('payment/'.$invitationKey)->withInput(); + return Redirect::to('payment/'.$invitationKey)->withInput(Request::except('cvv')); } else { return Redirect::to('view/'.$invitationKey); } diff --git a/app/Ninja/Mailers/ContactMailer.php b/app/Ninja/Mailers/ContactMailer.php index 7efc52bfb8d9..b5ba4a1002cc 100644 --- a/app/Ninja/Mailers/ContactMailer.php +++ b/app/Ninja/Mailers/ContactMailer.php @@ -240,6 +240,10 @@ class ContactMailer extends Mailer '$viewButton' => HTML::emailViewButton($invitation->getLink(), $invoice->getEntityType()), '$paymentLink' => $invitation->getLink('payment'), '$paymentButton' => HTML::emailPaymentButton($invitation->getLink('payment')), + '$customClient1' => $account->custom_client_label1, + '$customClient2' => $account->custom_client_label2, + '$customInvoice1' => $account->custom_invoice_text_label1, + '$customInvoice2' => $account->custom_invoice_text_label2, ]; // Add variables for available payment types diff --git a/resources/views/accounts/templates_and_reminders.blade.php b/resources/views/accounts/templates_and_reminders.blade.php index d4b69eb0d73d..01a7b0099bc5 100644 --- a/resources/views/accounts/templates_and_reminders.blade.php +++ b/resources/views/accounts/templates_and_reminders.blade.php @@ -99,6 +99,18 @@ @foreach (\App\Ninja\Mailers\ContactMailer::$variableFields as $field)