Zen Cart Logo
Forums / Addon Payment Modules / Psigate Xml Gateway

Psigate Xml Gateway

Views: 7,906

Results 1 to 16 of 16
13 Jul 2005, 12:54 AM
#1
networkdad avatar

networkdad

Totally Zenned

Join Date:
Nov 2003
Location:
Battle Ground, WA
Posts:
2,477
Plugin Contributions:
1

Psigate Xml Gateway

Contribution: PSiGate XML Payment Gateway
Merchant URL: http://www.PSiGate.com

Download Here

Requirements:- PSiGate Account

  • cURL must be compiled into PHP
  • SSL Certificate
  • TCP port 7934 open for production use
  • TCP port 7989 open for test/development useThis contrib replaces the prior PsiGate API that i released. That module will no longer be supported. This new interface connects into the new PSiGate XML processing interface.

Data is put into XML and sent securely to the gateway, and then the module parses the XML responses for approval and stores them in a separate database table.

The module supports 2 store id's (one for CAD currency, the other for USD currency) and automatically sends the correct store id based upon the currency that your customer has selected during the checkout process (assuming you support multiple currencies on your store).

Future development will include displaying the data stored in the database on the admin order page, and e-checks once psigate begins to support it on their gateway.

This module was quite a learning experience - i spent several days reading up on xml and php parsing, and have learned a whole ton. I thought my head was going to explode at one point ;)

4 Nov 2007, 5:14 PM
#2
dannyd avatar

dannyd

Zen Follower

Join Date:
Apr 2005
Posts:
191
Plugin Contributions:
0

Re: Psigate Xml Gateway

hi,

the correct value is show in the final checkout page but the incorrect value is passed to psi gate. Any idea what causes this ?

4 Nov 2007, 6:20 PM
#3
dannyd avatar

dannyd

Zen Follower

Join Date:
Apr 2005
Posts:
191
Plugin Contributions:
0

Re: Psigate Xml Gateway

Sorry that didnt make sense...

the cost of the product is always sent as the canadian price.

Example:

So if the total was 54.99 CAD and the person selected USD Currency (58.99 USD)

then the price is sent as 54.99 USD.

any idea why its not passing the right values ?

29 Apr 2008, 1:27 AM
#4
indicana avatar

indicana

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Psigate Xml Gateway

I am stuck with integrating the PSI gate module. Could someone explain step by step as to where I should download it and how I should proceed with the completion. Please help.

thanks

indicana

29 Apr 2008, 11:57 AM
#5
indicana avatar

indicana

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Psigate Xml Gateway

I found the PSI gate module designed by Jason Le Baron for Zencart version 1.2.2. I have installed the latest Zencart version 1.3.8. I am wondering if it will not pose a problem integrating the PSI module 1.2.2 with the latest zencartversion. And do I download it in the /includes folder in the main directory or /includes/templates/Slovak?

Indicana

28 Jul 2008, 5:35 PM
#6
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: Psigate Xml Gateway

This question is posted few times in the forum without answer. Does anyone know if this old module works with v1.3+ versions? :unsure:

9 Mar 2010, 7:04 PM
#7
swapnaks avatar

swapnaks

New Zenner

Join Date:
Mar 2010
Posts:
1
Plugin Contributions:
0

Re: Psigate Xml Gateway

Can anybody explain how to pass a xml data to Psigate test server?
I am new to this xml API.

I just want to create a test application to check how to do credit card processing using Psigate.
After that we are planning to subscribe the psigate's service.
Experts please help.
Best Regards,
Swapna

NetworkDad:

Contribution: PSiGate XML Payment Gateway
Merchant URL: http://www.PSiGate.com

Download Here

Requirements:- PSiGate Account

  • cURL must be compiled into PHP
  • SSL Certificate
  • TCP port 7934 open for production use
  • TCP port 7989 open for test/development use

This contrib replaces the prior PsiGate API that i released. That module will no longer be supported. This new interface connects into the new PSiGate XML processing interface.

Data is put into XML and sent securely to the gateway, and then the module parses the XML responses for approval and stores them in a separate database table.

The module supports 2 store id's (one for CAD currency, the other for USD currency) and automatically sends the correct store id based upon the currency that your customer has selected during the checkout process (assuming you support multiple currencies on your store).

Future development will include displaying the data stored in the database on the admin order page, and e-checks once psigate begins to support it on their gateway.

This module was quite a learning experience - i spent several days reading up on xml and php parsing, and have learned a whole ton. I thought my head was going to explode at one point ;)

30 Sep 2010, 6:06 PM
#8
luxifer avatar

luxifer

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Re: Psigate Xml Gateway

The link to the source code is down. Does anyone know where I can get the source code?

24 Jan 2011, 9:40 PM
#10
oxxyfx avatar

oxxyfx

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
0

Re: Psigate Xml Gateway

Hi, I just learned that this module does not charge the CAD accoutn correctly if the USD is the default account on the website. At this time it looks like I am crediting my customers with a few dollars on every CAD transaction because this module converts the CAD to USD and that's how it sends it to PSIGate - CAd account, so I am always loosing.

IS there a solution for this?

24 Jan 2011, 10:51 PM
#11
oxxyfx avatar

oxxyfx

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
0

Re: Psigate Xml Gateway

I think the reason for this is somewhere in these lines:

    $psi->setGatewayURL(((MODULE_PAYMENT_PSIGATE_XML_TRANSACTION_MODE == 'Production') ? 'https://secure.psigate.com:7934/Messenger/XMLMessenger' : 'https://dev.psigate.com:7989/Messenger/XMLMessenger'));
	$psi->setStoreID((($_SESSION['currency'] == 'CAD') ? MODULE_PAYMENT_PSIGATE_XML_STORE_ID_CAD : MODULE_PAYMENT_PSIGATE_XML_STORE_ID_USD));
	$psi->setPassPhrase((($_SESSION['currency'] == 'CAD') ? MODULE_PAYMENT_PSIGATE_XML_PASSPHRASE_CAD : MODULE_PAYMENT_PSIGATE_XML_PASSPHRASE_USD)); // Assures authenticity

but I have no idea wher and nhow to fix it - can somebody with some PHP experience help out please?

24 Jan 2011, 11:41 PM
#12
luxifer avatar

luxifer

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Re: Psigate Xml Gateway

oxxyfx:

$psi->setGatewayURL(((MODULE_PAYMENT_PSIGATE_XML_TRANSACTION_MODE == 'Production') ? 'https://secure.psigate.com:7934/Messenger/XMLMessenger' : 'https://dev.psigate.com:7989/Messenger/XMLMessenger'));
$psi->setStoreID((($_SESSION['currency'] == 'CAD') ? MODULE_PAYMENT_PSIGATE_XML_STORE_ID_CAD : MODULE_PAYMENT_PSIGATE_XML_STORE_ID_USD));
$psi->setPassPhrase((($_SESSION['currency'] == 'CAD') ? MODULE_PAYMENT_PSIGATE_XML_PASSPHRASE_CAD : MODULE_PAYMENT_PSIGATE_XML_PASSPHRASE_USD)); // Assures authenticity
The first line says "if you are in production mode, use the first URL, otherwise, use the second one"  This is as it should be, but from the backend, they may just default to USD if you're in dev mode (it would be wrong, but it's happened).  Check that you're in production mode.
The 2nd line says "if the currency of that web session is CAD, use the CAD store ID, otherwise use the USD store id."  This is also correct, and make sure yours are set right.
The 3rd line likewise does the same thing with the password.

These seem to be correct. I just reviewed the code to see that they haven't got it backwards, and they don't, so everything above should work as advertised.

I would check YOUR settings to see that your site defaults to the correct currency, and if a currency can be chosen by the customers, that it's set up right.

Also, go to admin page->Localization->currencies and adjust these the correct way.
Right now the currencies are so close to par, there's almost no difference, and it's expected for the CAD to be above the USD for the next while, so that's to your advantage.

Good luck
Lux
25 Jan 2011, 6:25 AM
#13
oxxyfx avatar

oxxyfx

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
0

Re: Psigate Xml Gateway

Thank you for looking at this. my default currency is USD, and CAD & EUR is an option too. I checked out the Same name module for oscommerce and there seem to be differences on the next line wherethe total is calculated.

The oscommeerce module seems to make some calculations with the exchange rate

25 Jan 2011, 6:37 AM
#14
oxxyfx avatar

oxxyfx

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
0

Re: Psigate Xml Gateway

Thank you for looking at this. My default currency is USD, and CAD & EUR is an option too. I am in Canada, but I think that should not matter, I should be able to select the default currency to which I want.

So this only happens when the transaction is in CAD. I verified today, there was a tansaction where the cart value was 92.41CAD and over the PSIGate transactions the amount charged to the customers credit card was only 91.67CAD which corresponds to the exchange rate which is shown under my curencies page:

CAD: 1.008
USD: 1.000

I checked out the same name module for oscommerce and there seem to be differences on the next line wherethe total is calculated.

Zencart module:

$psi->setSubTotal($order->info['total']);

The oscommeerce module seems to make some calculations with the exchange rate:

	$psi->setSubTotal(number_format($order->info['total'] * $currencies->get_value($currency), 2,'.','')); //number_format($number, 2); fix for comma in subtotal field

Now in the zencart module the $currencies is not defined anywhere, so I cannot just make this adjutment - or can I?

Thanks,

14 Apr 2011, 3:02 PM
#15
hovsepations avatar

hovsepations

New Zenner

Join Date:
Sep 2008
Location:
Toronto
Posts:
35
Plugin Contributions:
0

Re: Psigate Xml Gateway

will this module work on Zencart 1.3.9h ?? anyone had any experience setting it up.

i tried to setup the other one available under the free add-ons, no luck, didn't work, having tons of errors.

any help is appreciated.

14 Apr 2011, 3:07 PM
#16
hovsepations avatar

hovsepations

New Zenner

Join Date:
Sep 2008
Location:
Toronto
Posts:
35
Plugin Contributions:
0

Re: Psigate Xml Gateway

the download link to networkdad does not work anymore, anybody has the file somewhere public that i can download and test??