Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: script.js
function openJsCheckoutPopup(orderId, txnToken, amount) { var config = { "root": "", "flow": "DEFAULT", "data": { "orderId": orderId, "token": txnToken, "tokenType": "TXN_TOKEN", "amount": amount }, "merchant":{ "redirect": true }, "handler": { "notifyMerchant": function(eventName,data){ console.log("notifyMerchant handler function called"); console.log("eventName => ",eventName); console.log("data => ",data); } } }; console.log(config); if(window.Paytm && window.Paytm.CheckoutJS){ // initialze configuration using init method window.Paytm.CheckoutJS.init(config).then(function onSuccess() { // after successfully updating configuration, invoke checkoutjs window.Paytm.CheckoutJS.invoke(); }).catch(function onError(error){ alert(error); console.log("error => ",error); }); } }