- Posts: 7
- Thank you received: 0
change registrant status ex. pending to paid in automatized way
- user364826
- Topic Author
- Offline
- New Member
-
Less
More
7 years 1 month ago #122721
by user364826
change registrant status ex. pending to paid in automatized way was created by user364826
Hi!
If I am right, for now only manually I can change the registrant status, I have to click to publish, or select multiple and publish from admin dashboard. There is an API or something similar, to change this status?
My idea is the next: the user register for the event (offline payment) get a generated code > pays the event price (will input the generated code to the details) > the bank will send and email after the received money > check the e-mail for the generated code > if exist with that code to change the status of registrant to paid over an API
That bold part is the question, can you please your opinion, resolution if you have?
If I am right, for now only manually I can change the registrant status, I have to click to publish, or select multiple and publish from admin dashboard. There is an API or something similar, to change this status?
My idea is the next: the user register for the event (offline payment) get a generated code > pays the event price (will input the generated code to the details) > the bank will send and email after the received money > check the e-mail for the generated code > if exist with that code to change the status of registrant to paid over an API
That bold part is the question, can you please your opinion, resolution if you have?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #122748
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic change registrant status ex. pending to paid in automatized way
Hello
The solution would be using publish method of registrant model. Before guiding you with details code, please submit a support ticket sending us the email you used to purchase the product or PayPal Transaction ID of the purchase so that I can verify the order. We need that verification before provide further (and future support)
Sorry for asking for this but I don't see order associated to your account at the moment
Tuan
The solution would be using publish method of registrant model. Before guiding you with details code, please submit a support ticket sending us the email you used to purchase the product or PayPal Transaction ID of the purchase so that I can verify the order. We need that verification before provide further (and future support)
Sorry for asking for this but I don't see order associated to your account at the moment
Tuan
Please Log in or Create an account to join the conversation.
- user364826
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
7 years 1 month ago #122767
by user364826
Replied by user364826 on topic change registrant status ex. pending to paid in automatized way
Hi!
Yes, at the moment my subscription is expired, and I understand if you can't support without it. Anyway theoretically it's possible with that method, thanks your help!
Yes, at the moment my subscription is expired, and I understand if you can't support without it. Anyway theoretically it's possible with that method, thanks your help!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #122768
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic change registrant status ex. pending to paid in automatized way
I am unsure if your subscription was expired as I could not find any order from your account
So unless you prove that you at least have purchased our extension, I will stop replying to your questions on forum. Hope you understand
Tuan
So unless you prove that you at least have purchased our extension, I will stop replying to your questions on forum. Hope you understand
Tuan
Please Log in or Create an account to join the conversation.
- user364826
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
7 years 1 month ago #122770
by user364826
Replied by user364826 on topic change registrant status ex. pending to paid in automatized way
Ok, I created a support ticket, where I explain, and prove the purchase. Thank you! Ticket id: 86342.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #122771
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic change registrant status ex. pending to paid in automatized way
Thanks. I confirm that you purchased the extension using a different username (although it was expired long time ago)
So I could not say from the version you are using, but for the latest version, you can use this kind of code to publish registrants through ID:
Hope it gives you some clue about how to use the built-in API
Tuan
So I could not say from the version you are using, but for the latest version, you can use this kind of code to publish registrants through ID:
Code:
JLoader::register('EventbookingModelRegistrant', JPATH_ADMINISTRATOR . '/components/com_eventbooking/model/registrant.php');
$ids = [1,4,6]; // IDs of registration records which you want to publish
$model = RADModel::getInstance('Registrant', 'EventbookingModel', ['ignore_request' => true, 'remember_states' => false]);
$model->publish($ids, 1);
Hope it gives you some clue about how to use the built-in API
Tuan
Please Log in or Create an account to join the conversation.
- user364826
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
7 years 1 month ago - 7 years 1 month ago #122787
by user364826
Replied by user364826 on topic change registrant status ex. pending to paid in automatized way
Thank you very much, this is a big help! If can I ask there is a function what will return the ID if I make a search for that transaction code? Or it will be better if I make the query to search the transaction code and get the id of registrant?
Last edit: 7 years 1 month ago by user364826.
Please Log in or Create an account to join the conversation.
- user364826
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
6 years 11 months ago #124483
by user364826
Replied by user364826 on topic change registrant status ex. pending to paid in automatized way
Hi there!
Using this from the command line interface (JApplicationCli)
I cannot get it to work, there are no errors, but nothing happens.
Thanks your help!
Using this from the command line interface (JApplicationCli)
Code:
public function doExecute()
{
require_once JPATH_ADMINISTRATOR . '/components/com_eventbooking/libraries/rad/model/model.php';
require_once JPATH_ADMINISTRATOR . '/components/com_eventbooking/libraries/rad/model/state.php';
require_once JPATH_ADMINISTRATOR . '/components/com_eventbooking/libraries/rad/inflector/inflector.php';
$ids = [8,7]; // IDs of registration records which you want to publish
$model = RADModel::getInstance('Registrant', 'EventbookingModel', ['ignore_request' => true, 'remember_states' => false]);
$model->publish($ids, 1);
}
Thanks your help!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 11 months ago #124495
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic change registrant status ex. pending to paid in automatized way
Honestly, I am unsure if it works in CLI Application. However, I would suggest you to change the require_once commands (3 commands) to this single command:
require_once JPATH_ADMINISTRATOR . '/components/com_eventbooking/libraries/rad/bootstrap.php';
Then try again to see whether it works?
Tuan
require_once JPATH_ADMINISTRATOR . '/components/com_eventbooking/libraries/rad/bootstrap.php';
Then try again to see whether it works?
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.