Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to redirect to pay gateway?


kermitfilip

Recommended Posts

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?

Link to comment
Share on other sites

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 by Konda
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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...