VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Jude on May 27, 2014, 19:02:01 PM

Title: Re-direct user back to home page after paypal payment
Post by: Jude on May 27, 2014, 19:02:01 PM
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
Title: Re: Re-direct user back to home page after paypal payment
Post by: GJC Web Design on May 27, 2014, 20:33:38 PM
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','') ;
Title: Re: Re-direct user back to home page after paypal payment
Post by: Jude on May 29, 2014, 08:21:37 AM
Thank You!
Title: Re: Re-direct user back to home page after paypal payment
Post by: alatak on June 04, 2014, 18:21:07 PM
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','')  ;