In this first step the FlexCapture object should be instantiated with the Form Configuration Parameters.

<div id="demo">
</div>

var payRequest = {
    "action": "authorize",
    //The fields for authorization are detailed in the following section.
};

var capture = new FlexCapture({
    "key": "h3SXMZndLJqWg7wQC749qPao",
    "payload": payRequest,
    "additionalFields": []
});
CODE

Continue to Show Authorization Form ➡️