- Receiving DirectBilling transaction information
Retrieving a list of services
Retrieving service information
Commission calculation
Retrieving a list of transactions
Generating a transaction
Retrieving transaction information
Receiving DirectBilling t...
We generate the signature by combining all the parameters received (except for the signature) to the API in the order from the table above, separating them with a | separator and adding at the end the key available in the customer panel in the service.
Hashing must be done using sha256.
Example:
dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a|e14f8074|transaction_db_payed|11.07|13.67|5.00|https://www.simpay.pl/complete|https://www.simpay.pl/failure|test|123123123|1|key
The notification is sent using the POST method and requires you to respond in the body with OK and Http Code 200
idstring, (uuid), = 36 characters(TransactionId)^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]...required
Transaction ID
Example:"dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a"
Transaction status
Enum:"transaction_db_new""transaction_db_confirmed""transaction_db_payed""transaction_db_rejected"
Example:"transaction_db_payed"
Example:
{ "complete": "https://www.simpay.pl/complete", "failure": "https://www.simpay.pl/failure" }
Signature of the notification Read how to generate the signature
Example:"a3116cf4f1e960223c2cc3088bf387278b6675255209bdeaf96a2f316a2fadc1"
POST
{ "id": "dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a", "serviceId": "e14f8074", "status": "transaction_db_payed", "values": { "net": 11.07, "gross": 13.61, "partner": 5 }, "returns": { "complete": "https://www.simpay.pl/complete", "failure": "https://www.simpay.pl/failure" }, "number_from": "48123123123", "provider": 1, "signature": "a3116cf4f1e960223c2cc3088bf387278b6675255209bdeaf96a2f316a2fadc1" }
Response
OK