Installation
Setup Glide in just a few lines of code
Install Glide SDK
npm
npm install @paywithglide/glide-js
Configure
config.ts
import { createGlideConfig, chains } from "@paywithglide/glide-js";
export const config = createGlideConfig({
projectId: "your project id",
chains: [chains.base, chains.optimism],
});
You can now pass the config to any action in the Glide SDK.
index.ts
import { listPaymentOptions } from "@paywithglide/glide-js";
import { config } from "./config";
const paymentOptions = await listPaymentOptions(config, {
..
});