hypejunction / hypesubscriptions
This package is abandoned and no longer maintained.
No replacement package was suggested.
Subscriptions API
1.2.3
2019-06-14 16:24 UTC
Requires
- composer/installers: ~1.0
README
API for implementing paid subscriptions
Features
- Agnostic API that can be extended with any payment provider
- Implement site subscriptions and optionally restrict access to paying subscribers only
- API to implement entity/group specific subscriptions
- API to restrict access to posts and downloads
Developer Notes
Events
To implement custom logic when the subscription is created, listen to create, subscription
event.
To implement custom logic when the subscription cancelled, listing to cancel, subscription
.
Note that the subscription can be cancelled at period end, so check current_period_end
metadata,
before terminating access to features. Use expire, subscription
hook to do additional clean up
for when subscription has expired after being cancelled with a future expiration.