Zen Cart Logo
Forums / PayPal Website Payments Pro support / TWD currency in PayPal IPN - Website Payments Standard

TWD currency in PayPal IPN - Website Payments Standard

Locked

Views: 4,568

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
25 Feb 2010, 7:10 PM
#1
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

TWD currency in PayPal IPN - Website Payments Standard

Hi everyone,

I try to add a new currency (taiwan currency) to PayPal IPN - Website Payments Standard, and select it on the installation and set to direct to Taiwan Paypal. However, it directs to UK paypal, and its currency is USD. I want it to direct to taiwan paypal and use taiwan currency.

I added the new currency by following this link:

http://www.zen-cart.com/forum/showthread.php?t=146022

Could anyone please help me with it? :frusty:

Regards

Steve

25 Feb 2010, 7:17 PM
#2
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

I changed the code on paypal.php

From line 466

$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'Which currency should the order be sent to PayPal as? <br />NOTE: if an unsupported currency is sent to PayPal, it will be auto-converted to USD.', '6', '3', 'zen_cfg_select_option(array('Selected Currency', 'Only USD', 'Only AUD', 'Only CAD', 'Only EUR', 'Only GBP', 'Only CHF', 'Only CZK', 'Only DKK', 'Only HKD', 'Only HUF', 'Only JPY', 'Only NOK', 'Only NZD', 'Only PLN', 'Only SEK', 'Only SGD', 'Only THB'), ', now())");

To
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'Which currency should the order be sent to PayPal as? <br />NOTE: if an unsupported currency is sent to PayPal, it will be auto-converted to USD (or GBP if using UK account)<br /><strong>Default: Selected Currency</strong>', '6', '3', 'zen_cfg_select_option(array('Selected Currency', 'Only USD', 'Only AUD', 'Only CAD', 'Only EUR', 'Only GBP', 'Only CHF', 'Only CZK', 'Only DKK', 'Only HKD', 'Only HUF', 'Only JPY', 'Only NOK', 'Only NZD', 'Only PLN', 'Only SEK', 'Only SGD', 'Only THB', 'Only MXN', 'Only ILS', 'Only PHP', 'Only TWD', 'Only BRL', 'Only MYR'), ', now())");

Please tell me how to solve it?

Steve

25 Feb 2010, 7:27 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: TWD currency in PayPal IPN - Website Payments Standard

You need to also click Remove to remove the module, then click Install to re-install it so your changes take effect.

25 Feb 2010, 8:13 PM
#4
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

DrByte:

You need to also click Remove to remove the module, then click Install to re-install it so your changes take effect.

Dear DrByte,

I did. Otherwise, I won't be able to select the newly added currency.
I will try it again anyway and come back.

Steve

25 Feb 2010, 8:32 PM
#5
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

DrByte:

You need to also click Remove to remove the module, then click Install to re-install it so your changes take effect.

Dear DrByte,

I tried again, but it is still the same.

Steve

26 Feb 2010, 5:21 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: TWD currency in PayPal IPN - Website Payments Standard

  1. The link you posted above is where I already helped you do the same thing with the Express Checkout module, and you also adjusted it for the Pro module.

  2. The Express Checkout module is much more modern than the IPN/Standard module, so I'm puzzled about why you're even thinking about using the IPN module.

  3. As with the Express Checkout code changes, there are 2 sections of code to change for the IPN/Standard module, too. Your post above shows that you only did one of them, not both.

I strongly recommend that you use Express Checkout instead of IPN/Standard.

26 Feb 2010, 10:59 AM
#7
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

DrByte:

  1. The link you posted above is where I already helped you do the same thing with the Express Checkout module, and you also adjusted it for the Pro module.

  2. The Express Checkout module is much more modern than the IPN/Standard module, so I'm puzzled about why you're even thinking about using the IPN module.

  3. As with the Express Checkout code changes, there are 2 sections of code to change for the IPN/Standard module, too. Your post above shows that you only did one of them, not both.

I strongly recommend that you use Express Checkout instead of IPN/Standard.

Dear DrByte,

Thank for your help and your time.

I am new to Express Checkout module. I can use Express Checkout module as long as it is supported in Taiwan. Because Paypal Pro does NOT support in Taiwan.

I will try it again for Express Checkout module, and come back to report the result.

Thank you again.

Steve

26 Feb 2010, 1:56 PM
#8
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

Dear DrByte,

I installed PayPal Express Checkout (I removed Paypal IPN that has been installed, and install Express Checkout.
). However, an error occured when the botton of Check Out with PayPal is clicked.

The following error is displayed:

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.

The settings of Express Checkout is shown below:


Enable this Payment Module
True

Sort order of display.
0

Payment Zone
--none--

Set Order Status
Processing [2]

Set Unpaid Order Status
Pending [1]

Set Refund Order Status
Pending [1]

Express Checkout: Require Confirmed Address
No

Express Checkout: Select Cheapest Shipping Automatically
Yes

Express Checkout: Skip Payment Page
Yes

Express Checkout: Automatic Account Creation
Yes

Payment Action
Final Sale

Transaction Currency
Only TWD

PayPal Page Style
Primary

API Signature -- Username


API Signature -- Password


API Signature -- Signature Code


PayPal Mode
PayPal

Live or Sandbox
live

Debug Mode
Log and Email


Could you please shed light on this?

Thank you for your time and help in advance.

Steve

26 Feb 2010, 8:30 PM
#9
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: TWD currency in PayPal IPN - Website Payments Standard

DrByte:

  1. The link you posted above is where I already helped you do the same thing with the Express Checkout module, and you also adjusted it for the Pro module.

  2. The Express Checkout module is much more modern than the IPN/Standard module, so I'm puzzled about why you're even thinking about using the IPN module.

  3. As with the Express Checkout code changes, there are 2 sections of code to change for the IPN/Standard module, too. Your post above shows that you only did one of them, not both.

I strongly recommend that you use Express Checkout instead of IPN/Standard.

Dear DrByte,

I am wondering if you tell me how to change the IPN (Becaue Express checkout CANNOT work for me!) so that I can test it.

Thank you for your help.

Steve