Hejsan,
Någon som kan hjälpa mig?
Försöker integrera min sida mot payson betallösning...
felmeddelande:
MD5- Obligatorisk - Fel MD5, Använd parametrarna #SellerEmail# - #Cost# - #ExtraCost# - #OkUrl# - #GuaranteeOffered# samt din nyckel för att beräkna MD5
Kod:
Md5Helper md5h = new Md5Helper();
int iAgentID = 5455;
string sKey = "e5b65416-0369-4411-bb17-487d8b3d9582";
string sDescription = "Description of item or service";
string sSellerEmail = "[email protected]";
string sBuyerEmail = "[email protected]";
Decimal dCost = 4; //Cost of item or service
Decimal dExtraCost = 0; //Shipping
string sOkUrl = "http://www.yoursite.com/verify.asp";
string sCancelUrl = "http://www.yoursite.com/error.asp";
string sRefNr = "123"; //Merchant reference number
int iGuaranteeOffered = 1; //Payson Guarantee
string sMD5string = sSellerEmail + ":" + dCost + ":" + dExtraCost + ":" + sOkUrl + ":" + iGuaranteeOffered + sKey;
string sMD5Hash = md5h.CalculateMD5Hash(sMD5string, sKey);
SellerEmail.Value = sSellerEmail;
BuyerEmail.Value = sBuyerEmail;
AgentID.Value = iAgentID.ToString();
Description.Value = sDescription;
Cost.Value = dCost.ToString();
ExtraCost.Value = dExtraCost.ToString();
OkUrl.Value = sOkUrl;
CancelUrl.Value = sCancelUrl;
RefNr.Value = sRefNr;
MD5.Value = sMD5Hash;
GuaranteeOffered.Value = iGuaranteeOffered.ToString();