From ac1168107335d71819e6e13ffcf06520b2995fbb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 16 Feb 2020 17:41:00 +1100 Subject: [PATCH] fixes for checkout.com (#3336) --- resources/views/payments/checkoutcom/partial.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/payments/checkoutcom/partial.blade.php b/resources/views/payments/checkoutcom/partial.blade.php index 00500cf15d..27d5544298 100644 --- a/resources/views/payments/checkoutcom/partial.blade.php +++ b/resources/views/payments/checkoutcom/partial.blade.php @@ -12,7 +12,11 @@ paymentToken: '{{ $transactionToken }}', customerEmail: '{{ $contact->email }}', customerName: '{{ $contact->getFullName() }}', + @if( $invoice->getCurrencyCode() == 'BHD' || $invoice->getCurrencyCode() == 'KWD' || $invoice->getCurrencyCode() == 'OMR') + value: {{ $invoice->getRequestedAmount() * 1000 }}, + @else value: {{ $invoice->getRequestedAmount() * 100 }}, + @endif currency: '{{ $invoice->getCurrencyCode() }}', widgetContainerSelector: '.payment-form', widgetColor: '#333',