Download OpenAPI specification:Download
Payment Service for Ordering Stack
This method allows you to prepare transaction for a customer. The method returns transaction title required for other API methods and redirection link for a customerIf errors send proper response. If CreatePayment succeded return "200 OK" response.
| orderId | string |
| paymentType | integer |
| amount | integer |
| returnUrl | string |
| returnErrorUrl | string |
{- "orderId": "string",
- "paymentType": 0,
- "amount": 0,
- "returnUrl": "string",
- "returnErrorUrl": "string"
}{- "trxId": "string",
- "url": "string",
- "shouldRedirect": true
}This method allows sending a BLIK code in direct communication between merchant and BLIK system. In ‘create’ method you should set 150 as a value for parameter ‘group’, this is a BLIK payment channel. If CreatePayment succeded return "200 OK" response with boolean value = true.
| trxId | string |
| blikCode | string |
{- "trxId": "string",
- "blikCode": "string"
}{- "success": true
}Can be called only from restricted IP addresses from payment provider. It is mandatory to verify the address to ensure that it comes from the tpay.com online payments server.
| id | string |
| tr_id | string |
| tr_amount | string |
| tr_paid | string |
| tr_crc | string |
| tr_status | string |
| tr_error | string |
| tr_date | string <date-time> |
| tr_desc | string |
| tr_email | string |
| md5sum | string |
| test_mode | string |
| ip | string |
{- "id": "string",
- "tr_id": "string",
- "tr_amount": "string",
- "tr_paid": "string",
- "tr_crc": "string",
- "tr_status": "string",
- "tr_error": "string",
- "tr_date": "2019-08-24T14:15:22Z",
- "tr_desc": "string",
- "tr_email": "string",
- "md5sum": "string",
- "test_mode": "1",
- "ip": "string"
}