Quick Start
Quick Start
Section titled “Quick Start”Follow these steps to start using Gatepay and accept crypto payments for your content or services.
1. Create a Gatepay Account
Section titled “1. Create a Gatepay Account”- Go to https://gatepay.cloud and sign up.
- Verify your email and log in to your dashboard.
2. Get Your API Token
Section titled “2. Get Your API Token”- In your dashboard, navigate to the Profile section.
- Keep your token secure—never expose it in public code.
3. Install the SDK
Section titled “3. Install the SDK”npm install gatepay-sdk
4. Initialize the SDK
Section titled “4. Initialize the SDK”import { Gatepay } from "gatepay-sdk"
const gatepay = new Gatepay({ apiToken: "your-api-token" })
5. Create Your First Payment Link
Section titled “5. Create Your First Payment Link”const link = await gatepay.createLink({ name: "Premium Content", alias: "myfirstlink" description: "Access to exclusive premium content",
// Resource configuration - what users get after payment resource: { type: "link", data: { url: "https://example.com/premium-content", }, },
// Payment configuration toll: { tollPaymentRequirements: [ { assetNetwork: "base", amount: "1000000", // 1 USDC assetAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", destinationAddress: "your-wallet-address", }, ], },})console.log(`Payment link: ${link.url}`)// Payment link: https://link.gatepay.cloud/myfirstlink
6. Share the Link
Section titled “6. Share the Link”- Distribute your payment link to your users.
- When a user pays, Gatepay verifies the payment and grants access.
Next steps: