{"status":"OK-popup","prices":{"enduserTotal":"49.99"},"slOrderId":2461659,"nextVendor":"payproglobal","gtmObject":{"transactionId":2461659,"transactionAffiliation":"2CheckoutInlinePopup","transactionTotal":49.99,"transactionProducts":[{"name":"novaPDF Professional 11","sku":"PDF11-PRO-D","price":49.99,"quantity":1}]},"case":"cart -\u003E popup","jsContent":"\u003Cscript\u003E\n\n(() =\u003E {\n\tlet firstPayment = 1;\n\t\/\/slOrderId = data.gtmObject.transactionId;\n\t\/\/-- cart commands\n\tconst fire2COPaymentHandler = () =\u003E {\n\n\t\t\tTwoCoInlineCart.events.subscribe(\u0027cart:opened\u0027, () =\u003E {\n\t\t\t\t\/\/console.log(\u0027cart:opened triggered \/ callback\u0027);\n\t\t\t});\n\t\t\tTwoCoInlineCart.products.removeAll();\n\t\t\tlet payLoadArr = JSON.parse(\u0027[{\u0022code\u0022:\u0022novapdf\u0022,\u0022quantity\u0022:1,\u0022price\u0022:{\u0022USD\u0022:49.99}}]\u0027);\n\t\t\t\/\/for(let i = 0; i \u003C payLoadArr.length; i++) {\n\t\t\tTwoCoInlineCart.products.addMany(payLoadArr);\n\t\t\t\/\/}\n\t\t\t\t\t\t\/\/TwoCoInlineCart.cart.setCartLockedFlag(true);\n\t\t\t\/\/--Reference row\n\t\t\t\t\t\tTwoCoInlineCart.cart.setOrderExternalRef(\u00272461659\u0027);\n\t\t\t\t\t\t\/\/--\n\t\t\tif(typeof smartAppLanguage === \u0027undefined\u0027) {\n\t\t\t\tsmartAppLanguage = \u0027en\u0027;\n\t\t\t}\n\t\t\tTwoCoInlineCart.cart.setLanguage(smartAppLanguage);\n\t\t\tTwoCoInlineCart.cart.setCurrency(\u0027USD\u0027);\n\t\t\tTwoCoInlineCart.cart.setSignature(\u002776c593760f8f5e9f25a12fa386194103e23118264ab8f7763b8b43bed667640e\u0027);\n\t\t\t\/\/--Billing row\n\t\t\t\t\t\t\/\/--\n\t\t\tif(firstPayment == 1){\n\t\t\t\tTwoCoInlineCart.cart.addAdditionalField({\n\t\t\t\t\tcode: \u0027Origin_Domain\u0027,\n\t\t\t\t\tvalue: \u0027dopdf.com\u0027\n\t\t\t\t});\n\t\t\t}\n\t\t\t\/\/--\n\t\t\t\t\t\t\tTwoCoInlineCart.cart.setReturnMethod({\n\t\t\t\t\ttype: \u0027redirect\u0027,\n\t\t\t\t\turl : \u0027https:\/\/www.dopdf.com\/thank-you.html?orderid=2461659\u0027\n\t\t\t\t});\n\t\t\t\t\t\t\/\/--\n\t\t\tTwoCoInlineCart.cart.checkout().then(response =\u003E {\n\t\t\t\t\/\/--GOOD\n\t\t\t\t\tbuyButtonScriptLoaded = true;\n\t\t\t\t\tavoidDoubleClick = 0;\n\t\t\t\t\twatchdog = 1;\n\t\t\t\t\/\/--\n\t\t\t}).catch( e =\u003E {\n\t\t\t\tbuyButtonScriptLoaded = false;\n\t\t\t});\n\t\t\/\/--\n\t};\n\tconst fire2COWhenReady = () =\u003E {\n\t\tif(typeof(TwoCoInlineCart) != \u0027undefined\u0027) {\n\t\t\tfire2COPaymentHandler();\n\t\t} else {\n\t\t\tsetTimeout(() =\u003E { fire2COWhenReady(); }, 100);\n\t\t}\n\t}\n\t\/\/--\n\n\t$(() =\u003E {\n\t\tif($(\u0027#two-co-js\u0027).length == 0) {\n\t\t\t\/\/-- assets\n\t\t\t((document, src, libName, config) =\u003E {\n\t\t\t\ttry {\n\t\t\t\t\tlet script = document.createElement(\u0027script\u0027);\n\t\t\t\t\tscript.src = src;\n\t\t\t\t\tscript.async = false;\n\t\t\t\t\tscript.id = \u0027two-co-js\u0027;\n\t\t\t\t\tlet firstScriptElement = document.getElementsByTagName(\u0027script\u0027)[0];\n\t\t\t\t\tscript.onload = () =\u003E {\n\t\t\t\t\t\tfor(let namespace in config) {\n\t\t\t\t\t\t\tif(config.hasOwnProperty(namespace)) {\n\t\t\t\t\t\t\t\twindow[libName].setup.setConfig(namespace, config[namespace]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow[libName].register();\n\t\t\t\t\t\t\/\/--\n\t\t\t\t\t\tbuyButtonScriptLoaded = true;\n\t\t\t\t\t\t\/\/--\n\t\t\t\t\t};\n\t\t\t\t\tfirstScriptElement.parentNode.insertBefore(script, firstScriptElement);\n\t\t\t\t\t\/\/--\n\t\t\t\t} catch(err){\n\t\t\t\t\tconsole.log(err);\n\t\t\t\t\tbuyButtonScriptLoaded = false;\n\t\t\t\t}\n\t\t\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\t} else {\n\t\t\tbuyButtonScriptLoaded = true;\n\t\t\tfirstPayment = 0;\n\t\t}\n\t\tsetTimeout(() =\u003E {\n\t\t\tfire2COWhenReady();\n\t\t\tif(typeof(overlay) !== \u0027undefined\u0027) {\n\t\t\t\ttry {\n\t\t\t\t\toverlay.remove();\n\t\t\t\t} catch(err){}\n\t\t\t}\n\t\t\tavoidDoubleClick = 0;\n\t\t\twatchdog = 1;\n\t\t}, 250);\n\t});\n\t\/\/--\n})();\n\u003C\/script\u003E"}