Consumer Level Lending
post

/3ds/create-payment-link/{checkoutId}/{applicationId}

This endpoint will generate a payment link associated with your application.

We will guide the customer through the payment process using the 3D Secure PSD2 user flow.

Use this link as the source property for your iFrame element, as we will respond using the window.postMessage to respond with instructions for next action to take.

Possible values from window.postMessage:

  • { type: '3ds-success' }
  • { type: '3ds-error', message: 'Error Message' }

Example:

window.addEventListener("message", function (event) {
    switch (event.data.type) {
        case '3ds-success':
            // All of the up-front payments have been made
						// The customer may now proceed with the next step
            break;
        case '3ds-error':
				    // There was an error taking the customer payment

						// The error message is available for display:
            // console.log(event.data.message);

						// Next step: 
						// Return the customer to their payment detail selection / provision screens
            break;
     }
}, false);

Authorization

apiKey - Authorization

Request Parameters

3 Path Parameters
1 Header

Responses

Schema
object
url
string
required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
2 path params not set
checkoutId
applicationId
$$.env
1 variable not set
Authorization