Beschrijving
Melon Payment Gateway for WooCommerce
Beschrijving
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
- Customer enters phone number (Melon ID)
- System validates Melon ID via API
- OTP verification (if required)
- Payment method selection (Melon Wallet or Gateway)
- Payment processing and confirmation
- Order completion
Requirements
- WooCommerce 5.0 or higher
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Valid Melon API credentials
Getting Started
- Install and activate the plugin
- Go to Settings > Melon
- Enter your Melon API credentials:
- Base URL
- Public Key
- Source
- Note: Origin is automatically detected from your WordPress site URL
- Enable the Melon payment gateway in Settings > Payments
- Start accepting payments!
Support
For support, documentation, and updates, visit 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
Installatie
Automatic Installation
- Go to Plugins > Add New
- Search for “Melon Payment Gateway”
- Click “Install Now”
- Activate the plugin
Manual Installation
- Download the plugin zip file
- Go to Plugins > Add New > Upload Plugin
- Choose the zip file and click “Install Now”
- Activate the plugin
Configuration
- Navigate to Settings > Melon
- Enter your Melon API credentials:
- 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)
- Go to Settings > Payments
- Enable and configure the Melon payment gateway
- 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 PagaIs 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 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-webhookWhat 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.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Melon Payment Gateway for WooCommerce” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Melon Payment Gateway for WooCommerce” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via 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



