Releases: own-pay/OwnPay-WordPress
Releases · own-pay/OwnPay-WordPress
Release list
v1.3.0
OwnPay Payment Gateway 1.3.0
- Fixed cancel/failed payment redirect to use guest-compatible pages (Pay for Order for failed, Cart for cancelled).
- Replaced transient-based customer notice with WooCommerce session for reliable delivery across redirects.
- Fixed empty Gateway Transaction ID in redirect success order note by checking multiple API field name variants.
- Removed dead binary dashboard-menu-icon.jpg that was still in the repo.
- Added server-side payment status verification and customer-facing notices for failed and cancelled payment redirects from OwnPay.
- Extracted verify_payment_by_id() reusable method from sync_payment_status() to avoid code duplication.
- Added wp_unslash() to $_SERVER header fallback values in webhook handler.
- Wrapped method_title and method_description in __() for translation support.
- Changed admin menu capability from manage_options to manage_woocommerce for consistency with WooCommerce extension guidelines.
- Added floatval() cast to fee percentage in cart fee label.
- Fixed WordPress Plugin Checker warnings: ordered i18n placeholders, nonce verification comments for redirect parameters.
- Added automated GitHub Actions release workflow with version-tagged releases and plugin zip asset generation.
- Made admin payment list page responsive on mobile devices.
- Renamed settings labels: "OwnPay API Endpoint URL" to "OwnPay Base URL", "Custom Gateway Logo" to "OwnPay Gateway Logo".
- Added info tooltip on Webhook Secret setting.
v1.2.0
OwnPay Payment Gateway 1.2.0
- Removed stale binary dashboard menu icon (196KB JPG) in favor of the existing SVG icon.
- Added deactivation hook to clean up the runtime cache version option.
- Fixed version constant mismatch:
OPWC_VERSIONnow correctly reflects1.2.0instead of the stale1.0.0value. - Updated Plugin URI to point to the WordPress.org plugin directory listing instead of the GitHub repository.
- Improved
getallheaders()fallback to only iterateHTTP_*server variables along withCONTENT_TYPEandCONTENT_LENGTH, avoiding unnecessary iteration over all$_SERVERkeys. - Removed redundant
strval()wrappers aroundsanitize_text_field()calls where applicable. - Refactored self-hooking in class constructors: moved
add_action/add_filterregistrations from__construct()into dedicatedinit()methods called externally, following WordPress.org coding best practices. Affected classes:OPWC_Payment,OPWC_Hooks,OPWC_Menu_Settings, andOPWC_Admin. - Added
index.phpsilence files to all subdirectories (admin/css/,admin/js/,admin/partials/,admin/partials/views/,admin/partials/views/payment-list/,assets/,assets/js/,assets/logo/,languages/) to prevent directory listing on servers. - Fixed fallback version string in
OPWCclass constructor to match the current release. - Expanded changelog entries for this release with specific technical details.
v1.1.0
v1.0.0 - Initial Release of OwnPay WordPress
Release v1.0.0: Initial Release of OwnPay WordPress Plugin
We are excited to announce the initial release of OwnPay WordPress, a secure, high-performance, and lightweight WooCommerce payment gateway plugin designed natively for the OwnPay payment platform.
This plugin allows WordPress stores to accept customer payments via Credit/Debit Cards, local bank transfers, and mobile banking options on a single white-labeled endpoint.
🚀 Key Features
- Native OwnPay Integration: Seamless token-based checkout routing using OwnPay's core API (
POST /api/v1/paymentsand status checks). - Double-layered verification:
- Secure Webhooks: Support for server-to-server callback notifications secured by timing-safe HMAC-SHA256 signature verification.
- Instant Redirect Sync: Synchronous transaction state verification on checkout thank-you screens for immediate order processing.
- WordPress Media Library Integration: Upload or select custom checkout gateway logos directly from settings using WordPress's native media gallery.
- Layout Sizing Protection: Automatically downscales checkout logos (
max-height: 24px) to safeguard store design aesthetics, regardless of uploaded image sizes. - Administrative Audit Logs: View payment logs, search by status, and inspect raw API request/response payloads directly in the admin dashboard.
- Custom Processing Fees: Charge flat or percentage fees dynamically during customer checkout.
- Sidebar Menu Fixes: Constrained dashboard menu icons (
20px x 20px) to prevent sidebar layouts from breaking.
🛠️ Installation & Setup
- Download the
ownpay-wordpress.ziparchive. - Go to Plugins -> Add New -> Upload Plugin in your WordPress dashboard, choose the file, and click Install Now.
- Activate the plugin.
- Navigate to WooCommerce -> Settings -> Payments -> OwnPay and configure your credentials:
- OwnPay API Endpoint URL
- API Key (Bearer Token)
- Webhook Secret
- Copy the displayed Webhook URL (e.g.
https://your-site.com/?wc-api=ownpay) and configure it under your OwnPay Merchant Dashboard webhooks list.
📋 Compatibility
- WordPress: Requires 5.1+, tested up to 7.0
- WooCommerce: Tested up to 10.1.2
- PHP: Requires 7.4+ (fully tested on PHP 8.3)
- License: GPLv2 or later