I have a very unique situation here. In a nutshell, I need to be able to charge customers in Mexico in MXN.
My website hosting is in the US and it's relevant settings are:
- Country = Mexico
- Zone = Mexico
- Under Localization\currencies = Mexican Peso (MXN) is default
I modiffied the following files as to have everything set to MXN on the Website Payment Pro module and the MXN currency available on the Payment Modules section in Zen:
- paypalwpp.php
- paypaldp.php
- paypal_functions.php
- tpl_ec_button.php
This makes at least all the prices in my test website to appear in MXN and the Cart too. The problem is that, apparently, when it tries to go through the authorization process, Zen sends out the Currency as USD (look for bold letters towards the start of the log) even though the log shows that initially it knows the Currency should be MXN (look for bold letters towards the end of the log). Here is the error log:
------------------------------------------------------------------------
paypaldp
In function: before_process() - Direct Payment Did first contact attempt return error? No
Value List:
Array
(
[ACCT] => ************0992
[AMT] => 52.50
[BUTTONSOURCE] => ZenCart-DP_us
[CARDISSUE] =>
[CITY] => Austin
[COUNTRYCODE] => US
[CREDITCARDTYPE] => MasterCard
[CVV2] => ***
[EMAIL] => [email protected]
[EXPDATE] => 022011
[FIRSTNAME] => Ernesto
[IPADDRESS] => 71.145.133.60
[ITEMAMT] => 50.00
[LASTNAME] => Marquez
[L_AMT0] => 50.00
[L_NAME0] => Hewlett Packard LaserJet 1100Xi Linked
[L_NUMBER0] => HPLJ1100XI
[L_QTY0] => 1
[L_TAXAMT0] => 0.00
[NOTIFYURL] => http://v2.rastreotec.com/ipn_main_handler.php
[PAYMENTACTION] => Sale
[PHONENUM] =>
[SHIPPINGAMT] => 2.50
[SHIPTOCITY] => Austin
[SHIPTOCOUNTRYCODE] => US
[SHIPTONAME] => Ernesto Marquez
[SHIPTOSTATE] => TX
[SHIPTOSTREET] => 12871 Research Blvd
[SHIPTOSTREET2] => Ste 204
[SHIPTOZIP] => 78750
[STATE] => TX
[STREET] => 12871 Research Blvd
[STREET2] => Ste 204
[ZIP] => 78750
[METHOD] => DoDirectPayment
[CURRENCYCODE] => USD
[USER] => don_api1.sageplan.com
[PWD] => ****************
[VERSION] => 2.3
[SIGNATURE] => ****************************************************IbBc
)
Response:
Array
(
[AMT] => 52.50
[CURRENCYCODE] => USD
[AVSCODE] => Y
[CVV2MATCH] => M
[TIMESTAMP] => 2008-10-16T19:54:44Z
[CORRELATIONID] => dda2d7eae03f3
[ACK] => Failure
[VERSION] => 2.3
[BUILD] => 721194
[L_ERRORCODE0] => 10001
[L_SHORTMESSAGE0] => Internal Error
[L_LONGMESSAGE0] => Internal Error
[L_SEVERITYCODE0] => Error
[L_ERRORPARAMID0] => ProcessorResponse
[L_ERRORPARAMVALUE0] => 0000
[CURL_ERRORS] =>
)
Session data: Array
(
[securityToken] => 77dfb83b1510bd86fb2401e92e7d9c58
[customers_host_address] => adsl-71-145-133-60.dsl.austtx.sbcglobal.net
[cartID] =>
[cart] => shoppingcart Object
(
[observers] => Array
(
)
[contents] => Array
(
[27] => Array
(
[qty] => 1
)
)
[total] => 50
[weight] => 45
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationhistory Object
(
[observers] => Array
(
)
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[1] => Array
(
[page] => product_info
[mode] => NONSSL
[get] => Array
(
[cPath] => 1_5
[products_id] => 27
[action] => add_product
)
[post] => Array
(
)
)
[2] => Array
(
[page] => shopping_cart
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[3] => Array
(
[page] => checkout_shipping
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[4] => Array
(
[page] => checkout_payment
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[5] => Array
(
[page] => checkout_confirmation
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[6] => Array
(
[page] => checkout_process
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => MXN
[today_is] => 2008-10-16
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 71.145.133.60
[new_products_id_in_cart] =>
[valid_to_checkout] => 1
[cart_errors] =>
[customer_id] => 2
[customer_default_address_id] => 2
[customers_authorization] => 0
[customer_first_name] => Ernesto
[customer_last_name] => Marquez
[customer_country_id] => 223
[customer_zone_id] => 57
[sendto] => 2
[payment] => paypaldp
[shipping] => Array
(
[id] => item_item
[title] => Per Item (Best Way)
[cost] => 2.5
)
[billto] => 2
[cot_gv] => 0
[comments] =>
[paypal_ec_markflow] => 1
)
--------------------------------------------------------------------
I have tested with both, an US Credit Card and a Mexican Credit Card with the exact same results!
If someone has come across this issue with any foreign currency and know a fix or can recommend something... PLEASE HELP!!
Thanks in advance
Ernesto
Sageplan
Bookmarks