Skip to main content
This guide takes you from creating an application in SoleasPay to tracking your first transaction.
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.
User OAuth2/OIDC journeys go through Mysoleas Identity Cloud.
Store these URLs in environment variables. This makes tests, workers, and back-office tools easier to maintain.

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:
Never put sp_client_secret in a frontend, mobile application, or public repository. It must stay on the backend.

3. Get a gateway token

Use the credentials of the application created in SoleasPay.
The response contains an access_token. This token represents the application created in SoleasPay and is sent to the gateway.
The token obtained here is for API gateway calls. The user JWT from Sign in with Mysoleas is used to open a user session in your own application.

4. Call the gateway

Send the token in x-sp-auth-token.
You can also send context headers when your application manages several environments or countries.

5. Choose a service

List available services before you create a transaction. The service code becomes the provider value in payment payloads.
A service that can be used for a collection must have 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.
The response contains transaction_reference. Use this value to execute and track the transaction.

7. Track the status

Poll the status until you get a final state.
Final states are COMPLETED, SUCCESS, FAILED, CANCELLED, and REFUNDED.