Copy your Jwks Endpoint and paste it into the JWKS Endpoint field in your Chipi Dashboard.
2
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.
3
Install the SDK
Copy
Ask AI
npm install @chipi/chipi-sdk
4
Initialize the SDK
Add your Public Key to your environment variables.
Copy
Ask AI
EXPO_PUBLIC_CHIPI_PUBLIC_KEY=pk_prod_xxxx
Wrap your main _layout.tsx with the ChipiProvider component.
Copy
Ask AI
// app/_layout.tsximport { ChipiProvider } from "@chipi-pay/chipi-sdk";const API_PUBLIC_KEY = process.env.EXPO_PUBLIC_CHIPI_PUBLIC_KEY;if (!API_PUBLIC_KEY) throw new Error("API_PUBLIC_KEY is not set");export default function RootLayout() { // ... return ( <ChipiProvider config={{ apiPublicKey: API_PUBLIC_KEY, }} > <Stack />; </ChipiProvider> );}
5
Celebrate & Learn More!
That’s it! You should now have an initial working version of Chipi Pay integrated into your application. You can now start implementing various features like:
Wallet Creations
Sending tokens
Signing transactions
and more!
To quickly test the integration, you can use our Test Mode in
development.