Skip to content

Releases: own-pay/OwnPay-WordPress

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 09:50
c359be3

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

Choose a tag to compare

@github-actions github-actions released this 24 Aug 03:25
3122a57

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_VERSION now correctly reflects 1.2.0 instead of the stale 1.0.0 value.
  • Updated Plugin URI to point to the WordPress.org plugin directory listing instead of the GitHub repository.
  • Improved getallheaders() fallback to only iterate HTTP_* server variables along with CONTENT_TYPE and CONTENT_LENGTH, avoiding unnecessary iteration over all $_SERVER keys.
  • Removed redundant strval() wrappers around sanitize_text_field() calls where applicable.
  • Refactored self-hooking in class constructors: moved add_action/add_filter registrations from __construct() into dedicated init() methods called externally, following WordPress.org coding best practices. Affected classes: OPWC_Payment, OPWC_Hooks, OPWC_Menu_Settings, and OPWC_Admin.
  • Added index.php silence 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 OPWC class constructor to match the current release.
  • Expanded changelog entries for this release with specific technical details.

v1.1.0

Choose a tag to compare

@fattain-naime fattain-naime released this 11 Jul 23:13
4c88856

Full Changelog: v1.0.0...v1.1.0

v1.0.0 - Initial Release of OwnPay WordPress

Choose a tag to compare

@fattain-naime fattain-naime released this 27 Jun 10:39
04d7e36

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/payments and 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

  1. Download the ownpay-wordpress.zip archive.
  2. Go to Plugins -> Add New -> Upload Plugin in your WordPress dashboard, choose the file, and click Install Now.
  3. Activate the plugin.
  4. Navigate to WooCommerce -> Settings -> Payments -> OwnPay and configure your credentials:
    • OwnPay API Endpoint URL
    • API Key (Bearer Token)
    • Webhook Secret
  5. 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