VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: apostoloff on November 24, 2005, 15:15:39 PM

Title: Need Some Help
Post by: apostoloff on November 24, 2005, 15:15:39 PM
Hi all,
I have a little problem. I have this code from my payment operator:

<FORM action="https://www.datamax.bg/ec_en/paylogindirect.cgi" method=post>
<INPUT type=hidden name=type value=order.form>
<INPUT type=hidden name=MIN value="">
<INPUT type=hidden name=DESCR value="">
<INPUT type=hidden name=TOTAL value="">
<INPUT type=hidden name=URLOK value="">
<INPUT type=hidden name=URCANCEL value="">
<INPUT type=image name=submit  border=0>
</FORM>



What I need is a payment module where the user can define:
MIN  - This is the unique ID number of the User - The Shop (Something like Paypal ID)
DESCR - This is the description of the purchase
TOTAL - must come from the sum of all products selected
URlOK - This is the web address if the order is OK
URLCANCEL - This is the url if the user declines the order.

So what I need is a payment module where all this can be defined and a function that gets the total amount and replace it in the form above.

Anyone can help?
Title: Re: Need Some Help
Post by: Mr_Smurf on November 24, 2005, 15:51:14 PM
You DO NOT want to use that payment providor if that is the only thing they want to know..

You will give away your uniq shop id to all your customers and they can (if thet wish) change the total value before they submit the payment..

The provider should have given you a private key and a algorithm for making a checksum to make sure that the payment came from your shop and has not been changed along the way..
Title: Re: Need Some Help
Post by: apostoloff on November 24, 2005, 16:12:09 PM
Actually they offer it, but I have no idea how to configure it
Title: Re: Need Some Help
Post by: Mr_Smurf on November 24, 2005, 16:13:07 PM
Tell me what they say and I can explain :)