Miracle Payments Documentation
Everything you need to integrate Miracle payments into your application.
Welcome to the Miracle API documentation. Choose your integration path to start accepting payments.
Choose your integration
Hosted Payment Page
Redirect customers to a pre-built, white-label checkout page branded with your identity. Lowest integration effort, SAQ-A PCI compliance.
Direct API (H2H)
Full control over the payment flow. Tokenize cards client-side with a publishable key, then create payments server-to-server with a secret key.
Not sure which to choose? Start with the Hosted Payment Page — it's the fastest way to go live, and you can switch to Direct API later.
Quick test
Use this test card number to try a payment in sandbox mode:
4242 4242 4242 0000Any future expiry date and any 3-digit CVC will work.
Getting started
Follow these four steps to accept your first payment: