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

This package is not auto-updated.

Last update: 2020-02-01 14:00:50 UTC


README

Elgg 3.0

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.