Webhooks
Payment report implemented using webhooks
Setting up webhooks
To set up webhooks you need to go to the “Store Connection” section of the Personal Account, go to the “Store Management” subsection.
Then enter the URL address in the system from which the payment is made, to this address will be sent data on the status of payments
Specify the CMS system to be used, in case the CMS system is not used you should select “None of the above listed”
Specify the password that will be used in the signature of the message sent from Cryptadium
Pay attention! If you want to submit a payment linked to cryptocurrency - use Amount and Currency. If you want to submit a payment linked to fiat, for example, to USD - use AmountFiat and FiatCurrency.
FiatCurrency can be omitted if the payment is in cryptocurrency (can be ignored, default is always USD).
Response Type: JSON
Parameters
PaymentId
Transaction ID in the Cryptadium system
int
ShopId
Shop Id in Cryptadium system
string
Amount
Amount of payment in cryptocurrency. Optional parameter if sent by AmountFiat
Double
AmountFiat
Amount of payment in fiat. Optional parameter if Amount is passed
Double
FiatCurrency
Fiat currency Values: USD, EUR, TRY
String
Currency
Currency of payment
String
Payer's e-mail
String
ClientId
Unique identifier of the user in the system from which the payment is made
String
Status
Payment status Possible values: Success - the payment was successful Canceled - payment was cancelled (check with Cryptadium technical support for the reason) Insufficient - payment is underpaid (the payment is considered underpaid if the payment window has expired and the payment has not been fully executed and the callback will contain AmountUSD and Amount corresponding to the real amount of funds received)
String
BillingID
Unique payment identifier in the system from which the payment is made
String
Signature
A checksum to verify the authenticity of the request (to ensure that the request came from Cryptadium)
String
Insufficient
If "Confirm underpayments" is set in the shop settings, the underpayments will automatically be confirmed as successfully made after the end of the payment validity period (window). You will then receive a second callback, which will give information about the amount actually received (underpaid). You need to process this callback on the payment generation side and modify the original payment to match the actual funds received
Boolean
Source.Amount
The amount specified when creating the payment
Double
Source.Type
Pointer to the currency to which Source.Amount value was specified. Can take values USD, EUR, TRY, Crypto.
String
Test
Indicates whether the payment will be a test payment. This parameter is optional and should only be used to carry out tests. To use this parameter, you should be authenticated by the shop. If authentication is passed and the request is sent with Test=true, you will see three buttons on the payment form "Payment successful", "Payment cancelled", "Payment underpaid", clicking on which, there will be sent the corresponding callbacks to your CallbackUrl. The total number of attempts to send is 30, the interval between attempts is 15 seconds. Test payments are not displayed in your shop and are not counted
Boolean
Signature check:
A string of the following kind should be generated: "PaymentId":"ShopId":"Email":"Currency":"Password" (Without inverted commas with a colon)
Encrypt the resulting string using the MD5 algorithm
Compare the resulting string with the one that came in via Webhook
If the strings match, an HTTP Status 200 response should be returned (Mandatory) Webhook JSON example:
Last updated