diff --git a/cp/app/Controllers/FinancialsController.php b/cp/app/Controllers/FinancialsController.php index 38d3a3e..144a641 100644 --- a/cp/app/Controllers/FinancialsController.php +++ b/cp/app/Controllers/FinancialsController.php @@ -105,9 +105,13 @@ class FinancialsController extends Controller $balance = $db->selectRow('SELECT name, accountBalance, creditLimit FROM registrar WHERE id = ?', [ $_SESSION["auth_registrar_id"] ] ); + $currency = $_SESSION['_currency']; + $stripe_key = envi('STRIPE_PUBLISHABLE_KEY'); return view($response,'admin/financials/deposit-registrar.twig', [ - 'balance' => $balance + 'balance' => $balance, + 'currency' => $currency, + 'stripe_key' => $stripe_key ]); } @@ -183,9 +187,11 @@ class FinancialsController extends Controller $db = $this->container->get('db'); $registrars = $db->select("SELECT id, clid, name FROM registrar"); + $currency = $_SESSION['_currency']; return view($response,'admin/financials/deposit.twig', [ - 'registrars' => $registrars + 'registrars' => $registrars, + 'currency' => $currency ]); } diff --git a/cp/env-sample b/cp/env-sample index bec2acd..2b10326 100644 --- a/cp/env-sample +++ b/cp/env-sample @@ -25,5 +25,6 @@ MAIL_API_KEY='test-api-key' MAIL_API_PROVIDER='sendgrid' STRIPE_SECRET_KEY='stripe-secret-key' +STRIPE_PUBLISHABLE_KEY='stripe-publishable-key' TEST_TLDS=.test,.com.test \ No newline at end of file diff --git a/cp/resources/views/admin/financials/cancel.twig b/cp/resources/views/admin/financials/cancel.twig index fd3fbd6..78d881f 100644 --- a/cp/resources/views/admin/financials/cancel.twig +++ b/cp/resources/views/admin/financials/cancel.twig @@ -26,26 +26,14 @@
-

We've noticed that your deposit payment process was not completed. It appears that the payment was either cancelled or failed during the transaction. If this was an error, or if you have any questions, please don't hesitate to contact us. We're here to help ensure your transaction is smooth and secure.

-

Ready to try again? When you're set to proceed with your deposit, simply return to the Deposit Page to initiate a new payment. We value your partnership and are committed to assisting you every step of the way.

+

{{ __('We\'ve noticed that your deposit payment process was not completed. It appears that the payment was either cancelled or failed during the transaction. If this was an error, or if you have any questions, please don\'t hesitate to contact us. We're here to help ensure your transaction is smooth and secure.') }}

+

{{ __('Ready to try again? When you\'re set to proceed with your deposit, simply return to the') }} {{ __('Deposit Page') }} {{ __('to initiate a new payment. We value your partnership and are committed to assisting you every step of the way.') }}

- + {% include 'partials/footer.twig' %} {% endblock %} \ No newline at end of file diff --git a/cp/resources/views/admin/financials/deposit-registrar.twig b/cp/resources/views/admin/financials/deposit-registrar.twig index 9033298..58dacc3 100644 --- a/cp/resources/views/admin/financials/deposit-registrar.twig +++ b/cp/resources/views/admin/financials/deposit-registrar.twig @@ -54,24 +54,24 @@
{{ csrf.field | raw }}
-
Current Balance for {{ balance.name }}
-

${{ balance.accountBalance }}

+
{{ __('Current Balance for') }} {{ balance.name }}
+

{{ currency }} {{ balance.accountBalance }}

- - + +
- - + +
@@ -81,23 +81,11 @@ - + {% include 'partials/footer.twig' %}