Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Checkout SDK

Installing Checkout SDK

npm install @cometh/checkout-sdk

Basic Usage

  1. Initialize SDK
import {CheckoutSDK} from '@cometh/checkout-sdk'

const sdk = new CheckoutSDK(apiKey)
  1. Start checkout flow
const request = {
    productId: 1,
    user: {
        walletAddress: '0x1234567890',
        email: 'test@email.com'
    }
}

await sdk.checkout(request)
  1. Handle flow events
import {CheckoutSDK, CheckoutError, CheckoutSuccess} from '@cometh/checkout-sdk'

const sdk = new CheckoutSDK(apiKey)
sdk.on('start', () => {
    console.log('display is ON and flow has started');
});

sdk.on('success', (result: CheckoutSuccess) => {
});

sdk.on('failure', (error: CheckoutError) => {
});

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages