Payment Plugin to pay for Membership Pro subscriptions with points

Submitted On: 03 May 2024
File Size: 2
Downloads: 18
File Version: 1.0.0
File Author: Martin Brampton

The Membership Pro Joomla Extension provides effective subscription management for Joomla. It supports many different payment gateways.

Now you can add the option for your users to pay with points. Combine incentives for inviting new users with payment with points to build your community. Within the Membership Pro admin interface, there is an option to install payment gateways. Install this gateway code to integrate UserPoints. Make sure that for payment plans where you want to accept points, the plans are configured to use the pay by points option.

NOTE: This is NOT a Joomla plugin, and must be installed using the Membership Pro option to add payment gateways.

If you install the UserPoints "User Points Integration with Membership Pro" plugin, it will help you to automatically create a rule for payment with points. Otherwise, create a rule in UserPoints that has the unique function name "up_membership_pro". Set both fixed points and percentage to "No" - the number of points will be determined by the cost of the Membershipi Pro Plan. Ensure the rule is published and set autoapprove to "Yes".

Also, check your UserPoints Options and set the value of "Points per unit" to what you want. For example, if you work in USD and want points to be worth 5 cents, set the value to 20.

File Rating (0/0)
Log in to cast your vote
Be the first to comment! Please sign in or register.
Martin Brampton

Offline

Sorry, but we're currently offline. Please fill out the form below, and we will get back to you as soon as possible.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

3.791MBMemory Usage182msRequest Duration
Joomla! Version5.2.5
PHP Version8.2.28
Identityguest
Response200
Templatecassiopeia
Database
Server
mysql
Version
10.11.11-MariaDB-0+deb12u1-log
Collation
utf8mb4_unicode_ci
Conn Collation
utf8mb4_general_ci
$_GET
array:2 [ "view" => "fileinfo" "id" => 737 ]
$_POST
[]
$_SESSION
array:2 [ "aliro_auth" => array:5 [ "subj_found" => & array:1 [ "remosFolder" => array:2...
$_COOKIE
[]
$_SERVER
array:54 [ "USER" => "remos" "HOME" => "/var/www/remos" "SCRIPT_NAME" => "" "REQUEST_URI" =>...
session
array:3 [ "counter" => 1 "timer" => array:3 [ "start" => 1742073303 "last" => 1742073303...
registry
array:3 [ "data" => [] "initialized" => false "separator" => "." ]
user
array:21 [ "id" => 0 "name" => null "username" => null "email" => null "password" => "***r...
gtag
false
  • afterLoad (73.79KB) (3.17ms)
  • afterInitialise (1.02MB) (37.02ms)
  • afterRoute (367.82KB) (23.7ms)
  • beforeRenderComponent com_remository (46.16KB) (5.31ms)
  • afterRenderComponent com_remository (1.25MB) (57.02ms)
  • afterDispatch (2.27KB) (423μs)
  • beforeRenderRawModule mod_menu (Main Menu) (59.41KB) (3.29ms)
  • afterRenderRawModule mod_menu (Main Menu) (188.33KB) (3.95ms)
  • beforeRenderRawModule mod_login (Login Form) (976B) (42μs)
  • afterRenderRawModule mod_login (Login Form) (38.06KB) (1.94ms)
  • beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (40μs)
  • afterRenderRawModule mod_remositorytree (Explore Repository) (10.31KB) (3.68ms)
  • beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (449μs)
  • afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (44.61KB) (1.09ms)
  • beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (11μs)
  • Before Access::preloadComponents (all components) (12.5KB) (1.24ms)
  • After Access::preloadComponents (all components) (119.05KB) (1.61ms)
  • Before Access::getAssetRules (id:1 name:root.1) (536B) (41μs)
  • After Access::getAssetRules (id:1 name:root.1) (7.05KB) (137μs)
  • afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (1.5ms)
  • beforeRenderModule mod_menu (Main Menu) (12.26KB) (214μs)
  • afterRenderModule mod_menu (Main Menu) (4.19KB) (250μs)
  • beforeRenderModule mod_login (Login Form) (640B) (23μs)
  • afterRenderModule mod_login (Login Form) (6.47KB) (92μs)
  • beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (550μs)
  • afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (201μs)
  • beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (152μs)
  • afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (13.35KB) (19.72ms)
  • beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (20μs)
  • afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.94KB) (274μs)
  • afterRender (78.6KB) (13.61ms)
  • 1 x afterRenderComponent com_remository (1.25MB) (31.37%)
    57.02ms
    1 x afterInitialise (1.02MB) (20.37%)
    37.02ms
    1 x afterRoute (367.82KB) (13.04%)
    23.70ms
    1 x afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (13.35KB) (10.85%)
    19.72ms
    1 x afterRender (78.6KB) (7.49%)
    13.61ms
    1 x beforeRenderComponent com_remository (46.16KB) (2.92%)
    5.31ms
    1 x afterRenderRawModule mod_menu (Main Menu) (188.33KB) (2.17%)
    3.95ms
    1 x afterRenderRawModule mod_remositorytree (Explore Repository) (10.31KB) (2.03%)
    3.68ms
    1 x beforeRenderRawModule mod_menu (Main Menu) (59.41KB) (1.81%)
    3.29ms
    1 x afterLoad (73.79KB) (1.74%)
    3.17ms
    1 x afterRenderRawModule mod_login (Login Form) (38.06KB) (1.07%)
    1.94ms
    1 x After Access::preloadComponents (all components) (119.05KB) (0.89%)
    1.61ms
    1 x afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (0.83%)
    1.50ms
    1 x Before Access::preloadComponents (all components) (12.5KB) (0.68%)
    1.24ms
    1 x afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (44.61KB) (0.6%)
    1.09ms
    1 x beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (0.3%)
    550μs
    1 x beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (0.25%)
    449μs
    1 x afterDispatch (2.27KB) (0.23%)
    423μs
    1 x afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.94KB) (0.15%)
    274μs
    1 x afterRenderModule mod_menu (Main Menu) (4.19KB) (0.14%)
    250μs
    1 x beforeRenderModule mod_menu (Main Menu) (12.26KB) (0.12%)
    214μs
    1 x afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (0.11%)
    201μs
    1 x beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (0.08%)
    152μs
    1 x After Access::getAssetRules (id:1 name:root.1) (7.05KB) (0.08%)
    137μs
    1 x afterRenderModule mod_login (Login Form) (6.47KB) (0.05%)
    92μs
    1 x beforeRenderRawModule mod_login (Login Form) (976B) (0.02%)
    42μs
    1 x Before Access::getAssetRules (id:1 name:root.1) (536B) (0.02%)
    41μs
    1 x beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (0.02%)
    40μs
    1 x beforeRenderModule mod_login (Login Form) (640B) (0.01%)
    23μs
    1 x beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (0.01%)
    20μs
    1 x beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (0.01%)
    11μs
36 statements were executed, 4 of which were duplicates, 32 unique42.28ms92.11KB
  • SELECT @@SESSION.sql_mode;1.35ms968B/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:308Copy
  • SELECT `data` FROM `jos_session` WHERE `session_id` = ?321μs1008BParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:250Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = :session_id LIMIT 1234μs1.3KBParams/libraries/src/Session/MetadataManager.php:187Copy
  • INSERT INTO `jos_session` (`session_id`,`guest`,`time`,`userid`,`username`,`client_id`) VALUES (:session_id, :guest, :time, :user_id, :username, :client_id)3.2ms944BParams/libraries/src/Session/MetadataManager.php:260Copy
  • SELECT `extension_id` AS `id`,`element` AS `option`,`params`,`enabled` FROM `jos_extensions` WHERE `type` = 'component' AND `state` = 0 AND `enabled` = 11.47ms17.73KB/libraries/src/Component/ComponentHelper.php:399Copy
  • SELECT `id`,`rules` FROM `jos_viewlevels`283μs656B/libraries/src/Access/Access.php:955Copy
  • SELECT `b`.`id` FROM `jos_usergroups` AS `a` LEFT JOIN `jos_usergroups` AS `b` ON `b`.`lft` <= `a`.`lft` AND `b`.`rgt` >= `a`.`rgt` WHERE `a`.`id` = :guest388μs1.33KBParams/libraries/src/Access/Access.php:868Copy
  • SELECT `folder` AS `type`,`element` AS `name`,`params` AS `params`,`extension_id` AS `id` FROM `jos_extensions` WHERE `enabled` = 1 AND `type` = 'plugin' AND `state` IN (0,1) AND `access` IN (:preparedArray1,:preparedArray2) ORDER BY `ordering`1.04ms4.48KBParams/libraries/src/Plugin/PluginHelper.php:294Copy
  • SET sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES',''));138μs640B/administrator/components/com_osmembership/loader.php:95Copy
  • SELECT `m`.`id`,`m`.`menutype`,`m`.`title`,`m`.`alias`,`m`.`note`,`m`.`link`,`m`.`type`,`m`.`level`,`m`.`language`,`m`.`browserNav`,`m`.`access`,`m`.`params`,`m`.`home`,`m`.`img`,`m`.`template_style_id`,`m`.`component_id`,`m`.`parent_id`,`m`.`path` AS `route`,`e`.`element` AS `component` FROM `jos_menu` AS `m` LEFT JOIN `jos_extensions` AS `e` ON `m`.`component_id` = `e`.`extension_id` WHERE ( (`m`.`published` = 1 AND `m`.`parent_id` > 0 AND `m`.`client_id` = 0) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :currentDate1)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :currentDate2) ORDER BY `m`.`lft`875μs19.8KBParams/libraries/src/Menu/SiteMenu.php:166Copy
  • SHOW TABLES LIKE 'jos_downloads_repository'533μs520B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT `path`, `link` FROM `jos_menu` WHERE `link` LIKE '%remository%' AND `published` > 0 AND `client_id` = 0567μs608BsameCopy
  • SELECT f.id, f.containerid, f.filetitle, f.realname FROM jos_downloads_files AS f WHERE f.containerid = 129784μs720BsameCopy
  • SELECT `config_key`,`config_value` FROM jos_osmembership_configs661μs3.06KB/administrator/components/com_osmembership/libraries/mpf/config/config.php:42Copy
  • SELECT * FROM `jos_languages` WHERE `published` = 1 ORDER BY `ordering` ASC598μs1.59KB/libraries/src/Language/LanguageHelper.php:177Copy
  • SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent` FROM `jos_template_styles` AS `s` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = 'template' AND `e`.`client_id` = `s`.`client_id` WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 11.27ms832B/administrator/components/com_templates/src/Model/StyleModel.php:775Copy
  • SELECT role, subject_id, action FROM jos_permissions WHERE subject_type = 'remosFolder' AND action IN('download','edit')6.79ms2.38KBsameCopy
  • SELECT NOW()214μs536B/components/com_userpoints/src/Problems/SQL.php:31Copy
  • SELECT UNIX_TIMESTAMP(NOW())159μs536B/components/com_userpoints/src/Problems/SQL.php:74Copy
  • SELECT COUNT(`id`) FROM `jos_usergroups`283μs536B/libraries/src/Helper/UserGroupsHelper.php:207Copy
  • SELECT * FROM `jos_usergroups` ORDER BY `lft` ASC1.24ms976B/libraries/src/Helper/UserGroupsHelper.php:266Copy
  • SELECT NOW()1.29ms536BsameCopy
  • SELECT f.*, AVG(l.value) AS vote_value, COUNT(l.value) AS vote_count, CASE WHEN fv.user_id IS NULL THEN 0 WHEN fv.user_id = 0 THEN 0 ELSE 1 END AS favourite FROM jos_downloads_files AS f LEFT JOIN jos_downloads_log AS l ON l.type=3 AND l.fileid=f.id LEFT JOIN jos_downloads_favour AS fv ON fv.file_id = f.id AND fv.user_id = 0 WHERE f.id = 737 AND published=1 GROUP BY f.id2.59ms9.72KBsameCopy
  • SELECT COUNT(*) FROM `jos_permissions` WHERE `subject_type`='remosFolder' AND (`action`='download' OR `action`='*')541μs536BsameCopy
  • SELECT `role`, `control`, `subject_id`, `action` FROM `jos_permissions` WHERE `subject_type`='remosFolder' AND (`action`='download' OR `action`='*')919μs944BsameCopy
  • SELECT COUNT(*) FROM `jos_permissions` WHERE `subject_type`='remosFolder' AND (`action`='edit' OR `action`='*')1.46ms536BsameCopy
  • SELECT `role`, `control`, `subject_id`, `action` FROM `jos_permissions` WHERE `subject_type`='remosFolder' AND (`action`='edit' OR `action`='*')445μs1008BsameCopy
  • SELECT c.*, CASE WHEN c.type = 'ProductLines' THEN 0 WHEN c.type = 'Services' THEN 1 ELSE 9 END AS typseq FROM jos_downloads_classify AS c INNER JOIN jos_downloads_file_classify AS fc ON c.id = fc.classify_id WHERE c.published != 0 AND c.hidden = 0 AND fc.file_id = 737 ORDER BY typseq, c.name1.11ms1.42KB/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.224.16.219' AND fileid=737516μs536B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.224.16.219' AND fileid=737356μs0BsameCopy
  • SELECT c.id, c.title, c.comment, c.date, c.imgcount, u.id as userid, u.name, u.username FROM jos_downloads_reviews AS c INNER JOIN jos_users AS u ON c.userid=u.id WHERE c.itemid=737 ORDER BY c.date DESC476μs912B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SELECT `m`.`id`,`m`.`title`,`m`.`module`,`m`.`position`,`m`.`content`,`m`.`showtitle`,`m`.`params`,`mm`.`menuid` FROM `jos_modules` AS `m` LEFT JOIN `jos_modules_menu` AS `mm` ON `mm`.`moduleid` = `m`.`id` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `m`.`module` AND `e`.`client_id` = `m`.`client_id` WHERE ( ( (`m`.`published` = 1 AND `e`.`enabled` = 1 AND `m`.`client_id` = :clientId AND `m`.`access` IN (:preparedArray1,:preparedArray2)) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :publishUp)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :publishDown)) AND (`mm`.`menuid` = :itemId OR `mm`.`menuid` <= 0) ORDER BY `m`.`position`,`m`.`ordering`1.08ms1.89KBParams/libraries/src/Cache/Controller/CallbackController.php:51Copy
  • SELECT `id`,`name`,`rules`,`parent_id` FROM `jos_assets` WHERE `name` IN (:preparedArray1,:preparedArray2,:preparedArray3,:preparedArray4,:preparedArray5,:preparedArray6,:preparedArray7,:preparedArray8,:preparedArray9,:preparedArray10,:preparedArray11,:preparedArray12,:preparedArray13,:preparedArray14,:preparedArray15,:preparedArray16,:preparedArray17,:preparedArray18,:preparedArray19,:preparedArray20,:preparedArray21,:preparedArray22,:preparedArray23,:preparedArray24,:preparedArray25,:preparedArray26,:preparedArray27,:preparedArray28,:preparedArray29,:preparedArray30,:preparedArray31,:preparedArray32,:preparedArray33,:preparedArray34,:preparedArray35,:preparedArray36,:preparedArray37,:preparedArray38,:preparedArray39,:preparedArray40,:preparedArray41,:preparedArray42,:preparedArray43,:preparedArray44)733μs10.31KBParams/libraries/src/Access/Access.php:357Copy
  • SELECT SUM(CASE WHEN `a`.`next_execution` <= :now THEN 1 ELSE 0 END) AS due_count,SUM(CASE WHEN `a`.`locked` IS NULL THEN 0 ELSE 1 END) AS locked_count FROM `jos_scheduler_tasks` AS `a` WHERE `a`.`state` = 12.46ms1.37KBParams/administrator/components/com_scheduler/src/Model/TasksModel.php:517Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = ?317μs1KBParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:277Copy
  • UPDATE `jos_session` SET `data` = ? , `time` = ? WHERE `session_id` = ?5.6ms592BParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:301Copy