Documentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
Use this SDK in your frontend application to embed one or more discounts from the Dintero Discount Service in your webpage.
Installation
npm install @dintero/checkout-web-sdk
Inline HTML JavaScript Example - Using the SDK for an embedded checkout (Minimal)
When payment is completed, the SDK will redirect the end user to the return_url defined in the payment session.
<script type="text/javascript">
const container = document.getElementById("checkout-container");
dintero.embed({
container,
sid: "T11223344.<short-uuid>",
});
</script>
Installation
For more detailed information about installation click here