Callbacks
INFO
URL Configuration
Example of request with dinamic callback url
curl --request POST \
--url https://secure.PayStar.uk/api/v1/integration/deposit-order\
--header 'Authorization: Bearer YOUR TOKEN' \
--header 'Content-Type: application/json' \
--header 'accept: text/plain' \
--data '{
"amount": 100,
"currency": "USD",
"externalTransactionId": "MerchantPaymentId-12345",
"callbackUrl": "http://merch.com/MerchantPaymentId-12345"
}'
Example of callback url in payment request
{
"amount": 100,
"currency": "USD",
"externalTransactionId": "Merch-bf95219b-393d-4323-91bf-639be",
"orderStatus": "Created",
"externalParams": {
"cardToken": "BankToken-bf95219b-393d-4323-91bf-639ac",
"cardStorageToken": "PayStarToken-bf95219b-393d-4323-91bf-639ac",
"cardNumber": "123456****1234",
"cardHolder": "JOHN WEAK"
}
]
}
Callback type configuration
Create
statusPrigress
statusSuccess
statusFailed
statusAmount was changed
(availeble in some payment flow)Callback request
CallBack params
externald
- order id in our system (string)amount
- order amount (number)currency
: order currencystatus
- order status (string)orderType
- type of the order (string) It can accept values Deposit
or Withdrawal
cardToken
- card token issued by a bankcardStorageToken
- card token issued by a PayStar.ukcardNumber
- card mask 6x4cardHolder
- card holder nameSignature validation
Step 1 - Retrieving Data for the Signature
1.
externalId
, status
, amount
and orderType
from the request.2.
privateKey
to construct the signature string in the following format: externald;status;amount;orderType;privatekey
Step 2 - Calculating the Signature
1.
2.
Step 3 - Verifying the Signature
1.
2.
3.
Examples of validation
JavaScript
Python
C Sharp
Modified at 2025-04-29 19:20:37