Dear Friends
We have just written a contract with Handelsbanken finans in Sweden which allows us to offer our visitors the option of paying their goods over for example 12 months. To work we need to send some data from ZenCart to the bank, and we got an example file from them with this content:
<html>
<head>
<title>Reservation toNetpay - exempel</title>
</head>
<body>
<?php
// Do not change
$version = "2";
// ID given by the bank
$storeid = "10";
// Uniqe order number from ZenCart
$orderid = "1138";
// Total amount at checkout point
$amount = "1024,20";
// Do NOT change
$currency = "SEK";
// Use campaign ID-number if You wish
$campaign = NULL;
// Do not change
$language = "SV";
// URL where the client can go by clicking a link after the transaction is ready
$returnurl = "http://www.test.se";
$str = "<Reservation>";
$str = $str . "<StoreId>" . $storeid . "</StoreId>";
$str = $str . "<OrderId>" . $orderid . "</OrderId>";
$str = $str . "<Amount>" . $amount . "</Amount>";
$str = $str . "<Currency>" . $currency . "</Currency>";
$str = $str . "<Campaign>" . $campaign . "</Campaign>";
$str = $str . "<Language>" . $language . "</Language>";
$str = $str . "<ReturnUrl>" . $returnurl . "</ReturnUrl>";
$str = $str . "</Reservation>";
$str = $version . base64_encode($str);
// We replace + with ! for GET to work
$str = str_replace("+", "!", $str);
// Printing the produced string on the screen. Should be called "reservation" and sent to https://www.netpay.saljfinans.com/se...ervation/ladda
echo ($str);
?>
</body>
</html>
Can anybody help us how to make this work? The bank need the variables above sent to the stated URL. The variables that are needed from ZenCart is total order amount and the order ID. Other values are set above in the code.
Any ideas? We run 1.3.6
Bookmarks