shaista Posted June 19, 2009 Posted June 19, 2009 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... Quote
shaista Posted June 19, 2009 Author Posted June 19, 2009 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... Quote
Recommended Posts
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.