cancel.php alternative

Discussion in 'Customization & add-ons' started by ronniead, Jun 14, 2009.

  1. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118
    Hey everyone,

    When a user presses "cancel" in paypal, it takes them to cancel.php, which comes up with an error message:

    The word "sign-up" is a url which takes them to signup.php which displays every single product (which I don't want).

    Is there a way to change the destination URL of "sign-up" to the original signup page which has the the same price_group defined that the user originall selected?

    Thanks,

    Ronnie
  2. cooliohiten

    cooliohiten Member

    Joined:
    May 1, 2009
    Messages:
    124
    how to redirect to main site and not cancel.php?

    Dear All,

    Is there a fix to this problem? I'm experiencing the same thing.

    When a user ends up on Paypal and clicks 'Cancel and return to mysite' they get directed to the following page:

    http://www.mysite.com/amember/cancel.php?payment_id=139

    This has the following message:

    Payment Failed

    An error occured while handling your payment.
    Please go back to the sign-up page and try again.

    Does anyone know how to change the settings so that customers are redirected to www.mysite.com/amember after clicking Cancel in PayPal?

    Best wishes,

    ch
  3. 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 line:
    PHP:
    'cancel_return' => "$config[root_url]/cancel.php?payment_id=$invoice",
    There are two places in above file where you need to do this.

Share This Page