Solana Quickstart
This guide will help you quickly integrate Solana-based cryptocurrency payments into your application using WhiskyPay.Prerequisites
- A React application
- Node.js 16+ installed
- npm or yarn package manager
- WhiskyPay merchant account (register at pay.whiskypeak.com)
Step 1: Installation
Install the WhiskyPay SDK package:Step 2: Basic Integration
Add the WhiskyPay payment flow to your React application:Step 3: Configure Your Merchant Account
Before testing, make sure you’ve:- Registered at pay.whiskypeak.com
- Connected your Solana wallet (where payments will be received)
- Set up your merchant profile (name, logo, callback URL)
- Obtained your
saasIdfrom the dashboard
Step 4: Customize The Payment Modal
The PaymentModal component accepts the following props:
Example with custom styling:
Step 5: Handle Payment Notifications
When a payment is completed, WhiskyPay will:- Call your webhook URL (specified in your merchant dashboard)
- Send email confirmations to both you and your customer
- Redirect the customer to your specified redirect URL
Step 6: Testing
To test your integration:- Use a real Solana wallet with testnet or devnet SOL
- Set
RPC_URLto a testnet or devnet endpoint during testing: - Make a test payment to verify the entire flow
- Check that your webhook receives the payment notification
Step 7: Going to Production
Before going live:- Update your RPC_URL to use a production endpoint:
Or even better, use a paid RPC provider for reliability
- Update your webhook endpoint to handle production payments
- Set up monitoring for your webhook endpoint
- Test the entire flow in a staging environment