| 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(); |