solved Other subcriptions

alt=
DannyA
@dannya
10 years ago
584 posts
Right now it seems possible to charge monthly for subscription to a quota. I assume an invoice is genereated monthly when the subscription is renewed. Is it possible to add other items to the subscription besides a quota?
updated by @dannya: 04/30/14 09:55:44PM
brian
@brian
10 years ago
10,148 posts
andersda:
Right now it seems possible to charge monthly for subscription to a quota. I assume an invoice is genereated monthly when the subscription is renewed. Is it possible to add other items to the subscription besides a quota?

I'm not sure what you mean - can you clarify?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
I have other items that users can pay for on a monthly/yearly basis instead of the account itself. So at the end of the month, I want to check how many items they are subscribed to, list them in the subscription invoice and send for payment. The amount varies depending on the items subscibed to.

The best example if if you wanted to subscribe to a-la-cart pricing to your cable channels. Every month you would be billed for whatever channels you're subscribed to.
michael
@michael
10 years ago
7,719 posts
Recurring billing is setup for the quota system. It is possible to charge for other things and have them set to recurring billing with the foxycart system, but currently there has not been any other modules that I know of that are integrated like this.

You would need to build a module.
alt=
DannyA
@dannya
10 years ago
584 posts
I have the other module built. I'm just wondering how I would add the item to the subscription invoice and change the amount billed. That way, I can leverage the "subscriptions" section of the artist profile to list currently subscribed items
updated by @dannya: 03/24/14 09:06:27PM
brian
@brian
10 years ago
10,148 posts
The subscription setup in FoxyCart only handles the quota_id - it's not a cart based setup that can have other items placed in there, and will only handle a single subscription at a time. Doing a-la-cart pricing via a subscription is not going to work with PayPal (as far as I know) - the price can't be changed on a monthly basis without the user canceling and restarting the subscription - i.e. once the subscription price is set, it is "locked in" on the subscription record that is maintained by PayPal and referenced by FoxyCart when it goes to make the monthly payment.

For what you want to do, I think you're going to need to use Stripe directly and basically do "touch" billing - i.e. save the customer stripe ID to the user's datastore, then create a custom module that on a monthly basis figures out how much each user owes, then charge their credit card that amount by initiating a new charge to their stripe customer ID.

This is considerably more complicated than the FoyxCart module is setup to handle though, so it's something you'd need to build.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
Agreed. I'd basically be generating an invoice and bill. I was just curious if there was a way to leverage the subscriptions tab. I think the new billing module would have to be a new tab in the profile then. I assume this can be done. i.e "Profile-Account-Notifications-Subscriptions-Shared networks-Billing"
brian
@brian
10 years ago
10,148 posts
Yeah - in your module in the init function, you can "register" for a user account tab:

jrCore_register_module_feature('jrUser', 'account_tab', 'myModule', 'billing', 'Billing');

This would run the view_myModule_billing() view function in the myModule/index.php file.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
Awesome. Thanks!
brian
@brian
10 years ago
10,148 posts
No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags