Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please can any one provide me AlliedWallet Payment API Contribution for osC.


Recommended Posts

Posted

Actually my client want to use AlliedWallet Payment API gateway in his shopping cart of osc but I didn't found any contribution for it. Can any one guide me to find out the contribution. He sent me some documentation with this code

PHP Post Sample

<?php

echo open_https_url(" https://sale.alliedwallet.com/index2.aspx ");

function open_https_url($url) {

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

curl_setopt($ch, CURLOPT_POST, 1 );

curl_setopt($ch, CURLOPT_POSTFIELDS,"MerchantID=ce29a000-0000-0000-0000-

0001b150d8a6&SiteID=17bace2e-0000-0000-0000-

9b341ca5e5fe&AmountTotal=113&CurrencyID=USD&AmountShipping=0&ReturnURL=someurl&ItemName[

0]=Widget&ItemDesc[0]=BestWidget&ItemQuantity[0]=1&ItemAmount[0]=1");

curl_setopt($ch, CURLOPT_HEADER, 1);

curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

$result = curl_exec ($ch);

curl_close ($ch);

$trimmed = split('utf-8', $result);

return $trimmed[1].trim();

}

?>

Should I do Customize work for that...?

waiting for you feedback...

Posted

Actually my client want to use AlliedWallet Payment API gateway in his shopping cart of osc but I didn't found any contribution for it. Can any one guide me to find out the contribution. He sent me some documentation with this code

<html>

<head>

<title>Buy our T-Shirt</title>

</head>

<body>

<h1>Buy Our T-Shirt</h1>

<p>Single item purchase form.</p>

<form method="post"

action=" https://sale.alliedwallet.com/index.aspx ">

<!-- *** Required fields for AlliedWallet -->

<input name="MerchantID" type="hidden"

value="01234567-abcd-0000-0000-000000000000" />

<input name="SiteID" type="hidden"

value="67890123-cdef-0000-0000-000000000000" />

<input name="AmountTotal" type="hidden" value="17.99" />

<input name="CurrencyID" type="hidden" value="USD" />

<input name="AmountShipping" type="hidden" value="7.99" />

<input name="ShippingRequired" type="hidden" value="1" />

<input name="ItemName[0]" type="hidden" value="T-Shirt" />

<input name="ItemQuantity[0]" type="hidden" value="1" />

<input name="ItemAmount[0]" type="hidden" value="10.00" />

<input name="ItemDesc[0]" type="hidden" value="Our T-Shirt" />

<input name="NoMembership" type="hidden" value="1" />

<input name="ReturnURL" type="hidden"

value=" http://oursite.com/complete.htm " />

<input name="ConfirmURL" type="hidden"

value=" http://oursite.com/confirm.htm " />

<!-- *** Optional fields for AlliedWallet -->

<input name="MerchantReference" type="hidden" value="abc123" />

<!-- *** Form submit button ->

<input name="submit" type="submit" />

</form>

</body>

</html>

 

 

Should I do Customize work for that...?

waiting for you feedback...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...