{{platform.Paragraph_3}} JavaScript library will process the payment and redirect the browser to the "RedirectionUrl" supplied when the AuthKey was created (Refer AuthKey). At the end of the redirection, invoke the "Retrieve Payment Result" call (Refer Transaction Result) from your web server to retrieve the payment result and render the payment receipt to your customers.
The three parameters in the sample code are compulsory. There are several optional parameters, which you can pass to the "SetupPayment" method to further customise the payment form as required. Please find below information about the parameters which you can pass to the "SetupPayment" method.
{{platform.JS_NAMESPACE}}.SetupPayment({
AppendToElementId: "pay-form-location",
AuthKey: $("#AuthKey").val(),
DefaultErrorUrl: "https://www.yourdomain.com/handleerror"
});