Get Started
Testing
Finish your Integration by Processing your First Payment!
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:
- 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
onSuccess
function 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.
Base Urls for Testing
Sandbox Base URL
https://api-dev.join-magic.com/api/