This is only possible in the Lema widget.
To test a widget, especially the error handling and thank you page, one can set the widget into test mode. The values “false” for production mode and “true” for test mode are available.
<script type="text/javascript">
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = window.rnwWidget.configureWidget || [];
window.rnwWidget.configureWidget.push(function(options) {
options.epikOptions.test_mode = "true";
});
</script>
Setting the widget into Test Mode locally
If you are viewing the default widget link or a webpage where the widget is integrated, you can open the browser console (open Devtools with option-command-i / Ctrl + Alt +I on Windows) and paste the following code into the console, then hit enter:
console.log(Object.values(window.rnwWidget.widgets.instances)[0].id); window.rnwWidget.widgets.instances[Object.values(window.rnwWidget.widgets.instances)[0].id].epik.setTestMode('true'); console.log('test_mode is now:' +window.rnwWidget.widgets.instances[Object.values(window.rnwWidget.widgets.instances)[0].id].epik.getTestMode())
Until the next page-reload, the widget will then accept test-payments described in
https://support.raisenow.com/hc/en-us/sections/115000034065-Testing-Payment-Methods, but will not accept real payments.
Note: This code won't work in the browser Internet Explorer 11 or older.
Comments
0 comments
Please sign in to leave a comment.