Setting up the SDK

Follow the below instructions to successfully set up the SDK

Introduction

Both Expedited Guest Checkout and The Skipify Button use the Skipify SDK for a range of features. This guide shows you how to set up the SDK on your website. The various features of the SDK are further enumerated in additional articles in this section.

🚧

This section requires you to have set up your Skipify Portal

For reference, see the Skipify Merchant Portal page

How to add the SDK script to your web application

Skipify uses a Javascript SDK to integrate the checkout experience into your website. To get started, include Skipify script in the body of your HTML file:

<body> 
    // Place the SDK script at the end of your <body> declaration 
    <script src="BASE_URL/merchants/MERCHANT_ID/sdk"> 
    // Replace BASE_URL with the current environment. Review the "GoCart Environments" page for more details.
    // Replace MERCHANT_ID with your GoCart merchant ID. 
    </script> 
</body>

This will load the Skipify SDK into your website using the options you selected in the Skipify Portal.

The SDK is accessible in the global javascript scope via the SkipifySDK variable.

🚧

Important!

Before using the Skipify script tag in your staging or production environments, add your website's URL to the "Merchant Domains" section of the Skipify Portal at https://admin.skipify.com

Localhost will need to be added for local development (ex. https://localhost:5001)