- Posts: 14
- Thank you received: 0
Enable support_recurring_subscription at install
- Olle Haerstedt
- Topic Author
- Offline
- New Member
Less
More
7 years 11 months ago - 7 years 11 months ago #81675
by Olle Haerstedt
Enable support_recurring_subscription at install was created by Olle Haerstedt
Hi,
I just extended your PayPal payment plugin to be able to cancel subscriptions (this is possible using Paypal Pro API signature etc). But the plugin is listed as not supporting recurring payments. I.e., support_recurring_subscription is 0 in the database, and I had to change it manually. How do you configure the installation XML for a plugin to enable this at installation?
Regards
Olle
I just extended your PayPal payment plugin to be able to cancel subscriptions (this is possible using Paypal Pro API signature etc). But the plugin is listed as not supporting recurring payments. I.e., support_recurring_subscription is 0 in the database, and I had to change it manually. How do you configure the installation XML for a plugin to enable this at installation?
Regards
Olle
Last edit: 7 years 11 months ago by Olle Haerstedt.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
7 years 11 months ago #81752
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Enable support_recurring_subscription at install
Hi Olle
We don't enable setting it in XML of the payment plugin. We hard code the value in Membership Pro code (as right now, the payment plugins are mostly developed by ourself).
If you look at the code of the plugin model (administrator/components/com_osmembership/model/plugin.php), you will see these code:
You can extend the array to include your new payment plugin. I am working to make it possible to set it in XML in the next release, too
Regards,
Tuan
We don't enable setting it in XML of the payment plugin. We hard code the value in Membership Pro code (as right now, the payment plugins are mostly developed by ourself).
If you look at the code of the plugin model (administrator/components/com_osmembership/model/plugin.php), you will see these code:
Code:
$recurringPlugins = array(
'os_paypal',
'os_authnet',
'os_paypal_pro',
'os_stripe'
);
You can extend the array to include your new payment plugin. I am working to make it possible to set it in XML in the next release, too
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
7 years 11 months ago #81753
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Enable support_recurring_subscription at install
Also, if you use PayPal Pro API, maybe you should purchase and use MP PayPal Pro payment plugin (
joomdonation.com/payment-plugins/members...payment-plugins.html
). It support cancel recurring subscription from within your site, and you won't have to implement the code yourself. Of course, it is your choice :)
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Olle Haerstedt
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
7 years 11 months ago - 7 years 11 months ago #81762
by Olle Haerstedt
Replied by Olle Haerstedt on topic Enable support_recurring_subscription at install
Hi,
OK, good to know!
Paypal Pro will not work in Germany, where I work (we already bought it and tested). But the API works for cancellation. That's why we need to combine both the classic and the pro API (CBSubs does this, too).
Regards
Olle
OK, good to know!
Paypal Pro will not work in Germany, where I work (we already bought it and tested). But the API works for cancellation. That's why we need to combine both the classic and the pro API (CBSubs does this, too).
Regards
Olle
Last edit: 7 years 11 months ago by Olle Haerstedt.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 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.