Documentation
Payments

Paddle

Create an account at paddle then setup the environment variables

NEXT_PUBLIC_PADDLE_ENV=sandbox
NEXT_PUBLIC_PADDLE_TOKEN=<your-public-paddle-token>

To use paddle simply import it

import { usePaddleInit } from "@/hooks/integrations/paddle";

const YourComp = () => {
    const { paddle } = usePaddleInit()

    paddle?.Checkout.open({ });

}

On this page

No Headings