This is a Next.js demo application showcasing Meridian payment integration with X402 protocol.
Before running this application, you need to set up your Meridian account and obtain API credentials.
- Visit www.mrdn.finance
- Connect your wallet to create an account
- Once your account is created, you'll be able to create your
MERIDIAN_PK(Public Key) andMERIDIAN_SK(Secret Key)
- After creating your account, proceed to create an API Key in your Meridian dashboard
- Copy the generated API key
- Create a
.env.localfile in the root directory of this demo application - Add your Meridian API key to the file:
NEXT_PUBLIC_MERIDIAN_PK=pk_...
MERIDIAN_SK=sk_...Once you have configured your environment variables, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3005 with your browser to see the result.
This demo application showcases:
- Meridian payment integration
- X402 protocol implementation
- Wallet connection functionality
- Protected routes with payment verification
- Integration with x402-next
- Manual DIY x402 Integration
- Meridian Finance - Learn more about Meridian
- Next.js Documentation - Learn about Next.js features and API
