News:

Looking for documentation? Take a look on our wiki

Main Menu

Payjunction Gateway Implementation

Started by Nicholas Dykzeul, February 08, 2007, 22:11:26 PM

Previous topic - Next topic

Nicholas Dykzeul

Hello, a client of mine wanted to implement the PayJunction gateway, and in trying to figure this out with PayJunctions technical staff, I was able to figure out a quick way to implement this.

Unfortunately it means you also end the chances of using authorize.net as well. So back up the files before you modify them!

Modify the file: administrator/components/com_virtuemart/classes/payment/ps_authorize.php

Every change that is made needs to be made twice. ps_authorize.php has each set of values twice. I'll list the line numbers for both instead of repeating everything.

Starting at line 305 and 529 change:

$host = "secure.authorize.net"; to $host = "payjunction.com";
$path = "/gateway/transact.dll"; to $path = "/live/vendor/special/authorize_net";

On line 327 and 600 change:

'x_delim_char' => '|', to 'x_delim_char' => ',',

On line 468 and 738 change:

$response = explode("|", $result); to $response = explode(",", $result);

And that should be all that's needed! PayJunction should now work! Just remember that it basically uses authorize.nets code, so this isn't a complete solution - more of a hack / temporary solution.

James

Hi there,
PayJunction has made available a payment gateway plugin for VirtueMart.  You can access it here:
http://support.payjunction.com/supportsuite/index.php?_m=downloads&_a=viewdownload&downloaditemid=34&nav=0

Thanks,
James
PayJunction, Inc.
PayJunction
Where Increased Sales and Lower Costs Meet!

floodhammer

We have written a complete Payjunction module.  With our module you can customize the security options such as validation of cvv and address, you can also choose authorization or authorization capture. In Authorization only mode when you change the order status to confirmed the transaction is processed.  You can also cancel the order if you haven't batched yet by changing the order status to cancelled.   All of the error response codes are included so the customer knows why their card didn't work.  This is a complete module. We have also implemented a test mode that generates a random order amount to satisfy payjunction's testing requirements.  We have also rewritten the checkout process for speed. We have also made many other modifications to virtuemart including adding the product images, shipping weight and dimensions to the order detail page. You can preview the checkout function at http://kidswheels.com. We also created quickbooks integration to allow for importing of order information into quickbooks.  We have also implemented many other modifications to satisfy customer needs.  Since the code requires some database changes and is very specific to payjunction please contact us for more information.

Thanks,
Steven  Flood
http://floodhammer.com