Download the PHP package wp-pay-extensions/restrict-content-pro without Composer

On this page you can find all versions of the php package wp-pay-extensions/restrict-content-pro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package restrict-content-pro

WordPress Pay Extension: Restrict Content Pro

Restrict Content Pro driver for the WordPress payment processing library.

Restrict Content Pro

https://gitlab.com/pronamic-plugins/restrict-content-pro

To download the latest version of Restrict Content Pro the plugin updater API can be used. You have to replace LICENSE and URL in the following command. If you need a beta release you can set beta to 1.

Edit Membership

In Restrict Content Pro version 3 or higher it is possible to edit memberships. Changes to a Restrict Content Pro membership can also influence the connected Pronamic Pay subscription:

Edit "Membership Level"

When you change the "Membership Level" of a Restrict Content Pro membership the connected Pronamic Pay subscription will be cancelled. If you click the Restrict Content Pro "Change Level" button you will see a confirmation modal dialog with the following text:

Are you sure you want to change the membership level? The subscription will be cancelled at the payment gateway and this customer will not be automatically billed again.

If you confirm by selecting OK Restrict Content Pro will create a new membership. The other Restrict Content Pro membership will be marked as disabled. The new Restrict Content Pro membership will not be connected to a Pronamic Pay subscription.

Edit "Membership Status"

When you change the "Membership Status" of a Restrict Content Pro membership the connected Pronamic Pay subscription will be updated accordingly.

Restrict Content Pro status Pronamic Pay subscription status
Active Active
Expired Expired
Cancelled Cancelled
Pending Pending

Edit "Date Created"

Editing the Restrict Content Pro membership "Date Created" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription date will not be updated.

Edit "Expiration Date"

Editing the Restrict Content Pro membership "Expiration Date" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription expiration date will not be updated. We are not updating this due to the following Restrict Content Pro notice:

Changing the expiration date will not affect when renewal payments are processed.

Edit "Auto Renew"

Editing the Restrict Content Pro membership "Auto Renew" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription will not be cancelled. We are not doing this due to the following Restrict Content Pro notice:

Changing the recurring indicator will not set up or remove a subscription with the gateway. This checkbox is for updating RCP records only.

Gateway supports

Foreach Restrict Content Pro gateway it is possible to define which features are supported. In Restrict Content Pro version 3 the following supports values are available:

Support Description
one-time one time payments
recurring recurring payments
fees fees
trial free trials

Source: https://docs.restrictcontentpro.com/article/1695-payment-gateway-api

In the Pronamic Pay extension we try to set the supports values as correct as possible for the different gateways. Restrict Content Pro however will not hide/show gateways based on the supports values.

Restrict Content Pro membership levels with a recurring can be paid with a one-time payment gateway like iDEAL. And unlimited membership levels can be paid with a recurring payment gateway like Direct Debit (mandate via iDEAL).

Once a user pays a recurring membership level with a one-time payment gateway, it will not be automatically renewed. Restrict Content Pro is not very clear about this, so make sure you inform your users about this!

Test

WP-CLI

What is WP-CLI?

For those who have never heard before WP-CLI, here's a brief description extracted from the official website.

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.

Commands

Command pronamic-pay restrict-content-pro upgrade-216 execute

Execute 2.1.6 upgrade.

Command pronamic-pay restrict-content-pro upgrade-216 list-payments

List payments for 2.1.6 upgrade.

Command pronamic-pay restrict-content-pro upgrade-216 list-subscriptions

List subscriptions for 2.1.6 upgrade.

Command pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions

Upgrade subscriptions for 2.1.6.

Links


All versions of restrict-content-pro with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
automattic/jetpack-autoloader Version ^3.0
pronamic/wp-money Version ^2.2
woocommerce/action-scheduler Version ^3.7
wp-pay-gateways/mollie Version ^4.10
wp-pay/core Version ^4.17
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wp-pay-extensions/restrict-content-pro contains the following files

Loading the files please wait ....