kermitfilip Posted July 4, 2007 Share Posted July 4, 2007 In my country (Serbia) we have, for now, only one way to include credit card pay sistem. I have this HTML code from paying gateway provider which must include in my paying module <form action="https://pakompay.pakom.com/pay/autorizacija.asp" method=POST> <input type="hidden" name="ShopID" value="MOJSHOP"> <input type="hidden" name="ShoppingCartID" value="505"> <input type="hidden" name="TotalAmounth" value="150,00"> <input type="hidden" name="Signature" value="fa30bebef5a01aa777d7b43ef05a0591"> <input type="hidden" name="ReturnURL" value="http://firma.com/potvrda.asp"> <input type="hidden" name="CancelURL" value="http://firma.com/odustani.asp"> <input type="hidden" name="CostumerFirstName" value="Petar"> <input type="hidden" name="CostumerLastName" value="Petrovic"> <input type="hidden" name="CostumerAddress" value="adresa 52a"> <input type="hidden" name="CostumerCity" value="Nis"> <input type="hidden" name="CostumerZIP" value="18000"> <input type="hidden" name="CostumerCountry" value="Srbija"> <input type="hidden" name="CostumerPhone" value="018 xxx xxx"> <input type="hidden" name="CostumerEmail" value="[email protected]"> <input type="submit" value="Kupi"> </form> how can i implement this with my OSCommerce shop? As you can see, I must forward some data when the shopping is over and when comes to pay. Anybody help me? Quote Link to comment Share on other sites More sharing options...
Konda Posted July 4, 2007 Share Posted July 4, 2007 (edited) In my country (Serbia) we have, for now, only one way to include credit card pay sistem. I have this HTML code from paying gateway provider which must include in my paying module <form action="https://pakompay.pakom.com/pay/autorizacija.asp" method=POST> <input type="hidden" name="ShopID" value="MOJSHOP"> <input type="hidden" name="ShoppingCartID" value="505"> <input type="hidden" name="TotalAmounth" value="150,00"> <input type="hidden" name="Signature" value="fa30bebef5a01aa777d7b43ef05a0591"> <input type="hidden" name="ReturnURL" value="http://firma.com/potvrda.asp"> <input type="hidden" name="CancelURL" value="http://firma.com/odustani.asp"> <input type="hidden" name="CostumerFirstName" value="Petar"> <input type="hidden" name="CostumerLastName" value="Petrovic"> <input type="hidden" name="CostumerAddress" value="adresa 52a"> <input type="hidden" name="CostumerCity" value="Nis"> <input type="hidden" name="CostumerZIP" value="18000"> <input type="hidden" name="CostumerCountry" value="Srbija"> <input type="hidden" name="CostumerPhone" value="018 xxx xxx"> <input type="hidden" name="CostumerEmail" value="[email protected]"> <input type="submit" value="Kupi"> </form> how can i implement this with my OSCommerce shop? As you can see, I must forward some data when the shopping is over and when comes to pay. Anybody help me? If you know a bit about html and mysql/php you should be able to modify the ChronoPay payment module to get it to work with your gateway provider. I did the same for another processor, and it works fine. Just edit the "includes/modules/payment/chronopay.php" file (you will see the hidden form parts in the source). In the source you will also see a callback url, you can use that for the return_url variable. Just modify that file to your needs as well and you should be done. If you don't know much about mysql/php you will need someone to do it for you who can program. Edited July 4, 2007 by Konda Quote Link to comment Share on other sites More sharing options...
kermitfilip Posted July 4, 2007 Author Share Posted July 4, 2007 If you know a bit about html and mysql/php you should be able to modify the ChronoPay payment module to get it to work with your gateway provider.I did the same for another processor, and it works fine. Just edit the "includes/modules/payment/chronopay.php" file (you will see the hidden form parts in the source). In the source you will also see a callback url, you can use that for the return_url variable. Just modify that file to your needs as well and you should be done. If you don't know much about mysql/php you will need someone to do it for you who can program. Thanks a lot! May I cry for help if I stuck somewhere in code? Quote Link to comment Share on other sites More sharing options...
kermitfilip Posted July 9, 2007 Author Share Posted July 9, 2007 I obviosly didn't help myself. My knowlege PHP and HTML isn't enough. I only can assist someone who really can modify chronopay module. Is there someone interested to help? Quote Link to comment Share on other sites More sharing options...
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.