init
init
method to be used to update the configuration. It'll return the promise object.
Note :
init
method is mandatory to be called.
-
Name: init
-
Input:
Object
-
Return:
Promise<Object>
<script>
window.Paytm.CheckoutJS.init({}).then(function onSuccess() {
console.log("merchant configuration updated successfully");
}).catch(function onError(error){
console.log("error while calling init method => ",error);
});
</script>