There are two different ways to add custom parameters:
You want to add custom parameters to enrich a payment transaction? The following code shows how to add a custom parameter:
<script type="text/javascript">
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = function(options) {
options.defaults['stored_my_parameter'] = 'test';
};
// adding multiple configuration callbacks, only possible for lema
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = window.rnwWidget.configureWidget || [];
window.rnwWidget.configureWidget.push(function(options) {
options.defaults['stored_my_parameter'] = 'test1';
});
window.rnwWidget.configureWidget.push(function(options) {
options.defaults['stored_my_parameter'] = 'test2';
});
</script>
The code above add the parameter “stored_my_parameter” with value “test” to the payment transaction. Custom parameter name has to start with “stored_” to persist it in the RaiseNow manager.
Comments
0 comments
Please sign in to leave a comment.