Integration Guide
This guide explains how to integrate MiraclePay into your application to accept cryptocurrency payments. The External Payments API allows you to create payment requests programmatically and redirect customers to a hosted checkout page.
Quick Start
Get your credentials (Client ID and API Key) from the MiraclePay Dashboard
Create a payment prompt via
POST /external/payments/promptRedirect your customer to the returned
checkoutUrlPoll for status via
GET /external/payments/prompt/:id
# Create a payment
curl -X POST https://api.miraclecash.info/external/payments/prompt \
-H "Content-Type: application/json" \
-H "Authorization: Basic $(echo -n 'your_client_id:your_api_key' | base64)" \
-d '{
"amount": 50.00,
"blockchainIds": ["eth"],
"payer": "customer"
}'
# Response contains checkoutUrl - redirect your customer there