Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done 1.3.5] paypal and non-Paypal-Currencies -- ie: $NZ

[Done 1.3.5] paypal and non-Paypal-Currencies -- ie: $NZ

Locked

Started by exportgold on 4 Aug 2006, 1:23 PM · Views: 9,510

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
4 Aug 2006, 1:23 PM
#1
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #1 by exportgold

now i new paypal didnt accept $NZ but then any currency put into it just gets converted to $US by default so i didnt think it would be too bigger prob having customers get to the payment in paypal and finding they hafta then pay in $US. but what ive found is that to add to all that, it doesn't work if i have the default currency set in zencart to $NZ no matter no matter what currency u pay in or paypal auto converts to.

so i can have paypal up and going but only if i expect all my customers to shop and pay in basicaly anything but $NZ. so being a NZ site looking at mostly NZ customers, i think im kinda stuffed as far as having paypal as another option.

can anyone help?

jono

4 Aug 2006, 2:32 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

a bugfix is in the making...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Aug 2006, 2:37 PM
#3
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #3 by exportgold

brilliant thats just what we need. we well more than hapily test anything as needed.

thanks

jono

5 Aug 2006, 11:08 AM
#4
theodin avatar

theodin

New Zenner

Join Date:
Sep 2005
Posts:
26
Plugin Contributions:
0

Post #4 by theodin

Jono did some testing and found this:
default currency: payment made in: result:
USD USD OK
USD AUD OK
AUD AUD OK
USD NZD (then converted by paypal to USD) FAIL
NZD NZD (then converted by paypal to USD) FAIL
NZD USD FAIL
NZD AUD FAIL

If we can help you test any patches we have a complete test scenario on another isp we can destroy as much as necessary to sort this thing out. FTP to the site folders and DB access to the ZC database can be made available to you if you would like. Also a complete from scratch installation is still sitting there which we can mess with too.

Oh and one more thing: THANKS!!!!

5 Aug 2006, 6:00 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

PayPal vs non-PayPal-supported Currencies.

When an online store uses a currency that's not one of PayPal's default currencies, there is a bug that prevents the IPN from being accepted due to purchase-amount-mismatch.

The attached ZIP contains the updated files which can be added to a v1.3.0.2 install in order to make IPN-acceptance work properly in these circumstances.

THIS SHOULD ONLY BE INSTALLED ON A v1.3.0.2 SITE!

This attachment has been removed since the fix has been integrated in the v1.3.5 (and newer) release.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Aug 2006, 4:06 AM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

The patch is only appropriate for v1.3... if you're using 1.2.6 and it's working for you, then you don't need the patch.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Aug 2006, 9:33 AM
#8
ronwong avatar

ronwong

Zen Follower

Join Date:
Jan 2006
Posts:
223
Plugin Contributions:
0

Post #8 by ronwong

DrByte:

The patch is only appropriate for v1.3... if you're using 1.2.6 and it's working for you, then you don't need the patch.
i understand that, but its so far so good. so just leave it. I am very hesitant to switch to 1.3 because my theory is if it works, just leave it.

6 Aug 2006, 1:05 PM
#9
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #9 by exportgold

mate that patch is a lifesaver!! worked perfectly!! im so happy and fixed it so quickly. its bloody brilliant. expect a couple a donations to be comming ur way.

thanks heaps!!!!

jono

6 Aug 2006, 1:20 PM
#10
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #10 by exportgold

having said all that there was 1 small thing dont no if its anything but hopefully i explain it properly...

i did 2 tests, second one working with no flaws. but with the first 1 the gift cert balance was to low and i tryed putting in more agenst the order than i had in the balance. i then realised what id dun and put in a lesser amount and ended up paying a few dollars more than i normaly would to test it (but boo who).

anyway, the thing that was odd was that once i when through the check out and when through paypal, insted of being redirected back to the "thank u 4 your order" i was sent to the step 2 of 3 order page and the adress of that page came up like this...

udontwananothenameofmysite.co.nz/store/index.php?main_page=checkout_payment&credit_class_error_code=ot_gv&credit_class_error=It+appears+that+the+amount+you+have+tried+to+apply+and+your+Gift+Certificate+balance+do+not+match.+Please+try+again[/url]

so the order was still processed and ended up in the ipn and everything as it should it should, was just odd to be redirected to that page. the second time i did it (and had no issues with my credit on the site) i got back to the "thank you" page ok so i duno if its a 1 off or what.

jono

6 Aug 2006, 1:22 PM
#11
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #11 by exportgold

someone tell if that made no sence

6 Aug 2006, 4:31 PM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

Just a comment on this statement:> exportgold:

and ended up paying a few dollars more than i normaly would to test it (but boo who).
If you do your paypal testing using two paypal accounts, then you can very easily refund the test transaction and lose no money in the process.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Aug 2006, 4:33 PM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

exportgold:

udontwananothenameofmysite.co.nz/store/index.php?main_page=checkout_payment&credit_class_error_code=ot_gv&credit_class_error=It+appears+that+the+amount+you+have+tried+to+apply+and+your+Gift+Certificate+balance+do+not+match.+Please+try+again
This is something related to the gift cert module... will make a note to take a look and see if there are any problems in it.
As you said, however, it appears to function fine regardless, and might be just related to the "user error" you referred to in your post.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Aug 2006, 4:34 PM
#14
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #14 by exportgold

yea thats what ive ben doing. its pretty bloody good that when u issue urself a refund paypal refunds the fees as well so it really does end up costing you nothing.

6 Aug 2006, 4:38 PM
#15
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #15 by exportgold

thats what i thought to but thought id mention it just incase. thanx heaps 4 all your help!!

14 Aug 2006, 4:42 PM
#16
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #16 by exportgold

interesting thing happening now, we put our ssl cert in and everything paypal still goes ok. but when you have clicked the "pay" button in paypal and are redirected, back to our thank you for your order page, you get the order number of the last non-paypal order come up insted of the auctual one comes up on that page, along with what that person ordered to ask them if they want notification of updates to the respective products.

the emails are still ok and have the correct order number in them, same with the order details in the admin and ipn. so that is the only thing that goes rong.

also there is now a delay of 5-10 seconds on getting the order confermation email from our site. the paypal 1 is still instant but both emails use to come at more or less the same time, sometimes the 1 from our site would even beat the paypal 1 but they at least came within half a second of eachother other(this is using my hotmail email and msn messenger to time the receipt of the emails)

my theory is the problem and delay in getting the email from our site is becase of course paypal is now comming back through a secure page to arrive at the thank you page.

any help in solving this so the return page comes up with the right order number would be apreciated.

thanks

jono

28 Aug 2006, 7:45 AM
#17
peter_homann avatar

peter_homann

Zen Follower

Join Date:
Jun 2006
Location:
Melbourne, VIC
Posts:
106
Plugin Contributions:
0

Post #17 by peter_homann

Hi Dr Byte,

I had exactly the same problem. I decided to have paypal accept all payments in AUD only. When orders are made in USD, The order does not show up in Zencart Admin.

I tried changing the Paypal accepted currency in ZC-Admin-modules-Payment-Paypal back to 'selected currency' and it worked.

I'd like to only accept the payments in AUD. Will the Paypal patch fix work for ZC 1.3.0.1?

Cheers,

Peter.

28 Aug 2006, 7:49 AM
#18
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #18 by exportgold

so u didnt have the problem b4 you put ur ssl cert in but u do now is that right?

28 Aug 2006, 7:59 AM
#19
exportgold avatar

exportgold

New Zenner

Join Date:
Jun 2006
Location:
NZ
Posts:
12
Plugin Contributions:
0

Post #19 by exportgold

sorry your talking about the initial proplem. all you need to do is change the setting in your paypal account so it auto converts the currency to AU$. that would be the easiers way anyway

28 Aug 2006, 9:57 AM
#20
drbyte avatar

drbyte

Sensei

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

Post #20 by drbyte

Peter, what is the "default currency" in your Zen Cart setup?
and in your PayPal.com profile?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.