News:

Support the VirtueMart project and become a member

Main Menu

Paypal redirection- Cancel not working!

Started by dirdi, December 15, 2014, 18:53:18 PM

Previous topic - Next topic

dirdi

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

hhtmp88

Me too!
-> can some Guru give an hand on this issue?

Thanks for any kind of help!
JMY(晉明夷)
http://mfyoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
http://yogajm.com -- YogaJM 晉明瑜伽
http://jinmy.me -- JMY 晉明日誌
http://jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

alatak

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', '');


dirdi

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.