Mysoleas Identity Cloud manages authentication and users for your applications. It does not replace the application created in SoleasPay that provides API credentials for the gateway.
1. Prepare your domains
All protected business requests go through the gateway.2. Create an application in SoleasPay
Before calling gateway endpoints, create an application in SoleasPay from your merchant area. This application represents your API integration. Keep the two generated credentials:3. Get a gateway token
Use the credentials of the application created in SoleasPay.access_token. This token represents the application created in SoleasPay and is sent to the gateway.
4. Call the gateway
Send the token inx-sp-auth-token.
5. Choose a service
List available services before you create a transaction. The servicecode becomes the provider value in payment payloads.
is_active: true and is_can_collect: true.
A service that can be used for a disbursement must have is_active: true and is_can_disburse: true.
6. Launch a collection
The standard flow uses three calls:intent, execute, then status.
In the request,
customer_wallet must not include the country calling code.transaction_reference. Use this value to execute and track the transaction.
7. Track the status
Poll the status until you get a final state.COMPLETED, SUCCESS, FAILED, CANCELLED, and REFUNDED.