1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

fixes for checkout.com (#3336)

This commit is contained in:
David Bomba 2020-02-16 17:41:00 +11:00 committed by GitHub
parent 1ab5bc1f6b
commit ac11681073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,11 @@
paymentToken: '{{ $transactionToken }}', paymentToken: '{{ $transactionToken }}',
customerEmail: '{{ $contact->email }}', customerEmail: '{{ $contact->email }}',
customerName: '{{ $contact->getFullName() }}', customerName: '{{ $contact->getFullName() }}',
@if( $invoice->getCurrencyCode() == 'BHD' || $invoice->getCurrencyCode() == 'KWD' || $invoice->getCurrencyCode() == 'OMR')
value: {{ $invoice->getRequestedAmount() * 1000 }},
@else
value: {{ $invoice->getRequestedAmount() * 100 }}, value: {{ $invoice->getRequestedAmount() * 100 }},
@endif
currency: '{{ $invoice->getCurrencyCode() }}', currency: '{{ $invoice->getCurrencyCode() }}',
widgetContainerSelector: '.payment-form', widgetContainerSelector: '.payment-form',
widgetColor: '#333', widgetColor: '#333',