VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dirdi on December 15, 2014, 18:53:18 PM

Title: Paypal redirection- Cancel not working!
Post by: dirdi on December 15, 2014, 18:53:18 PM
Hello ,

I only have paypal Express checkout set on my site and is working well except :

user cant redirect back to my site once on the paypal site. For example you want to cancel payment or return to website because you want to buy more products you are always redirect to paypal page.
I contacted paypal but they say is a developer issue:

" You must place this variables in the CURL string that your application submits to PayPal.
This must be coded in the source code of your application.
RETURNURL= http://domain/index.php?action=ECreturn
CANCELURL= http://domain/index.php?action=ECcancel  "

Where and how should I update?
Thank you

Virtuemart version 3.0.0
Title: Re: Paypal redirection- Cancel not working!
Post by: hhtmp88 on December 25, 2014, 18:24:00 PM
Me too!
-> can some Guru give an hand on this issue?

Thanks for any kind of help!
Title: Re: Paypal redirection- Cancel not working!
Post by: alatak on January 03, 2015, 19:16:06 PM
Hello
Those URLS are already in the code. You d not need to set them:
$post_variables['RETURNURL'] = JURI::root() . 'index.php?option=com_virtuemart&view=plugin&type=vmpayment&name=' . $this->_method->payment_element . '&action=SetExpressCheckout&SetExpressCheckout=done&pm=' . $this->_method->virtuemart_paymentmethod_id;
$post_variables['CANCELURL'] = JURI::root() . 'index.php?option=com_virtuemart&view=plugin&type=vmpayment&name=' . $this->_method->payment_element.'&action=SetExpressCheckout&SetExpressCheckout=cancel&pm=' . $this->_method->virtuemart_paymentmethod_id.'&Itemid=' . vRequest::getInt('Itemid') . '&lang=' . vRequest::getCmd('lang', '');

Title: Re: Paypal redirection- Cancel not working!
Post by: dirdi on February 12, 2015, 16:27:21 PM
thank you for the response but I have to have some action on this pages because they dont work correctly;
sometimes they give a pop up notice of cancelation and sometimes dont... also I want to personalize this pages, for the moment the url is /component/virtuemart/cart?Itemid=0 ...I want to publish some modules and futures but I cant.
I have a Cart menu item but that dont seem to help too much.