PluginProbe
MakeCommerce for WooCommerce / 3.0.11
MakeCommerce for WooCommerce v3.0.11
4.1.1 4.1.0 4.0.8 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 All 97 releases
makecommerce / payment / gateway / woocommerce / js / mc_cc_init.js

mc_cc_init.js in MakeCommerce for WooCommerce 3.0.11, at payment/gateway/woocommerce/js/mc_cc_init.js

30 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function init_mc_cc_form() {
2
3 cc_init_json = {
4 'key' : MC_CC_INIT.key,
5 'transaction' : MC_CC_INIT.transaction,
6 'amount' : MC_CC_INIT.amount,
7 'currency' : MC_CC_INIT.currency,
8 'email' : MC_CC_INIT.email,
9 'clientName' : MC_CC_INIT.clientname,
10 'locale' : MC_CC_INIT.locale,
11 'name' : MC_CC_INIT.name,
12 'description' : MC_CC_INIT.description,
13 'completed' : MC_CC_INIT.completed,
14 'openOnLoad': MC_CC_INIT.openonload,
15 'currency': MC_CC_INIT.currency,
16 'backdropClose': MC_CC_INIT.backdropclose
17 }
18
19 if ( MC_CC_INIT.hasOwnProperty( 'recurringrequired' ) ) {
20
21 cc_init_json["recurringRequired"] = MC_CC_INIT.recurringrequired;
22 cc_init_json["recurringTitle"] = MC_CC_INIT.recurringtitle;
23 cc_init_json["recurringDescription"] = MC_CC_INIT.recurringdescription;
24 cc_init_json["recurringConfirmation"] = MC_CC_INIT.recurringconfirmation;
25 }
26
27 window.Maksekeskus.Checkout.initialize( cc_init_json );
28 }
29
30 init_mc_cc_form();