Payment Integration
Introduction
Step 1: Generate an API Key
Step 2: Creating a Payment Request
Request Example
curl --location 'https://api.resmic.com/api/v1/makepayment' \
--header 'Content-type: application/json' \
--header 'x-api-key: <Your_API_KEY>' \
--header 'x-user-id: <Your_User_Id>' \
--data-raw '{
"amount":100,
"blockchain":["Ethereum", "Polygon","BNB-Chain", "Sepolia"],
"token": ["USDT", "USDC", "DAI", "ETH", "PUSH"],
"title":"Test title for the session",
"description": "This is a detailed description for the payment",
"wallet_address": "0x056397760b973BfB921Bc10Be9DA5034B1e921d7",
"blockchain_confirmation": 1,
"redirect_url": "localhost:3000/success-page",
"cancel_url":"localhost:3000/payment-failed-page",
"webhook_url":"[email protected]"
} 'Response Example
Step 3: Redirecting the User
Step 4: Handling Payment Status Updates
Webhook Example
Sample Integration
Conclusion
Last updated