OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



manual activation of pay-per-view

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

manual activation of pay-per-view

Postby nevermind182004 » Wed Oct 12, 2011 12:00 am

Hello,

Is there a way to manually activate access of individual users to specific articles? Like what happens in pay-per-view purchases; the user only views that articles he paid for. How about a manual setup for this? Like in individual and institutional subscriptions, users can pay online for the subscription but the admin in the back-end can also manually set up subscription (without online payment). For single article purchases, the only "trigger" for the system to allow access is the online payment.

We want to assign specific users to specific articles only. How can we do this manually?

Thank you!
Rye
nevermind182004
 
Posts: 86
Joined: Mon Apr 20, 2009 6:02 pm

Re: manual activation of pay-per-view

Postby michael » Thu Oct 13, 2011 10:14 am

Hi Rye,

This is not currently possible in OJS. Only the non-manual payment methods may be used to purchase individual articles.

We have, however, flagged it as a potential enhancement for a future release. You can find the bug report here. Please feel free to cc yourself and/or add any additional details to the description.

If you have direct access to your OJS database, you could manually add the necessary records. In effect, you would need to add a new row to the completed_payments table for each user/article that you wanted to grant access to. Please see classes/payment/ojs/OJSCompletedPaymentDAO.inc.php for more details, in particular the insertCompletedPayment and hasPaidPerViewArticle methods.

Cheers,
Michael
michael
 
Posts: 409
Joined: Thu Mar 29, 2007 2:09 pm

Re: manual activation of pay-per-view

Postby nevermind182004 » Thu Oct 13, 2011 6:04 pm

Hi Michael,

So after we follow your advice, we can assign specific articles to specific users. Can we set the access to expire after some period? And by the way, for pay-per-view is it right that there is no expiry for online access to purchased articles?

Thanks,
Ryan
nevermind182004
 
Posts: 86
Joined: Mon Apr 20, 2009 6:02 pm

Re: manual activation of pay-per-view

Postby michael » Thu Oct 13, 2011 10:04 pm

Hi Ryan,

Yes, that's correct. It's an article purchase without expiry.

The old pay-per-view method name is a misnomer and will be replaced in the next OJS release.

Cheers,
Michael
michael
 
Posts: 409
Joined: Thu Mar 29, 2007 2:09 pm


Return to OJS Development

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests