Mandatory part of the integration process to SailPlay platform involves the following steps:
1. insert the JS code to the general layout
2. implement the authentication method
3. implement the method call for accrual of bonus points for the user purchase
4. implement adding the gift into the basket or any other process of assigning the gift to the user
Additionally, you can implement:
1. a mechanism of purchase confirmation
2. a mechanism of user logging into SailPlay system
3. a mechanism of acquiring the user information in SailPlay system
4. cross-authentication (single sign-on for your service and SailPlay)
The entire process is described in detail below.
To increase the security of transmitted data, we recommend using HTTPS requests to the API methods. At this, all https requests should be addressed strictly to the "sailplay.ru" domain.
Further, the following definitions will be used:
transaction – any action related to the accrual/withdrawal of bonus points to the user, using the API
token – а unique session identifier. Is used in the partner authentication in SailPlay system