Cancel order in PayPay

Discussion in 'Payment Systems' started by vida_evelyn, Dec 1, 2014.

Thread Status:
Not open for further replies.
  1. vida_evelyn

    vida_evelyn New Member

    Joined:
    Oct 10, 2014
    Messages:
    26
    When a user clicks on the PP link "Cancel and return to mysite.com", the link goes to mysite.com/amember/cancel.

    How do I change where the link goes? I want the link to go the particular product's order page, and/or the add/renew page which lists all the products?

    If not possible, then how do I edit the /cancel page?
    Last edited: Dec 1, 2014
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    There is not such options in aMember but you can edit file amember/application/default/plugins/payment/paypal.php
    and in code
    PHP:
    $a->cancel_return $this->getCancelUrl();
    replace $this->getCancelUrl() with anything you prefer.
  3. vida_evelyn

    vida_evelyn New Member

    Joined:
    Oct 10, 2014
    Messages:
    26
    Not familiar with php, but I can paste. What would I change this to?

    W0uld I change the CancelUrl() to CancelUrl(http://www.mysite.com/mypage).
    ??
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    For your example you need to replace code to this one
    PHP:
    $a->cancel_return 'http://www.mysite.com/mypage'
  5. vida_evelyn

    vida_evelyn New Member

    Joined:
    Oct 10, 2014
    Messages:
    26
    Thank you, Caesar -- works!
  6. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You are welcome!
Thread Status:
Not open for further replies.

Share This Page