Get Started
Quick start: Embedded
Learn how to integrate SaleSnip into your website using the embedded widget.
1. Create a negotiation session
In your server-side code, create an API route to start a SaleSnip session using the SaleSnip API.
https://api.example.com/negotiate
Ensure this code is run server-side only to protect your API key.
You find the full API reference of this SaleSnip API route here.
2. Open the widget
2.1. Install the SaleSnip Snippet
Integrate the SaleSnip snippet into your website by adding the following script within the
tags, ideally just before the closing tag.SaleSnip Snippet
2.2. Open the widget
Open the SaleSnip widget
3. Start the checkout or payment
3.1 Create a Checkout API Route
Create an API route that loads the session data from SaleSnip and starts the checkout or payment process.
https://api.example.com/checkout
Ensure this code is run server-side only to protect your API key.
You find the full API reference of this SaleSnip API route here.
3.2 Capture Negotiation Events
Listen to the SaleSnip complete event to start the checkout or payment.
SaleSnip Events