How do I set up a custom optin page for redirecting users who click cancel button from the PayPal payment page after attempting to subscribe from the sign up page?
Good idea. 1 )create a new signup form in the v4.x forms editor. 2) hack the paypal plugin to give the cancel link to #1 url. (may be possible to set this in the paypal website setup page too- have to check) David
This is the code I can find in the paypal plugin related to cancel url code. PHP: It is only necessary to enable IPN in PayPal. If IPN is already enabled, it does not matterwhat exactly URL is specified. aMember will automatically let PayPal know to use aMember URL.CUT; } function getUserCancelUrl(Invoice $invoice) { return 'https://' . $this->domain . '?' . http_build_query(array( 'cmd' => '_subscr-find', 'alias' => $this->getConfig('business'), )); } public function getAdminCancelUrl(Invoice $invoice) { return 'https://' . $this->domain . '?' . http_build_query(array( 'cmd' => '_subscr-find', 'alias' => $this->getConfig('business'), )); } Where or How I have to configure my URL for redirecting on Payment cancel
Hi, I'm having exactly the same problem. I've defined a cancel transaction URL in PayPal and I've set up IPN to go to ...xxx.com/amember4/payment/paypal/ipn. But when I cancel a transaction in PayPal, I end up on an aMember page Payment Failed An error occured while handling your payment. Choose another payment processor and try again that is completely meaningless to the customer. I've created a comprehensive page in my Joomla system to handle cancelled transactions - and I'd like my customers to be sent to that page (i.e. the custom URL that I defined in PayPal for the product). I'm wondering whether the 'success' page will be the one I defined in PayPal, or whether the customer will end up on some random aMember page (with no menu structure and our familiar website layout). That won't look professional at all!
I believe this is the line in amembers plugin $a->cancel_return = $this->getCancelUrl(); This tells paypal where to redirect to on a cancelation during checkout. change to: $a->cancel_return = 'http://mysite.com/cancelurl'; David