News:

Looking for documentation? Take a look on our wiki

Main Menu

Re-direct user back to home page after paypal payment

Started by Jude, May 27, 2014, 19:02:01 PM

Previous topic - Next topic

Jude

Hello,

For payment processing we are using "VM -Payment PayPal" plugin. We have a project requirement where in I need to re-direct user back to site's home page after user completes paypal payment.

Kindly let me know whether it's possible and how to implement the same.

Thank You in Advance!

Regards,
Jude

GJC Web Design

Probably this one in plugins/vmpayment/paypal/paypal/helpers/paypalstd.php ~ line 241 if your using the standard Paypal method

$post_variables['notify_url'] = JURI::root() .  'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component' . '&lang='.vRequest::getCmd('lang','') ;
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


alatak

Hello
It is not that one.:$post_variables['notify_url'] = JURI::root() .  'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component' . '&lang='.vRequest::getCmd('lang','') ;


it is this one:
$post_variables['return'] =  JURI::root().'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $this->order['details']['BT']->order_number . '&pm=' . $this->order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . vRequest::getInt('Itemid' ). '&lang='.vRequest::getCmd('lang','')  ;