=== Cryptoinfra for Restrict Content Pro ===
Contributors: cryptoinfra
Tags: crypto, usdt, payment gateway, restrict content pro, membership
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Take crypto for one-time Restrict Content Pro memberships through the Cryptoinfra hosted checkout.

== Description ==

The member registers, is sent to the Cryptoinfra hosted checkout, pays in the coin they choose,
and the membership activates as soon as the payment is confirmed. Prices are in US dollars.

* The payment is marked complete only on the payment as re-read from the Cryptoinfra API —
  never on the webhook body alone — and never twice. Restrict Content Pro then activates the
  membership itself.
* Every webhook is verified (HMAC-SHA256). The return page re-reads the payment too.
* Underpaid or late payments stay pending with a membership note for you to decide.
* Expired payments mark the payment Failed — never one that is already complete.

= Recurring memberships are not supported =

Crypto has no pull payments: nobody can charge a wallet again automatically. The gateway
supports one-time payments only (a signup fee is fine — it is part of the first payment).
Auto-renewing signups and free trials are refused with a clear message. Use membership levels
with a fixed duration, or turn auto-renew off.

= Embedded payment page =

Restrict → Settings → Payments → "Payment page": "Redirect to the payment page" (the default)
sends the member to the Cryptoinfra payment page. "Embedded on your site" keeps them on your site:
they pay on your registration success page, inside your theme, in a frame that fits the page, and
once paid they land on the success page itself. The link to that page carries a key stored on the
payment, so nobody else can open it. "Embedded theme" picks Light, Dark or Automatic (follows the
member's device).

Requirements: Restrict Content Pro 3.0 or later, currency USD.

== Installation ==

1. Upload the plugin and activate it.
2. Restrict → Settings → Payments: enable "Cryptoinfra (crypto, one-time only)", paste your API
   key and callback secret (Cryptoinfra dashboard → Payments → Gateway settings).
   RCP sandbox mode uses the Cryptoinfra sandbox with a sandbox key.
3. Currency: US Dollars.

The webhook URL (shown on the settings page) is sent with every payment automatically when the
site runs on https.

== Changelog ==

= 1.1.0 =
* Embedded payment page: a "Payment page" setting to show the Cryptoinfra payment page inside your own site (it fits any width and is as tall as the page), or redirect as before. "Embedded theme": light, dark or automatic.
* Payment pages open on pay.cryptoinfra.net.

= 1.0.0 =
* First release.
