PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
dokan-pro
/
includes
/
modules
/
stripe
/
assets
/
js
jQuery( function() { jQuery(document).on( 'click', '#place_order', function(){ if ( jQuery('input#payment_method_dokan-stripe-connect').prop('checked') !== true ){ return; } var $form = jQuery("form.checkout, form#order_review"); var token = $form.find('input.stripe_token'); token.val(''); var token_action = function( res ) { $form.find('input.stripe_token').remove(); $form.append("<input type='hidden' class='stripe_token' name='stripe_token' value='" + res.id + "'/>"); $form.submit(); }; var $stripe_data = jQuery( '.stripe_new_card' ); StripeCheckout.open({ key: wc_stripe_connect_params.key, locale: wc_stripe_connect_params.locale, bitcoin: wc_stripe_connect_params.bitcoin == 'true', image: wc_stripe_connect_params.image, name: wc_stripe_connect_params.name, description: wc_stripe_connect_params.description, panelLabel: wc_stripe_connect_params.label, billingAddress: false, amount: $stripe_data.data( 'amount' ), currency: $stripe_data.data( 'currency' ), token: token_action }); return false; }); } );
[+]
..
[-] stripe_checkout.js
[edit]
[-] stripe.js
[edit]