cancelled PayPal transaction returns incorrectly

Discussion in 'Payments processing' started by nc3man, Mar 25, 2011.

  1. nc3man

    nc3man aMember Pro Customer

    Joined:
    Sep 30, 2010
    Messages:
    42
    We are testing our aMember setup before we go live and I noticed some funny behavior. If you login as a registered member, add a new subscription, get to the PayPal screen, and then wish to back out - you get "Payment Failed - An error occured while handling your payment. Please go back to the sign-up page and try again"

    The only option is to return to the original "Sign-Up" dialogue, as if you were registering for the first time. I imagine that when the PayPal screen is brought up that aMember provides a return address for PayPal to redirect should the user back out of the payment. I would prefer that to be "Your Membership Information > Add/Renew Subscription" which is where the user launched PayPal.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit /amember/plugins/payment/paypal_r/paypal_r.inc.php and change this:
    PHP:
    'cancel_return' => "$config[root_url]/cancel.php?payment_id=$invoice",
    to
    PHP:
    'cancel_return' => "$config[root_url]/member.php",
    There should be two places where you need to make such edit.
  3. nc3man

    nc3man aMember Pro Customer

    Joined:
    Sep 30, 2010
    Messages:
    42
    Thanks much. Easily done.

Share This Page