- Posts: 8
- Thank you received: 0
get user id on payment process
- Enrico
- Topic Author
- Offline
- New Member
-
Less
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.