Forums / PayPal Express Checkout support / Gift certificates showing as paid by C.O.D when using PayPal Express

Gift certificates showing as paid by C.O.D when using PayPal Express

Locked

Started by icarp on 25 Nov 2009, 8:12 PM · Views: 2,273

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Nov 2009, 8:12 PM
#1
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Gift certificates showing as paid by C.O.D when using PayPal Express

Hello,

I've just switched one of our sites from OSCommerce to Zen Cart. A bit of a learning experience, but with heavy use of the 'search' function here I've managed to get everything sorted out except for one little problem.

Our only payment options are PayPal Express and C.O.D. PayPal is working fine unless I add a gift certificate to my cart. If I do that and click on the PayPal Express button the order comes up as 'Payment Method C.O.D.' after I'm returned to our site and the confirmation page. I am not given a payment option during this process.

If I add a gift certificate and choose 'Go to Checkout' everything works as it should- PayPal is listed as the only option and the purchase is processed through our PayPal account.

Naturally, this is a fairly serious problem (recognising, of course, that my problems here are no more or less urgent than any other person's). Any assistance in resolving it would be greatly appreciated.

25 Nov 2009, 8:49 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

Try making the following file edit:

/includes/classes/payment.php
Change line 74:$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];By replacing that one line with these several lines:```
$paymentClass = new $include_modules[$i]['class'];
if ($paymentClass->enabled)
{
$GLOBALS[$include_modules[$i]['class']] = $paymentClass;
}

.
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.

25 Nov 2009, 9:22 PM
#3
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

Thank you very much for the prompt reply. I've made the suggested change. What happens now is that when I return from PayPal I am at Step 2 with no payment choices but gift certificate and discount coupon. If I click to continue, I get the same page plus a big red advisory telling me to select a payment method.

I suspect that most customers will click on the PayPal Express button rather than 'continue checkout'. After all, that's one of the advantages to having Express (that and the ability to capture payments). So I hope that there's a solution.

As an aside, I'm very pleased with the switch so far. It's great to see so much clear and accurate information on the Zen Cart site, as well as add-ons that actually work.

26 Nov 2009, 1:41 PM
#4
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

I still haven't found a solution to this problem. Applying the change suggested by Dr Byte simply prevents the customer from paying for the order, since the only options given when they are returned to the payment page are gift certificate and discount voucher.

This problem only occurs when a gift certificate is added and the PayPal Express button is clicked, as I mentioned above. My understanding is that the gift certificate module is meant to prevent C.O.D. payment and I can't figure out why it is defaulting to that method of payment even though the customer is directed to PayPal and returned to our site.

I apologise for bumping this thread, and hope that I"m not out of line, but I spent much of last evening and this morning trying to find a solution. We definitely need both modules to be working on our site, and I'm a bit surprised that we're having this problem. Given that they're part of the standard install package I'd assumed that they would play nicely together.

26 Nov 2009, 3:38 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

iCarp:

We definitely need both modules to be working on our site, and I'm a bit surprised that we're having this problem. Given that they're part of the standard install package I'd assumed that they would play nicely together.
Understood.
I'm having difficulty recreating the problem though, so can't fix it until I can trigger it consistently.

.
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.

27 Nov 2009, 1:37 PM
#6
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

I appreciate your efforts. Indeed, many of your other posts helped me during the switch over to Zen Cart this week.

We have two add-ons:

-Canada Post
-SBA

Our payment and shipping modules:

-Canada Post
-local shop pick up

-PayPal Express
-C.O.D.

I've disabled C.O.D. for the time being (with it on, the PayPal site was telling me that payment would be through my account, but upon return to our site it was showing up, of course, as C.OD.). I've also discovered that PayPal Express doesn't consider local pick-up as the cheapest shipping option, so have had to disable the relevant Express option. As well, if I click on the Express button to pay for a gift certificate without first logging in a shipping charge is added.

All of the problems seem to revolve around the PayPal Express button.

28 Nov 2009, 6:34 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

Can you set up a test account on your site and send me a Gift Certificate to test the problem?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 Nov 2009, 8:26 PM
#8
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

Hello Kim,

Thanks for your offer. I can create and send certificates without a problem. The only problem is when a customer clicks on the PayPal Express button rather than the standard checkout button when buying a gift certificate.

I have set up a test install and am getting the same results there:

monstermaize.com/zencart/

10 Dec 2009, 5:11 PM
#9
icarp avatar

icarp

New Zenner

Join Date:
Feb 2009
Location:
sunny southern Ontario
Posts:
22
Plugin Contributions:
0

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

So, it seems that PayPal Express doesn't necessarily work as advertised if other payment modules are activated. But we do need both PayPal Express and C.O.D.

As I've had the problem described at the top of this thread on both a live install and on a test install, it seems to be something inherent in Zen Cart. The Canada Post add-on is not a problem (the only add-on we have that could be involved), but the C.O.D. module is. Disabling C.O.D. leads to the PayPal Express button working as it should and payment comes up back at our site as PayPal rather than C.O.D.

I'm surprised that these two modules, included in the standard package, don't seem to work together. But my main desire is to solve the problem. Over the past few weeks I've posted this thread, and contacted two individuals who advertise their services (one of whom had responded to our post in the 'commercial help wanted' section). Neither has gotten back to me. I understand support here is on a volunteer basis, am very grateful for all that I learned here during the switch from OSC, but am a bit stymied now. Although this might not be the right spot for it, I'd appreciate any assistance in finding someone to hire to help us with this problem and a couple of mods that we want adapted for Zen Cart. Sadly, my efforts to find someone on my own don't seem to be working.

15 Jan 2010, 10:21 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Gift certificates showing as paid by C.O.D when using PayPal Express

Just an update.
I've been able to replicate the problem, as well as the symptoms you reported after implementing the partial fix I proposed earlier.

While I don't have a consolidated fix for you to apply to v1.3.8a, I can confirm that the problem appears to be resolved in the upcoming v1.3.9.

.
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.