WC Retry Payment
WooCommerce one-time payment retry links with PVZ/contact change support. Generate secure tokenized URLs for customers to complete failed payments.
★ 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.zipGenerate 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,
noindexheaders, single-use enforcement
How it works
- Admin opens an unpaid order and clicks "Create payment link" in the sidebar metabox
- A unique token is generated and stored as order meta
- Admin copies the link and sends it to the customer (via messenger, email, etc.)
- Customer opens the link, optionally updates contacts/PVZ, selects payment method, and pays
- On successful payment the token is marked as used; the order note records everything
Installation
- Upload
wc-retry-payment.phpto/wp-content/plugins/wc-retry-payment/ - Activate through Plugins menu
- 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.