Paypal Pro and Duplicate Charges

Discussion in 'Payments processing' started by timgrahl, Sep 24, 2010.

  1. timgrahl

    timgrahl New Member

    Joined:
    Jan 23, 2009
    Messages:
    7
    Hello, I am having an issue where people are being charged multiple times when signing up. The product is a recurring payment and using Paypal Pro. It seems like the people are submitting the payment and it is getting charged but never getting back to aMember because they still can't login.

    I have locked down the payment button via javascript so once it's submitted it can't be clicked again. Also, I have a warning to wait up to two minutes for it to process. The problem continues to happen. One person has been charged 7 times. I really doubt she submitted the payment 7 times.

    I did find that my IPN in Paypal was not setup correctly so I fixed that. Could that have caused this problem? Is there something else?
  2. timgrahl

    timgrahl New Member

    Joined:
    Jan 23, 2009
    Messages:
    7
    I believe I've tracked down this issue and it may be a bug in the aMember Paypal Pro payment plugin.

    This thread (http://amember.com/forum/showthread.php?t=10852) gave me a clue to what was going wrong.

    Basically, when someone submitted a payment, Paypal was returning a "SuccessWithWarning". From Paypal's docs this response "indicates a successful operation; however, there are messages returned in the response that you should examine". In my case, the message is a problem with the state field.

    Looking at the code for the Paypal Pro plugin, I saw that it is only checking for a response of "Success", not "Success" and "SuccessWithWarning". So, the person would submit the order, have a successful payment charged but aMember record it as a failed payment and kick them back to the credit payment page. The customer would then try again with the same response and over and over it goes... the person gets charged multiple times but aMember never records a successful charge.

    I have changed the code of the Paypal Pro plugin to look for "Success" AND "SuccessWithWarning" hoping this will fix the problem.

    Is this a bug in the code or not?
  3. eslpod

    eslpod New Member

    Joined:
    Aug 22, 2006
    Messages:
    8
    I'm having this problem as well. Just installed and started using the PP Pro plugin on Friday, and already 4 or 5 of our members have had this issue. Paypal is taking the money from their credit card, but not setting up a recurring payment for them.

    Jeff
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes this is a bug. Paypal PRO plugin was fixed and will be available in next version.
    Also by request in helpdesk.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @alexander: Is the fix contained in the 3.2.2 beta?
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    No. But it will be there when 3.2.2 will be released.
  7. bryceyoung

    bryceyoung aMember Pro Customer

    Joined:
    Apr 12, 2010
    Messages:
    9
    We just got over this issue. It was occurring for us when a user entered wrong information in the payment screen. Every time they entered a wrong zip and it had to be corrected they were charged. To get around the problem, we just set it so that we accept the card if the card#, exp date, and security number match. We haven't had a double charge since then. I am not the technical guy so hopefully this makes some sense.

    Bryce

Share This Page