Title: Melon Payment Gateway for WooCommerce
Author: getmelon
Published: <strong>27, Avientu de 2025</strong>
Last modified: 29, Avientu de 2025

---

Guetar plugins

![](https://ps.w.org/melon-payment-gateway/assets/icon-256x256.png?rev=3428418)

# Melon Payment Gateway for WooCommerce

 By [getmelon](https://profiles.wordpress.org/getmelon/)

[Download](https://downloads.wordpress.org/plugin/melon-payment-gateway.zip)

 * [Details](https://ast.wordpress.org/plugins/melon-payment-gateway/#description)
 * [Reviews](https://ast.wordpress.org/plugins/melon-payment-gateway/#reviews)
 *  [Installation](https://ast.wordpress.org/plugins/melon-payment-gateway/#installation)
 * [Development](https://ast.wordpress.org/plugins/melon-payment-gateway/#developers)

 [Support](https://wordpress.org/support/plugin/melon-payment-gateway/)

## Description

Melon Payment Gateway is a complete payment integration plugin that allows your 
store to accept payments through:

 * **Melon Wallet** – Direct wallet-to-wallet payments with OTP verification
 * **Payment Gateway** – Card and mobile money payments via Paga

#### Key Features

 * Complete payment flow with phone number validation
 * OTP verification for secure transactions
 * Melon wallet balance checking
 * Support for both traditional and block-based checkout
 * Real-time payment status updates
 * Webhook support for payment confirmations
 * Mobile-responsive payment modals
 * Secure API integration with proper validation
 * Payment reference tracking

#### Payment Flow

 1. Customer enters phone number (Melon ID)
 2. System validates Melon ID via API
 3. OTP verification (if required)
 4. Payment method selection (Melon Wallet or Gateway)
 5. Payment processing and confirmation
 6. Order completion

#### Requirements

 * WooCommerce 5.0 or higher
 * WordPress 5.8 or higher
 * PHP 7.4 or higher
 * Valid Melon API credentials

#### Getting Started

 1. Install and activate the plugin
 2. Go to Settings > Melon
 3. Enter your Melon API credentials:
 4.  * Base URL
     * Public Key
     * Source
     * Note: Origin is automatically detected from your WordPress site URL
 5. Enable the Melon payment gateway in Settings > Payments
 6. Start accepting payments!

#### Support

For support, documentation, and updates, visit [getmelon.co](https://getmelon.co)

### Additional Information

#### API Integration

The plugin integrates with the Melon API to provide secure payment processing. All
API communications are encrypted and validated. The plugin supports both staging
and production environments.

#### Webhook Configuration

The plugin automatically registers a webhook endpoint at `/wp-json/melon/v1/paga-
webhook` for payment confirmations. No additional configuration is required for 
webhook functionality.

#### Custom Metadata

The plugin supports sending custom order metadata to the Melon API. Enable this 
feature in Settings > Melon to send additional order information including customer
details, billing and shipping addresses.

#### HPOS Compatibility

This plugin is fully compatible with WooCommerce High-Performance Order Storage (
HPOS) and WooCommerce Blocks checkout, ensuring compatibility with the latest features.

#### Security

All user inputs are sanitized and validated. API credentials are stored securely
in the WordPress database. The plugin follows WordPress coding standards and security
best practices.

### External Services

This plugin communicates with external services operated by Melon to provide payment
processing functionality.

#### Melon Payment Infrastructure

The plugin integrates with the Melon payment infrastructure API (https://api.getmelon.
co) to process payments, verify phone numbers, and handle transaction confirmations.

**Why this service is required:**

The Melon payment infrastructure is essential for processing payments through the
Melon Wallet and Payment Gateway (Paga). Without this service, the plugin cannot
function.

**What data is sent:**

 * Phone number (Melon ID) – Required for wallet verification and payment processing
 * Order reference – Unique identifier for tracking transactions
 * Payment amount – Transaction amount in the store’s currency
 * Payment metadata (optional) – Additional order information if custom metadata
   is enabled, including:
    - Order ID
    - Customer name, email, and phone
    - Billing and shipping addresses
    - Product information

**When data is sent:**

 * During checkout – When customer initiates payment
 * During payment verification – When OTP is verified
 * During payment confirmation – When payment is processed
 * During webhook callbacks – When payment status is updated

**Who provides the service:**

Melon (https://getmelon.co) provides the payment infrastructure and API services.

**Service Links:**

 * Terms of Service: https://getmelon.co/terms
 * Privacy Policy: https://getmelon.co/privacy

## Installation

#### Automatic Installation

 1. Go to Plugins > Add New
 2. Search for “Melon Payment Gateway”
 3. Click “Install Now”
 4. Activate the plugin

#### Manual Installation

 1. Download the plugin zip file
 2. Go to Plugins > Add New > Upload Plugin
 3. Choose the zip file and click “Install Now”
 4. Activate the plugin

#### Configuration

 1. Navigate to Settings > Melon
 2. Enter your Melon API credentials:
 3.  * Base URL: Your Melon API base URL (e.g., https://staging-api.getmelon.co/api/
       v1)
     * Public Key: Your Melon public key (format: pk_live_* or pk_test_*)
     * Source: Source identifier (e.g., woocommerce)
     * Note: Origin is automatically detected from your WordPress site URL (no manual
       configuration needed)
 4. Go to Settings > Payments
 5. Enable and configure the Melon payment gateway
 6. Set the gateway title and description as desired

## FAQ

### Does this plugin work with WooCommerce Blocks?

Yes, the plugin is fully compatible with both traditional and block-based checkout.

### What payment methods are supported?

The plugin supports two payment methods:
 * Melon Wallet – Direct wallet payments
with OTP verification * Payment Gateway – Card and mobile money via Paga

### Is OTP verification required?

OTP verification is required for new users or when the phone number is not validated.
Validated Melon IDs skip OTP verification automatically.

### How do I get my API credentials?

Contact Melon support at [getmelon.co](https://getmelon.co) to obtain your API credentials.

### Does the plugin support webhooks?

Yes, the plugin includes webhook support for payment confirmations from Paga. The
webhook endpoint is available at: `/wp-json/melon/v1/paga-webhook`

### What happens if a user doesn’t have a Melon wallet?

If a user hasn’t created a Melon wallet, the “Pay with Melon” option will be disabled
and “Pay with other options” will be automatically selected.

### Is the plugin mobile responsive?

Yes, all payment modals are fully mobile responsive and optimized for mobile devices.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Melon Payment Gateway for WooCommerce” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ getmelon ](https://profiles.wordpress.org/getmelon/)

[Translate “Melon Payment Gateway for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/melon-payment-gateway)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/melon-payment-gateway/),
check out the [SVN repository](https://plugins.svn.wordpress.org/melon-payment-gateway/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/melon-payment-gateway/)
by [RSS](https://plugins.trac.wordpress.org/log/melon-payment-gateway/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release
 * Melon Wallet payment integration
 * Payment Gateway (Paga) integration
 * OTP verification flow
 * Wallet balance checking
 * Webhook support
 * Mobile-responsive modals
 * WooCommerce Blocks compatibility
 * Payment reference tracking
 * Complete API integration with real-time reference ID

## Meta

 *  Version **1.0.0**
 *  Last updated **3 meses ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/melon-payment-gateway/)
 * Tags
 * [paga](https://ast.wordpress.org/plugins/tags/paga/)[payment gateway](https://ast.wordpress.org/plugins/tags/payment-gateway/)
   [wallet](https://ast.wordpress.org/plugins/tags/wallet/)[woocommerce](https://ast.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://ast.wordpress.org/plugins/melon-payment-gateway/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/melon-payment-gateway/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/melon-payment-gateway/reviews/)

## Contributors

 *   [ getmelon ](https://profiles.wordpress.org/getmelon/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/melon-payment-gateway/)