Configure your Authentication
You’ll need to add the JWKS Endpoint from your auth provider to authenticate gasless transactions.
Getting your JWKS Endpoint
For these common auth providers, you can get your JWKS Endpoint like this:- Clerk
- Firebase
- Go to your API Keys
- Copy your JWKS URL and paste it into the JWKS Endpoint field in your Chipi Dashboard.
Get your Public Key
Now go to your API Keys and click on your project.Which will give you access to your Public Key (
pk_prod_xxxx). Keep this handy as you’ll need it to initialize the SDK.You won’t need the Secret Key (
sk_prod_xxxx) for now.Initialize the SDK
- Add your Public Key to your environment variables.
- In your
layout.tsx, wrap your app with theChipiProvidercomponent as shown below:
Start Using the SDK
You’re ready to use the SDK! We recommend starting with our convenience hooks that simplify common operations:
useChipiWallet - Unified Wallet Management
useChipiWallet Documentation
Learn about all the options and return values
useChipiSession - Gasless Session Keys (CHIPI wallets only)
useChipiSession Documentation
Learn about session key management
Next Steps
That’s it! You should now have an initial working version of Chipi Pay integrated into your application. Explore more features:
- All Available Hooks - Complete hook reference
- Session Keys - Enable gasless UX
- Buying Services - Accept crypto payments
