Payment API

The payment API consists of a set of callbacks that needs to be implemented. These are endpoints our platform will do a HTTP POST Request towards to perform one of the three actions:

Responses

Success

If your endpoint return 200OK and no object with an error key, the callback will be completed and logged as successful in the Scout Gaming Platform.

Error

When you need to cancel a request for any reason you should return a non-2XX error, for instance HTTP400 Bad Request. In addition you should return an object with an error key which can be logged and displayed to the user when needed. For instance:


    
// HTTP Response 402 from callback { "error": "insufficient_funds" }