payment Card first 4 payments inc. mails
This commit is contained in:
parent
c20deac3fe
commit
6e3adac4d7
38 changed files with 3063 additions and 921 deletions
|
|
@ -80,6 +80,87 @@
|
|||
jQuery('.quick-cart-box').css('display', 'none');
|
||||
});
|
||||
|
||||
|
||||
function showCreditCardPayment(val){
|
||||
console.log(val);
|
||||
if(val === 'cc'){
|
||||
$('#creditcard-box-holder').show('slow');
|
||||
}else{
|
||||
$('#creditcard-box-holder').hide('slow');
|
||||
}
|
||||
|
||||
}
|
||||
showCreditCardPayment(jQuery('input[name="payment_method"]:checked').val());
|
||||
jQuery('input[name="payment_method"]').on('change', function () {
|
||||
showCreditCardPayment($(this).val());
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
{{--
|
||||
<script type="text/javascript" src="https://secure.pay1.de/client-api/js/v1/payone_hosted_min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$('#cc_cardtype')
|
||||
$('#cc_cardholder_first')
|
||||
$('#cc_cardholder_last')
|
||||
$('#cc_cardpan')
|
||||
var data = {
|
||||
request : 'creditcardcheck',
|
||||
responsetype : 'REDIRECT', // JSON or REDIRECT available
|
||||
mode : 'live',
|
||||
mid : '10000',
|
||||
aid : '10001',
|
||||
portalid : '2000000',
|
||||
encoding : 'UTF-8',
|
||||
storecarddata : 'yes',
|
||||
hash : '19062005567ca72601cc9d031f9a94b1',
|
||||
cardholder : document.Testform.cardholder.value,
|
||||
cardpan : document.Testform.cardpan.value,
|
||||
cardtype : document.Testform.cardtype.value,
|
||||
cardexpiremonth : document.Testform.cardexpiremonth.value,
|
||||
cardexpireyear : document.Testform.cardexpireyear.value,
|
||||
cardcvc2 : document.Testform.cardcvc2.value,
|
||||
language : 'en'
|
||||
};
|
||||
var options = {
|
||||
return_type : 'object',
|
||||
callbackFunctionName: 'processPayoneResponse'
|
||||
};
|
||||
function processPayoneResponse(response) {
|
||||
if (response.get('status') == 'VALID') {
|
||||
document.Testform.cardpan.value=’’;
|
||||
document.Testform.cardcvc2.value=’’;
|
||||
document.Testform.pseudocardpan.value=response.get('pseudocardpan')
|
||||
document.Testform.submit();
|
||||
}
|
||||
else {
|
||||
alert(response.get('customermessage'));
|
||||
}
|
||||
}
|
||||
var request = new PayoneRequest(data, options);
|
||||
request.checkAndStore();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* JSON response example
|
||||
{
|
||||
"status" : "ERROR",
|
||||
"errorcode" : "1078",
|
||||
"errormessage" : "Parameter {cardpan} incorrect or missing",
|
||||
"customermessage" : "Invalid cardpan. Please check the information on the card.",
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
</script>
|
||||
--}}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -7,16 +7,19 @@
|
|||
Du möchtest Vertriebspartner werden oder hast Fragen zu unseren Produkten?
|
||||
</p>
|
||||
@if(Util::isCheckout())
|
||||
|
||||
<h3>
|
||||
Jetzt Kontakt aufnehmen: <a href="{{ Util::getUserShopBackUrl('/kontakt') }}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
</h3>
|
||||
|
||||
@if(isset($order_reference))
|
||||
<h3>
|
||||
<a href="{{ Util::getUserShopBackUrl('') }}" rel="nofollow" class="btn btn-primary btn-lg">zurück zum Shop</a>
|
||||
</h3>
|
||||
@else
|
||||
<h3>
|
||||
Jetzt Kontakt aufnehmen: <a href="{{ Util::getUserCardBackUrl('/kontakt') }}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
</h3>
|
||||
@endif
|
||||
@else
|
||||
<h3>
|
||||
Jetzt Kontakt aufnehmen: <a href="{{url('/kontakt')}}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
</h3>
|
||||
|
||||
@endif
|
||||
</div><!-- /left text -->
|
||||
</div>
|
||||
|
|
@ -61,9 +64,16 @@
|
|||
<div class="col-md-4">
|
||||
<!-- Links -->
|
||||
<h4 class="letter-spacing-1"> </h4>
|
||||
<a href="{{ Util::getUserShopBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
|
||||
@if(isset($order_reference))
|
||||
<a href="{{ Util::getUserShopBackUrl('') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Shop
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ Util::getUserCardBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
@endif
|
||||
<!-- /Links -->
|
||||
</div>
|
||||
@else
|
||||
|
|
@ -96,9 +106,9 @@
|
|||
<div class="container">
|
||||
@if(Util::isCheckout())
|
||||
<ul class="pull-right nomargin list-inline mobile-block">
|
||||
<li><a href="{{ Util::getUserShopBackUrl('/datenschutz') }}">Datenschutzerklärung</a></li>
|
||||
<li><a href="{{ Util::getUserCardBackUrl('/datenschutz') }}">Datenschutzerklärung</a></li>
|
||||
<li>•</li>
|
||||
<li><a href="{{ Util::getUserShopBackUrl('/impressum') }}">Impressum</a></li>
|
||||
<li><a href="{{ Util::getUserCardBackUrl('/impressum') }}">Impressum</a></li>
|
||||
</ul>
|
||||
|
||||
@else
|
||||
|
|
|
|||
|
|
@ -59,18 +59,31 @@
|
|||
</button>
|
||||
|
||||
@if(Util::isCheckout())
|
||||
<a class="logo pull-left" href="{{ Util::getUserShopBackUrl('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
|
||||
@if(isset($order_reference))
|
||||
<a class="logo pull-left" href="{{ Util::getUserShopBackUrl('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
@else
|
||||
<a class="logo pull-left" href="{{ Util::getUserCardBackUrl('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
@endif
|
||||
<div class="navbar-collapse pull-right nav-main-collapse collapse">
|
||||
<nav class="nav-main">
|
||||
<ul id="topMain" class="nav nav-pills nav-main nav-onepage">
|
||||
<li class="">
|
||||
<a href="{{ Util::getUserShopBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
@if(isset($order_reference))
|
||||
<a href="{{ Util::getUserShopBackUrl('') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Shop
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ Util::getUserCardBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
@endif
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue