Integration checklist
Sign up for an account
- Create your Montonio account by filling in the registration form on our website (click the “Get started” button) and complete the onboarding in our Partner System.
- Create a Partner System user account for yourself and other team members who are working on the integration.
- Copy the API keys of your store from the Partner System.
Let your customer choose a payment method
Full guide: Display payment methods
- Get the list of available payment methods from the API.
- Display the list of available payment methods to the customer.
Create an Order and redirect the customer
Full guide: Create and validate an order
- Compose a JWT with the Order details and sign it with your
Secret Key. - Create an Order by sending the JWT to the
POST /ordersendpoint. - Redirect the customer to the
paymentUrlreturned by the API. - After your customer finishes the payment process, he will be redirected to the
returnUrlspecefied in your request.
Validate the payment
Full guide: Create and validate an order -> Validating the payment
Montonio uses webhooks to notify you about Order status changes, events related to refunds, and other important events. It is required to listen to webhooks by specifying notificationUrl to keep your Order statuses up to date.
Additionally, an Order token with the same information is included as a query parameter during the redirect back to your store. This helps you validate the payment as part of the synchronous user flow. However, webhooks should still be the primary method of listening for Order status changes.
- Set up a webhook listener on your server.
- Wait for the event.
- Verify the contents of the webhook with your
Secret Key. - Update the status of the Order in your system and take any other necessary actions.