Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default 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:
    Code:
            $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
    By replacing that one line with these several lines:
    Code:
            $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.

  3. #3
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

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

    Quote Originally Posted by iCarp View Post
    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.

  6. #6
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

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

  8. #8
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

    Default 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/

  9. #9
    Join Date
    Feb 2009
    Location
    sunny southern Ontario
    Posts
    22
    Plugin Contributions
    0

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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

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

 

 

Similar Threads

  1. v138a Requiring account creation using when using Paypal Express?
    By Zeebra in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 28 Oct 2013, 10:59 PM
  2. PayPal Express AND Gift Certificates -- can this be accelerated?
    By tfortan in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 13 Feb 2010, 03:20 AM
  3. PayPal transactions fails when purchasing Gift Certificates only
    By shocker in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 17 Jan 2009, 02:28 PM
  4. Error when using paypal express checkout...
    By webopt in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 4 Sep 2007, 12:11 AM
  5. Gift Certificates part payment not showing on invoice when using Bank Transfer mod
    By gabbytwin in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Apr 2007, 04:59 AM

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