get user id on payment process

  • Enrico
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #78138 by Enrico
get user id on payment process was created by Enrico
Hi, I need to create a "fake" payment plugin that simply redirect user on registration end to a third party payment platform that need only the user id just created.
I'm thinking to make a copy of the offline plugin and insert my redirect on processPayment function by replacing this line:

JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_osmembership&view=complete&Itemid=' . $Itemid, false, false));

Question: how can I get the user id before redirect call?
Thank you.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #78139 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic get user id on payment process
Hi Enrico

Use <?php echo $row->user_id; ?> you will get user_id of the subscriber

Regards,

Tuan

Please Log in or Create an account to join the conversation.