1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/resources/views/partials/checkout_com_payment.blade.php

26 lines
998 B
PHP
Raw Normal View History

2016-03-09 19:31:54 +01:00
@if ($checkoutComDebug)
<script src="https://sandbox.checkout.com/js/v1/checkout.js"></script>
@else
<script src="https://cdn.checkout.com/js/checkout.js"></script>
@endif
<form method="POST" class="payment-form">
<script>
Checkout.render({
2016-03-09 16:07:01 +01:00
debugMode: {{ $checkoutComDebug ? 'true' : 'false' }},
publicKey: '{{ $checkoutComKey }}',
paymentToken: '{{ $checkoutComToken }}',
customerEmail: '{{ $contact->email }}',
customerName: '{{ $contact->getFullName() }}',
value: {{ $invoice->getRequestedAmount() * 100 }},
currency: '{{ $invoice->getCurrencyCode() }}',
widgetContainerSelector: '.payment-form',
widgetColor: '#333',
themeColor: '#3075dd',
buttonColor:'#51c470',
cardCharged: function(event){
location.href = '{{ URL::to('/complete?token=' . $checkoutComToken) }}';
}
});
</script>
</form>