2016-01-18 09:30:42 +01:00
|
|
|
<script src="https://sandbox.checkout.com/js/v1/checkout.js"></script>
|
|
|
|
|
|
|
|
<form method="POST" class="payment-form">
|
|
|
|
<script>
|
|
|
|
Checkout.render({
|
2016-03-09 16:07:01 +01:00
|
|
|
debugMode: {{ $checkoutComDebug ? 'true' : 'false' }},
|
2016-01-18 09:30:42 +01:00
|
|
|
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>
|