WP Manifestindependent plugin directory
manifest / ecommerce / wc-retry-payment

WC Retry Payment

WooCommerce one-time payment retry links with PVZ/contact change support. Generate secure tokenized URLs for customers to complete failed payments.

by Nemirov · github.com/al-nemirov/wc-retry-payment

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/al-nemirov/wc-retry-payment/archive/refs/heads/main.zip

Generate secure one-time payment links for WooCommerce orders. Let customers complete failed or pending payments — with the option to change their PVZ (pickup point), contact details, and payment method.

Features

  • Tokenized payment links — 32-character hex tokens with configurable TTL (default 72 hours)
  • Admin metabox — generate, copy, revoke, and regenerate links directly from the order edit screen
  • Contact editing — customers can update name, phone, and email before paying
  • PVZ change — if the order uses Yandex Delivery PVZ shipping, customers can select a different pickup point via the built-in widget
  • Payment method selection — only online payment gateways are shown (COD/BACS/cheque filtered out)
  • Shipping method auto-switch — COD-type Yandex Delivery methods (yd_self_after, yd_courier_after) are automatically switched to prepaid equivalents when paying online
  • Audit trail — every action (link creation, payment, contact/PVZ changes) is logged as an order note
  • Result page — success/failure page with retry option if the link is still valid
  • Security — nonce verification, token validation, noindex headers, single-use enforcement

How it works

  1. Admin opens an unpaid order and clicks "Create payment link" in the sidebar metabox
  2. A unique token is generated and stored as order meta
  3. Admin copies the link and sends it to the customer (via messenger, email, etc.)
  4. Customer opens the link, optionally updates contacts/PVZ, selects payment method, and pays
  5. On successful payment the token is marked as used; the order note records everything

Installation

  1. Upload wc-retry-payment.php to /wp-content/plugins/wc-retry-payment/
  2. Activate through Plugins menu
  3. Flush permalinks: go to Settings → Permalinks and click Save

Requirements

  • WordPress 5.8+
  • WooCommerce 5.0+
  • PHP 7.4+
  • At least one online payment gateway (YooKassa, Stripe, etc.)
  • (Optional) Yandex Delivery plugin for PVZ change functionality

URL structure

/retry-payment/{token}/         — payment form
/retry-payment/{token}/result/  — result page (after payment attempt)

License

MIT — see LICENSE.