承接 wp-pay-extensions/restrict-content-pro 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wp-pay-extensions/restrict-content-pro

Composer 安装命令:

composer require wp-pay-extensions/restrict-content-pro

包简介

Restrict Content (Pro) driver for the WordPress payment processing library.

README 文档

README

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.

curl --request POST https://restrictcontentpro.com/ \
    --data "edd_action=get_version&license=LICENSE&item_name=restrict-content-pro&item_id=479&version=1.0.0&slug=restrict-content-pro&author=Restrict Content Pro Team&url=URL&beta=0" \
    | jq '.package'

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:

Restrict Content Pro edit membership

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.

Restrict Content Pro edit expiration date notice

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.

Restrict Content Pro edit auto renew notice

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

  • Not logged in new membership.
  • Logged in new membership.
  • Logged in upgrade membership.
  • Cancel membership.
  • Discount code.
  • Lifetime membership.
  • Free trial.
  • Fee.
  • Free member.
  • Billing Cycle: €7.00 initially, then €3.00 every day.

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

$ wp pronamic-pay restrict-content-pro
usage: wp pronamic-pay restrict-content-pro upgrade-216 <command>

See 'wp help pronamic-pay restrict-content-pro <command>' for more information on a specific command.

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

Execute 2.1.6 upgrade.

$ wp pronamic-pay restrict-content-pro upgrade-216 execute

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

List payments for 2.1.6 upgrade.

$ wp pronamic-pay restrict-content-pro upgrade-216 list-payments

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

List subscriptions for 2.1.6 upgrade.

$ wp pronamic-pay restrict-content-pro upgrade-216 list-subscriptions

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

Upgrade subscriptions for 2.1.6.

$ wp pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions
$ wp pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions --skip-no-match=true --reactivate=true --dry-run=false

Links

wp-pay-extensions/restrict-content-pro 适用场景与选型建议

wp-pay-extensions/restrict-content-pro 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.28k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 11 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「wordpress」 「extension」 「pay」 「content」 「wp」 「restrict」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 wp-pay-extensions/restrict-content-pro 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wp-pay-extensions/restrict-content-pro 我们能提供哪些服务?
定制开发 / 二次开发

基于 wp-pay-extensions/restrict-content-pro 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 30.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 20
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2017-11-13