Advertisement:

Author Topic: monthly or annual fee  (Read 34604 times)

jnshafner

  • Newbie
  • *
  • Posts: 5
monthly or annual fee
« on: August 29, 2014, 01:02:53 am »
Hi,

is it possible to make a monthly or annual fee in osclass?
or for example:
1 Ad = 3$
2 Ads = 5$
3 Ads = 6$

regards
Jonas

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: monthly or annual fee
« Reply #1 on: August 29, 2014, 07:17:23 pm »
if you are using paypal, just create subscriptions...

ken080nek

  • Newbie
  • *
  • Posts: 8
Re: monthly or annual fee
« Reply #2 on: April 24, 2016, 09:56:41 am »
OK, I understand that the subscription (regular monthly charge) is possible by the paypal setting.

Then, is it possible to automatically cancel the subscription when the user deletes his ad?
Otherwise, the charged users have to cancel the service themselves through their own paypal account in addition to deleting the ad, and it's very confusing.

I'd like to work the subscription system like below:

The users only pay the monthly fee for the period during which their adds are posted and displayed.
Having and keeping accounts are free and only continuous posting is charged.

It seems that the payment plug-ins only work at the timing of posting or making the adds premium or listed at the top.

I have not tried any plug-ins yet, so I'd be very happy to hear any suggestions or information on this.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: monthly or annual fee
« Reply #3 on: April 24, 2016, 03:25:44 pm »
Hi,

Quote
It seems that the payment plug-ins only work at the timing of posting or making the adds premium or listed at the top.

The term "subscription" here is not toally accurate, it just means you don't have to pay with real money every time you want to make Premium an ad. You buy packs of credits and then they are used as coin.

As far as I know what you want (periodical payments) is not covered by any of the existent plugins.

Regards

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: monthly or annual fee
« Reply #4 on: April 25, 2016, 10:45:42 am »
Hi,

Quote
It seems that the payment plug-ins only work at the timing of posting or making the adds premium or listed at the top.

The term "subscription" here is not toally accurate, it just means you don't have to pay with real money every time you want to make Premium an ad. You buy packs of credits and then they are used as coin.

As far as I know what you want (periodical payments) is not covered by any of the existent plugins.


Regards

Osclass Payments pro (or paypal or stripe) do "support" (with quotes) subscriptions and periodical payments, but you need to "work on that".
Stripe works almost out of the box, first, you need to create a "plan" on your stripe account, lets call it "PLAN-SUB", then, you need to
Code: [Select]
payment_pro_cart_add("PLAN-SUB", __('Subscription plan XYZ', 'your_plugin'), 15, 1, array('trial' => 0)); // Add the plan to the cart, ID has to be the same as the ID of your Stripe plan, the price (15) doesn't matter, it will be shown to the user, but it will ttake whatever price you put on the stripe dashboard
Session::newInstance()->_set('subscription', 1); // This will show the recurring/subscription buttons instead of the normal ones
osc_redirect_to(osc_route_url('payment-pro-checkout')); // redirect to the checkout to make the payment

And that's all you need to do.

To make Paypal work with subscription is a little more complicated, you need to add a hook to 'payment_pro_paypal_subscription_items' and fill some fields for the button. Subscriptions at https://osclass.org/hosted/start are done using payments pro plugin, and less than 400 lines of code (the payment part), we added some hooks to control that you can only have ONE subscription on your cart and a few other things.


Osclass payments pro launch several hooks that allow the plugin to be extended by other plugins or functions, the idea is that payments pro take care of the payment processing and you use other plugins to add new features/services to it

ken080nek

  • Newbie
  • *
  • Posts: 8
Re: monthly or annual fee
« Reply #5 on: April 26, 2016, 09:03:54 am »
Thank you for your precise advice.
I'm working on it by asking a professional to develop an additional module just as you advised.