Author Topic: Payment Processor Module for Megasoft (Venezuela) using Post method  (Read 1441 times)


  • Beginner
  • *
  • Posts: 1
Hello everyone, hope I can find some one to help me out to build a Payment Module for a small site dedicated to sell tickets for a private botanical garden in Caracas Venezuela.

I'm currently using Joomla 1.5 and Virtuemart 1.1.8 but I'm considering moving to Joomla 2.5 and Virtuemart 2 if you are able to develop the module for Virtuemart 2.

As for Virtuemart 1..1.8 I kind of "know" (sorry for my lack of knowledge of php) what needs to be done in this version, and I think it could be similar in the new version as well.

So I used the PayPal Old module as e2a starting point since the process of Megasoft could be similar to the one used by PayPal. I think there's only need to modify 3 files so the module can send the required data to Megasoft platform.

payment-procesor code inside the module
ps_tarjeta.cfg.php (application/x-httpd-php) 2K it used to be ps_paypalold.cfg.php
ps_tarjeta.php (application/x-httpd-php) 10K  it used to be ps_paypalold.php

Virtuemart needs to send the information to Megasoft using php post method (or maybe get?) through an url which looks like this in test mode:

These are the details contained in that url sent to Megasoft:


1- the url contained in in the ps_tarjeta.php which used to be the PayPalold php file

2-  cod_afiliacion=1633650
It's an constant field related to the affiliation id number of the company with Megasoft

3- transcode=0141
It's also a constant numeric field which determines that it's a credit card transaction

4- pan=4545130000599075
The credit card number

5- cvv2=638
cvv2 code

6- cid=V123654
The ID (Legal Venezuelan Identification) number of the costumer

7- expdate=0510
Expiration date of the credit card

8- amount=1231
Total amout in VEF form Venezuela without decimals in the number, in this example the amount is 12,34

9- client=Pedro%20Perez
Client's full name

10- factura=123456
Virtuemart's invoice id number

Once Megasoft receives the url with the variables included, it returns 0 or 1 in an xml file with confirmation of approval or rejection of the transaction.  (Is it a must to use a SSL to perform this data sending?),

From this point Virtuemart should handle the rest of the process.

In any case, I'd like to know your recommendations in terms of using my current  store configuration with Joomla, or if it's better to upgrade everything. The store is so simple in design and content at this point that it is a crucial decision since I just found out about both new versions.

I think this is something that could be done in a few hours of work of php savvy programmer.

I hope I explained myself clear enough with all the details needed to do this job. I'd love to do it myself, but it's got to be done in short time. It'd be a plus if you could tech me or explained how's the magic is done!

I'm looking forward to your answers.

Thank you