Created
April 13, 2016 12:44
-
-
Save sebbdk/87bec050354ba220325d80207f86f8ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var params = { | |
merchantnumber:"[TEST MERCHANTNUMBER]", | |
currency:"208", | |
mobile:"0", | |
windowState:"4", | |
"iframeheight": "100%", | |
"iframewidth": "100%" | |
}; | |
params.amount = 10; | |
var paymentwindow = new PaymentWindow(params); | |
paymentwindow.open(); | |
paymentwindow.on('completed', function(params){ | |
console.log("payment completed!!"); | |
console.log(params); | |
}); | |
paymentwindow.on('close', function(){ | |
console.log("payment closed!!"); | |
console.log(params); | |
}); | |
paymentwindow.on('declined', function(params){ | |
console.log("payment declined!!"); | |
console.log(params); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment