{"status":"OK-popup","prices":{"enduserTotal":"2599.99"},"slOrderId":2448248,"nextVendor":"payproglobal","gtmObject":{"transactionId":2448248,"transactionAffiliation":"2CheckoutInlinePopup","transactionTotal":2599.99,"transactionProducts":[{"name":"novaPDF SDK Component 11","sku":"PDF11-SDK-C","price":2599.99,"quantity":1}]},"case":"cart -\u003E popup","jsContent":"\u003Cscript\u003E\n\n(() =\u003E {\n let firstPayment = 1;\n \/\/slOrderId = data.gtmObject.transactionId;\n \/\/-- cart commands\n const fire2COPaymentHandler = () =\u003E {\n\n\t TwoCoInlineCart.events.subscribe(\u0027cart:opened\u0027, () =\u003E {\n\t\t\/\/console.log(\u0027cart:opened triggered \/ callback\u0027);\n\t });\n\t TwoCoInlineCart.products.removeAll();\n\t let payLoadArr = JSON.parse(\u0027[{\u0022code\u0022:\u0022novapdf\u0022,\u0022quantity\u0022:1,\u0022price\u0022:{\u0022USD\u0022:2599.99}}]\u0027);\n\t \/\/for(let i = 0; i \u003C payLoadArr.length; i++) {\n\t TwoCoInlineCart.products.addMany(payLoadArr);\n\t \/\/}\n\t \t \/\/TwoCoInlineCart.cart.setCartLockedFlag(true);\n\t \/\/--Reference row\n\t \t TwoCoInlineCart.cart.setOrderExternalRef(\u00272448248\u0027);\n\t \t \/\/--\n\t if(typeof smartAppLanguage === \u0027undefined\u0027) {\n\t\tsmartAppLanguage = \u0027en\u0027;\n\t }\n\t TwoCoInlineCart.cart.setLanguage(smartAppLanguage);\n\t TwoCoInlineCart.cart.setCurrency(\u0027USD\u0027);\n\t TwoCoInlineCart.cart.setSignature(\u0027778f05fd242263fc80774069d3e7391d13bc7c66bcd7a4957f3ccd9597e6d2ff\u0027);\n\t \/\/--Billing row\n\t \t \/\/--\n\t if(firstPayment == 1){\n\t\tTwoCoInlineCart.cart.addAdditionalField({\n\t\t code: \u0027Origin_Domain\u0027,\n\t\t value: \u0027novapdf.com\u0027\n\t\t});\n\t }\n\t \/\/--\n\t \t\tTwoCoInlineCart.cart.setReturnMethod({\n\t\t type: \u0027redirect\u0027,\n\t\t url : \u0027https:\/\/www.novapdf.com\/thank-you.html?orderid=2448248\u0027\n\t\t});\n\t \t \/\/--\n\t TwoCoInlineCart.cart.checkout().then(response =\u003E {\n\t\t\/\/--GOOD\n\t\t buyButtonScriptLoaded = true;\n\t\t avoidDoubleClick = 0;\n\t\t watchdog = 1;\n\t\t\/\/--\n\t }).catch( e =\u003E {\n\t\tbuyButtonScriptLoaded = false;\n\t });\n\t\/\/--\n };\n const fire2COWhenReady = () =\u003E {\n\tif(typeof(TwoCoInlineCart) != \u0027undefined\u0027) {\n\t fire2COPaymentHandler();\n\t} else {\n\t setTimeout(() =\u003E { fire2COWhenReady(); }, 100);\n\t}\n }\n \/\/--\n\n $(() =\u003E {\n\tif($(\u0027#two-co-js\u0027).length == 0) {\n\t \/\/-- assets\n\t ((document, src, libName, config) =\u003E {\n\t\ttry {\n\t\t let script = document.createElement(\u0027script\u0027);\n\t\t script.src = src;\n\t\t script.async = false;\n\t\t script.id = \u0027two-co-js\u0027;\n\t\t let firstScriptElement = document.getElementsByTagName(\u0027script\u0027)[0];\n\t\t script.onload = () =\u003E {\n\t\t\tfor(let namespace in config) {\n\t\t\t if(config.hasOwnProperty(namespace)) {\n\t\t\t\twindow[libName].setup.setConfig(namespace, config[namespace]);\n\t\t\t }\n\t\t\t}\n\t\t\twindow[libName].register();\n\t\t\t\/\/--\n\t\t\tbuyButtonScriptLoaded = true;\n\t\t\t\/\/--\n\t\t };\n\t\t firstScriptElement.parentNode.insertBefore(script, firstScriptElement);\n\t\t \/\/--\n\t\t} catch(err){\n\t\t console.log(err);\n\t\t buyButtonScriptLoaded = false;\n\t\t}\n\t })(document, \u0027https:\/\/secure.2checkout.com\/checkout\/client\/twoCoInlineCart.js\u0027, \u0027TwoCoInlineCart\u0027,{\u0022app\u0022:{\u0022merchant\u0022:\u0022SOFTLAND\u0022},\u0022cart\u0022:{\u0022host\u0022:\u0022https:\/\/secure.2checkout.com\u0022}});\n\t} else {\n\t buyButtonScriptLoaded = true;\n\t firstPayment = 0;\n\t}\n\tsetTimeout(() =\u003E {\n\t fire2COWhenReady();\n\t if(typeof(overlay) !== \u0027undefined\u0027) {\n\t\ttry {\n\t\t overlay.remove();\n\t\t} catch(err){}\n\t }\n\t avoidDoubleClick = 0;\n\t watchdog = 1;\n\t}, 250);\n });\n \/\/--\n})();\n\u003C\/script\u003E"}