tags:

views:

65

answers:

1

We are attemption to customize the script to allow Canadian clients to process orders in CND dollars and all other clients to process orders in USD; however, we cannot authenticate with Moneris. Why is this script not authenticating?

we have modified 1 file.

gwMoneris2.asp - there we do the switch between gateway accounts depending of shipping country and display USD or CAD. The account info is hardcoded in that file as it was before update. Also we added there separate storeid/key for testing mode.

added code

gwMoneris2.asp

'// Set gateway specific variables - modified by egr-se
' Select account depending on Shipping country
if pcShippingCountryCode <> "CA" then
    pcPay_Moneris_StoreId="245ZGD2111"
    pcPay_Moneris_Key="dpQ87CRAVGP5"
else
    pcPay_Moneris_StoreId="AXVRQ47259"
    pcPay_Moneris_Key="dpNLNKHNYK6N"
end if
pcPay_Moneris_TransType=1
pcPay_Moneris_Lang="en-ca"
pcPay_Moneris_Testmode=0
pcv_CVV=0
pcPay_Moneris_Meth = 1
pcPay_Moneris_Interac =0

' Test mode id and key
if pcPay_Moneris_Testmode = 1 then
    pcPay_Moneris_StoreId="HBHTA8ore1"
    pcPay_Moneris_Key="dp1YDH2GJQR2"
end if

and line

 <td><p><%=money(pcBillingTotal)%> <%if pcShippingCountryCode = "CA" 
      then%>CAD<%else%>USD<%end if%>$</p></td>
A: 

Did this code was working on the test environnement ?

We already develop some code, everyting was working fine in developement mode, and nothing was working in production.

It was an error from Moneris, they was not activate a key. Maybe the same problem ?

Did you use a com object or you post by form ?

Cédric Boivin