");
jQuery('.credit_card_info_outer4').append("
");
}
}else{
jQuery('.credit_card_info_outer4').find('#card_num').parent().attr('id', 'cardNumber');
jQuery('.credit_card_info_outer4').append("
");
jQuery('.credit_card_info_outer4').append("
");
}
if(checkout_type != '2-step') {
if(sel_template != 'template1' || checkout_type == 'credits' || checkout_type == 'donation' ) {
if(sel_template != 'template10' ){
if (sel_template != 'template12' ){
if (sel_template != 'template7' ){
if (sel_template != 'template3'){
jQuery('#credit_card_info').find('select[name=exp_date]').parent().parent().remove();
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
if(sel_template == 'template2'){
jQuery('#credit_card_info').addClass('row').addClass('mx-0');
jQuery('#credit_card_info').find('select[name=exp_date_back]').parent().parent().remove();
jQuery('#credit_card_info').find('#cardCode').parent().removeClass('col-sm-4').addClass('col-sm-6');
jQuery('#credit_card_info').find('#cardExpiry').parent().removeClass('col-sm-4').addClass('col-sm-6');
}
}else if(sel_template == 'template3'){
jQuery('select[name=exp_date_back]').parent().remove();
}
}else if(sel_template == 'template7'){
jQuery('select[name=exp_date]').parent().remove();
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
}
}else if(sel_template == 'template12'){
jQuery('select[name=exp_date_back]').parent().remove();
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
}
}else if(sel_template == 'template10'){
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
//jQuery('#credit_card_info').find('#paycart-template-10 .form-group').css('margin-bottom', '0px').css('padding' , '0px').css('float', 'right');
}
}else if(sel_template == 'template1'){
jQuery('select[name=exp_date_back]').parent().remove();
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
}
}else if(sel_template != 'template10'){
jQuery('#credit_card_info').find('select[name=exp_date]').parent().remove();
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
}else if(sel_template == 'template10'){
jQuery('#credit_card_info').find('#card_code').parent().attr('id', 'cardCode');
//jQuery('#credit_card_info').find('#paycart-template-10 .form-group').css('margin-bottom', '0px').css('padding' , '0px').css('float', 'right');
}
jQuery('#credit_card_info').append('');
var cardNumber = '';
var cardExpiry = '';
var cardCvc = '';
var stripe = '';
var paymentIntent_id = '';
}
if(spc_use_auth == 'yes'){
// setTimeout(function(){
jQuery('#credit_card_info').show();
stripe = Stripe(stripePublishableKey);
(function() {
'use strict';
var elements = stripe.elements({
fonts: [
{
cssSrc: 'https://fonts.googleapis.com/css?family=Quicksand',
},
],
// Stripe's examples are localized to specific languages, but if
// you wish to have Elements automatically detect your user's locale,
// use `locale: 'auto'` instead.
locale: window.__exampleLocale,
});
cardNumber = elements.create('cardNumber');
cardNumber.mount('#cardNumber');
cardExpiry = elements.create('cardExpiry');
cardExpiry.mount('#cardExpiry');
cardCvc = elements.create('cardCvc');
cardCvc.mount('#cardCode');
registerElements([cardNumber, cardExpiry, cardCvc], 'credit_card_info');
})();
//}, 1000);
}
}
}
jQuery('.non_subs_amount_label').removeClass('col-sm-2').addClass('col-sm-5');
//jQuery('#checkout_temp_form').find('input[type=email]').attr('name' , 'email');
// replace terms with Payment Plan Terms
var product_terms = "";
var subscription_terms = jQuery('.prod_orderdetails .subsc_terms .subscription_tems').html();
var subt_terms_style = jQuery('.prod_orderdetails .subsc_terms .subscription_tems').attr("style");
if(product_terms !=""){
var subscription_tems_new = '';
jQuery('#formPayment').find('.prod_orderdetails .subsc_terms ').html(subscription_tems_new+product_terms);
}
/*if(jQuery('.order_list_amt_'+main_id+' .product_order_terms').length >0){
var main_product_order_terms1 = replaceTagsHtml(main_product_order_terms , main_id);
jQuery('.order_list_amt_'+main_id+' .product_order_terms').text(main_product_order_terms1);
}*/
var spc_sepa_payment_iban_empty_validation_msg = "Please enter your IBAN number.";