API calls
To complete the configuration with API, you need to set the following 3 API calls.
- create order (v2/orders)
This POST call is mandatory to create the order. In this call, your website sends all the order information to our server (customer details, shipping details, total amount, date, items,) and will generate an order token. The client is then redirected to the Scalapay website to authorise the payment with a 200 code. - get order details (v2/payments/{token})
This GET call checks the status of the order. It requests the data and the confirmation that the payment has been authorised. In these few seconds, Scalapay algorithm makes a real time check on the payment method used. If the payment has been authorised, Scalapay will send a success url to your website. - capture order (v2/payments/capture)
This POST call is the final one and is mandatory to correctly finalise the order. Once the capture call is made, the first charge is deducted from the user account and the order status goes in Charged.
API Simulator
In this section you can find the API Simulator that allows you to test the API calls and you will know how Scalapay responds to each API call of your website.
Updated 19 days ago