Server-to-Server Implementation Guide
1. Database Deposits Table
CREATE TABLE deposits (
deposit_id VARCHAR(36) PRIMARY KEY,
user_id VARCHAR(36) NOT NULL,
amount INTEGER NOT NULL,
result VARCHAR(36)
);2. /thndr/pay Endpoint
/thndr/pay Endpoint{
"userId": "<userId>",
"depositId": "<depositId>",
"amount": 1234
}Execute following commands in one SQL transaction:
3. /thndr/results Endpoint
/thndr/results EndpointExecute following commands in one SQL transaction:
Last updated