Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Psigate Xml Gateway

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

    PHP Code:
        $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?

  2. #12
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: Psigate Xml Gateway

    Quote Originally Posted by oxxyfx View Post

    PHP Code:
        $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

  3. #13
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    0

    Default 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

  4. #14
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    0

    Default 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,

  5. #15
    Join Date
    Sep 2008
    Location
    Toronto
    Posts
    35
    Plugin Contributions
    0

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

  6. #16
    Join Date
    Sep 2008
    Location
    Toronto
    Posts
    35
    Plugin Contributions
    0

    Default 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??

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 PsiGate XMl Payment Module - not handling error messages properly
    By mike_m29 in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Feb 2013, 05:24 PM
  2. PsiGate XML issues
    By cleansmoke in forum Addon Payment Modules
    Replies: 1
    Last Post: 7 Mar 2011, 09:48 AM
  3. PSiGate XML module?
    By jfriesen in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 1 Feb 2011, 04:52 AM
  4. PSiGate (Canadian) -- Passing tax amount through to gateway
    By tqualizer_man in forum Addon Payment Modules
    Replies: 0
    Last Post: 8 Dec 2006, 06:53 PM
  5. Anyone using NetworkDad's PSiGate XML module??
    By stevensmedia in forum Addon Payment Modules
    Replies: 3
    Last Post: 22 Aug 2006, 05:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg