When the session is created, you will get a response looking like this:
To embed this in your website, we will use the Dintero Web SDK.
Using the SDK is quite straight forward. Include the SDK code in your site, and include this code in the website:
const container = document.getElementById("checkout-container");
To redirect the user to the payment, point the browser to the url from the response.
Alternatively, you may use the Dintero Web SDK.
Completing the payment
When viewing the payment, the customer will see something like this:
To complete the payment, the user must input email and address (Use test data for testing purposes).
When the payment is completed, a transaction will be created, and you will be redirected to the
return_url from the session.
The next step is to handle the redirect and callback to the website.