Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Currency switches to USD

    Hi Helping Angels,

    Status: Searched but couldnt find the answer
    Version: v1.3.9h
    Switch To Default Language Currency: true
    Currencies: TRL (my local one -default-) and USD
    Languages: Turkish (default) and English (My store is in only Turkish, users have no option of picking another language. i use english to see original zen cart info)

    Here is the problem:
    I just want to use my own currency. Not another one including USD. Everything is okey till after step3 where the customer will fill his/her credit card information. At that step, it shows only two parameters (Current purchase and Item total) and -unfortunately- in USD.

    I deleted the USD currency from Localization/Currencies and then i got the following problem:
    "An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. (10401) 10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid."

    My Paypal default curreny is TRL either and i set my Turkish.php:
    define('LANGUAGE_CURRENCY', 'TRL');

    Please help me. I want to operate with only my local currency.

    Note: I found a solution in a thread but at that configs my currency doesnt exist.

  2. #2
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    Dear DrByte and all other experienced zenners,

    Can u tell me if it is possible to shop only with Turkish Lira. I have struggled for 3 weeks and couldnt find a solution to that 10401 error.

    U may think i asked this question before i search but, i almost memorise all thread about 10401 after search. But i couldnt find the answer.

    if i cannot use Turkish Lira, i just want to give up. But i dont even know if its possible or not.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Currency switches to USD

    You can use ANY "official" currency you like (see oanda.com for a good list of currencies and their ISO codes).

    You set your currency options in ADMIN >>> LOCALISATION >>> CURRENCIES.

    In your case, you would need to click the NEW CURRENCY button and add Turkish Lira to the list.

    The ISO codes for Turkish Lira are:

    Turkish NEW Lira - TRY
    Turkish OLD Lira - TRL

    After you have inserted whatever lira you want to use, giving it a value of 1.000000000 make it the DEFAULT currency. Then do a CURRENCY UPDATE.

    you can also REMOVE currencies you don't want. BUT... your payment processor may require you to have USD in your system...
    20 years a Zencart User

  4. #4
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    Quote Originally Posted by schoolboy View Post
    You can use ANY "official" currency you like (see oanda.com for a good list of currencies and their ISO codes).

    You set your currency options in ADMIN >>> LOCALISATION >>> CURRENCIES.

    In your case, you would need to click the NEW CURRENCY button and add Turkish Lira to the list.

    The ISO codes for Turkish Lira are:

    Turkish NEW Lira - TRY
    Turkish OLD Lira - TRL

    After you have inserted whatever lira you want to use, giving it a value of 1.000000000 make it the DEFAULT currency. Then do a CURRENCY UPDATE.

    you can also REMOVE currencies you don't want. BUT... your payment processor may require you to have USD in your system...
    Dear schoolboy,

    i really thank for ur reply.

    i use paypal checkout, so i used TRY because, Paypal accepts Turkish Lira and it uses TRY code in their system.

    i have done everything u mentioned about adding a currency and updating currency. There is no problem on that.

    in my "currencies" section, there is only TRY. So i get that 10401 error mentioned above. When i add USD to "currencies", although my default currency is set to TRY in "turkish.php", on the last step of payment, it switches the amount to USD. But i have nothing to do with USD.

    you said:
    Quote Originally Posted by schoolboy View Post
    BUT... your payment processor may require you to have USD in your system...
    but my payment processor (paypal) accepts Turkish Lira.

    what can be the problem, please help.

    PS: As u understand, i just want to use Turkish as language and Turkish Lira as currency. So what will be the "Switch To Default Language Currency" section? True or false. I ve tried both. Nothing has changed

  5. #5
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    Here is the log file:

    Jan-31-2012 03:24:06 (1328005446)

    getLineItemDetails 1
    Not using default currency. Thus, no line-item details can be submitted.

    =================================


    Jan-31-2012 03:24:06 (1328005446)

    ec_step1 - 1
    Checking to see if we are in markflow
    cart contents:
    physical

    NOTE: $this->showPaymentPage = 0

    Customer ID: 1

    Session Data: Array
    (

    [securityToken] => 4fe61d24afcfedf3009fee44366b9b14

    [customers_host_address] => xx.xxx.xx.zzz.static.ttnet.com.tr

    [cartID] => 20047

    [cart] => shoppingCart Object

    (

    [contents] => Array

    (

    [41] => Array

    (

    [qty] => 1

    )


    )


    [total] => 0.0118

    [weight] => 180

    [cartID] => 20047

    [content_type] => physical

    [free_shipping_item] => 0

    [free_shipping_weight] => 0

    [free_shipping_price] => 0

    )


    [check_valid] => true

    [language] => turkish

    [languages_id] => 2

    [languages_code] => TR

    [currency] => TRY

    [today_is] => 2012-01-31

    [updateExpirations] => 1

    [session_counter] => 1

    [customers_ip_address] => xx.xxx.xx.zzz

    [customer_id] => 1

    [customer_default_address_id] => 1

    [customers_authorization] => 0

    [customer_first_name] => Tek

    [customer_last_name] => Xarkan

    [customer_country_id] => 215

    [customer_zone_id] => 190

    [valid_to_checkout] => 1

    [cart_errors] =>

    [sendto] => 1

    [payment] => paypalwpp

    [shipping] => Array
    (

    [id] => flat_flat

    [title] => Standart kargo ücreti (Standart)

    [cost] => 0.01
    )


    [billto] => 1

    [cot_gv] => 0

    [comments] =>

    [paypal_ec_markflow] => 1

    )


    =================================


    Jan-31-2012 03:24:06 (1328005446)

    ec-step1-addr_check
    cart content is not all virtual (or customer is not logged in) ... therefore will be submitting address details

    =================================


    Jan-31-2012 03:24:06 (1328005446)

    getOverrideAddress - 1
    Now in markflow mode.
    SESSION[sendto] = 1

    =================================


    Jan-31-2012 03:24:06 (1328005446)

    getOverrideAddress - 2
    $address_arr->fields = Array

    (

    [entry_firstname] => Tex

    [entry_lastname] => Xarkan

    [entry_company] =>

    [entry_street_address] => My Street

    [entry_suburb] => Yenibosna

    [entry_city] => Bahcelievler

    [entry_postcode] => 34194

    [entry_country_id] => 215

    [entry_zone_id] => 190

    [entry_state] =>

    [zone_code] =>

    [countries_iso_code_2] => TR

    )


    =================================


    Jan-31-2012 03:24:06 (1328005446)
    ec-step1-addr_check2
    $address_error = true because zone_code is blank.

    =================================


    Jan-31-2012 03:24:06 (1328005446)
    ec-step1-addr_check2
    $address_error = true because countries_iso_code_2 is blank.

    =================================


    Jan-31-2012 03:24:06 (1328005446)
    ec-step1-addr_check3
    address details from override check:Array

    (

    [entry_firstname] => Tex

    [entry_lastname] => Xarkan

    [entry_company] =>

    [entry_street_address] => My Street

    [entry_suburb] => Yenibosna

    [entry_city] => Bahcelievler

    [entry_postcode] => 34194

    [entry_country_id] => 215

    [entry_zone_id] => 190

    [entry_state] =>

    [zone_code] =>

    [countries_iso_code_2] => TR

    )


    =================================


    Jan-31-2012 03:24:06 (1328005446)

    ec_step1 - 2 -submit
    Array

    (

    [CURRENCY] => USD

    [PAYMENTACTION] => Sale

    [ALLOWNOTE] => 1

    [SOLUTIONTYPE] => Sole

    [LANDINGPAGE] => Billing

    [EMAIL] => xxx######################

    [SHIPTOPHONENUM] => 1234567890

    [AMT] => 0.00

    [RETURNURL] => .../ipn_main_handler.php?type=ec

    [CANCELURL] => ...main_page=checkout_shipping&ec_cancel=1

    )


    =================================


    Jan-31-2012 03:24:09 (1328005449)

    termEC-1
    Killed the session vars as requested

    =================================


    Jan-31-2012 03:24:09 (1328005449)

    termEC-2
    BEFORE: $this->showPaymentPage = 0
    Token Data:

    =================================


    Jan-31-2012 03:24:10 (1328005450)

    termEC-3
    AFTER: $this->showPaymentPage = 0

    =================================


    Jan-31-2012 03:24:10 (1328005450)

    termEC-8
    $this->showPaymentPage NOT true, and NO custom page selected ... using SHIPPING as default

    =================================


    Jan-31-2012 03:24:10 (1328005450)

    termEC-10
    Redirecting to checkout_shipping - Stack: checkout_shipping
    Message: An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. (10401) 10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid.
    Session Data: Array

    (

    [securityToken] => 4fe61d24afcfedf3009fee44366b9b14

    [customers_host_address] => xx.xxx.xx.zzz.static.ttnet.com.tr

    [cartID] => 20047

    [cart] => shoppingCart Object
    (

    [contents] => Array

    (

    [41] => Array

    (

    [qty] => 1
    )


    )


    [total] => 0.0118

    [weight] => 180

    [cartID] => 20047

    [content_type] => physical

    [free_shipping_item] => 0

    [free_shipping_weight] => 0

    [free_shipping_price] => 0

    )


    [navigation] => navigationHistory Object

    (

    [path] => Array

    (

    [0] => Array

    (

    [page] => login

    [mode] => NONSSL

    [get] => Array

    (
    [action] => process

    )


    [post] => Array

    ()


    )


    [1] => Array

    (

    [page] => index

    [mode] => NONSSL

    [get] => Array

    (

    [type] => ec

    [markflow] => 1

    [clearSess] => 1

    [stage] => final

    )


    [post] => Array

    (

    )


    )

    )


    [snapshot] => Array

    (

    )


    )


    [check_valid] => true

    [language] => turkish

    [languages_id] => 2

    [languages_code] => TR

    [currency] => TRY

    [today_is] => 2012-01-31

    [updateExpirations] => 1

    [session_counter] => 1

    [customers_ip_address] => xx.xxx.xx.zzz

    [customer_id] => 1

    [customer_default_address_id] => 1

    [customers_authorization] => 0

    [customer_first_name] => Tex

    [customer_last_name] => Xarkan

    [customer_country_id] => 215

    [customer_zone_id] => 190

    [valid_to_checkout] => 1

    [cart_errors] =>

    [sendto] => 1

    [payment] => paypalwpp

    [shipping] => Array

    (

    [id] => flat_flat

    [title] => Standart kargo ücreti (Standart)

    [cost] => 0.01

    )


    [billto] => 1

    [cot_gv] => 0

    [comments] =>

    [messageToStack] => Array

    (

    [0] => Array

    (

    [class] => checkout_shipping

    [text] => An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. (10401) 10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid.

    [type] => error

    )


    )


    )


    =================================

  6. #6
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    This is the other log file:
    2012-01-31 03:45:52

    -------------------

    (live transaction) -->
    https://api-3t.paypal.com/nvp
    Request Headers:
    Array

    (

    [0] => Content-Type: text/namevalue

    [1] => X-VPS-Timeout: 90

    [2] => X-VPS-VIT-Client-Type: PHP/cURL

    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP

    [4] => X-VPS-VIT-Integration-Version: 1.5.0
    )


    Request Parameters: {SetExpressCheckout}
    Array
    (

    [PAYMENTACTION] => Sale

    [ALLOWNOTE] => 1

    [LANDINGPAGE] => Billing

    [ADDROVERRIDE] => 1

    [SHIPTONAME] => Tek Xarkan

    [SHIPTOSTREET] => My Street
    [SHIPTOSTREET2] => Yenibosna

    [SHIPTOCITY] => Bahcelievler

    [SHIPTOZIP] => 34194

    [SHIPTOSTATE] => 34

    [SHIPTOCOUNTRYCODE] => TR

    [EMAIL] => xxx######################

    [SHIPTOPHONENUM] => 1234567890

    [AMT] => 0.00

    [RETURNURL] => ...ipn_main_handler.php?type=ec

    [CANCELURL] => ...main_page=checkout_shipping&ec_cancel=1

    [PAGESTYLE] => Primary

    [METHOD] => SetExpressCheckout

    [CURRENCYCODE] => USD

    [USER] => xxx_api1.yyy.com

    [PWD] => ****************

    [VERSION] => 60.0

    [SIGNATURE] => ****************************************************
    )



    Response:
    Array

    (

    [TIMESTAMP] => 2012-01-31T10:45:52Z

    [CORRELATIONID] => 2e1d98fa57fa

    [ACK] => Failure

    [VERSION] => 60.0

    [BUILD] => 2515991

    [L_ERRORCODE0] => 10401

    [L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.

    [L_LONGMESSAGE0] => Order total is invalid.

    [L_SEVERITYCODE0] => Error

    [CURL_ERRORS] =>
    )


    SetExpressCheckout, Elapsed: 3029ms -- Failure

    TIMESTAMP=2012%2d01%2d31T10%3a45%3a52Z&CORRELATIONID=2e1d98fa57fa&ACK=Failure&VE RSION=60%2e0&BUILD=2515991&L_ERRORCODE0=10401&L_SHORTMESSAGE0=Transaction%20refu sed%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20mes sages%20for%20details%2e&L_LONGMESSAGE0=Order%20total%20is%20invalid%2e&L_SEVERI TYCODE0=Error&CURL_ERRORS=

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Currency switches to USD

    Have you contacted PayPal?
    20 years a Zencart User

  8. #8
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    Yes, waiting for an answer!

  9. #9
    Join Date
    Nov 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Currency switches to USD

    Dear schoolboy (or any other experinced zenner),

    What to understand from those log files? i see some "USD"s there, maybe i have some option to change it.

    What do u say?

 

 

Similar Threads

  1. Cybersource testing invalid currency 'usd'
    By fyzer in forum Addon Payment Modules
    Replies: 8
    Last Post: 27 Oct 2010, 01:52 AM
  2. Currency Question - CAD/USD
    By janissaire in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Apr 2010, 10:05 PM
  3. PayPal in USD and other currency (default)?
    By Preben in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Feb 2007, 07:45 PM
  4. USD currency only in orders
    By wickedklown in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 17 Oct 2006, 05:30 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR