I sent to payment gateway reqiured parameters, and CheckSumHeader which include number of sent parameters, names of the parameters, and lenght of parameters values, then I create input string with header, values of parameters, and password for hecksum. Whit this input string I create CheckSum with md5 utf-8. This CheckSum is hash required from payment gateway. Response from payment gateway is ReturnCheckSum, CheckSum and RefPaymentID. ReturnCheckSum header contains same parameters, but places of first and second parameter are switched, and with that algoritam is create ReturnCheckSum. Always CheckSum and ReturnCheckSum are diffetent.RefPaymentID is numeric ID for payment, but this ID payment gateway sent in both case when payment is success and payment is fail. The only indicator of success payment or fail payment is redirecting from payment gateway on OKURL or FAILURL.
I was wondering about that and I am completely confused now...
Best Regards