"0003",
"SOLOPMT_RCV_ID" => "10100065",
"SOLOPMT_RCV_ACCOUNT" => "EE561700017123456786",
"SOLOPMT_RCV_NAME " => "ÕIE MÄGER",
"SOLOPMT_STAMP" => "12345",
"SOLOPMT_AMOUNT" => "150",
"SOLOPMT_CUR" => "EUR",
"SOLOPMT_DATE" => "EXPRESS",
"SOLOPMT_CONFIRM" => "YES",
"SOLOPMT_REF" => "1234561",
"SOLOPMT_MSG" => "testmakseÄ",
"SOLOPMT_LANGUAGE" => "3",
"SOLOPMT_KEYVERS" => "0001",
"SOLOPMT_RETURN" => ($_SERVER["HTTPS"]?"https":"http")."://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/confirm.php?action=return",
"SOLOPMT_CANCEL" => ($_SERVER["HTTPS"]?"https":"http")."://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/confirm.php?action=cancel",
"SOLOPMT_REJECT" => ($_SERVER["HTTPS"]?"https":"http")."://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/confirm.php?action=reject",
);
// STEP 3. Generate data to be signed
// ==================================
$data = $fields["SOLOPMT_VERSION"] . "&" .
$fields["SOLOPMT_STAMP"] . "&" .
$fields["SOLOPMT_RCV_ID"] . "&" .
$fields["SOLOPMT_AMOUNT"] . "&" .
$fields["SOLOPMT_REF"] . "&" .
$fields["SOLOPMT_DATE"] . "&" .
$fields["SOLOPMT_CUR"] . "&" .
$secret . "&";
/* $data = "0003&12345&10100065&150&1234561&EXPRESS&EUR&hWr0XQXtgbrQRWMRd4wWbSLuBBK9ver2&"; */
// STEP 4. Sign the data with MD5 to generate MAC code
// ========================================================
/* FD8DA6CC0AD343465BE14E0D9F433B6A */
$fields["SOLOPMT_MAC"] = strtoupper(md5($data));
// STEP 5. Generate POST form with payment data that will be sent to the bank
// ==========================================================================
?>
Makse teostamise näidisrakendus "Nordea"