Because of the simplicity of our API, merchants can start or move extremely quickly from sandbox to production. Below are the steps needed to test the API, once integrated:Documentation Index
Fetch the complete documentation index at: https://magic-21.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- On the Hosted Page, once the consumer clicks on the Pay Now button in the
last step of our flow, a payment should be triggered. It should be implemented on
the
onSuccessfunction of the Magic Link button. - To process a payment, the Merchant can call Magic’s Process Payment API Endpoint from the Merchant’s store.
- Or, the consumer can call it themselves via the Hosted Page.
- Test Consumers and Merchants can verify if it succeeded by confirming the purchase success screen. After the payment is processed, Magic’s API will tell you if it was successful or not. And Merchants can verify by checking their Funding Source wallet balance.