Skip to main content

WooCommerce Plugin

Ask AI

1. Overview

The GLODIPAY WooCommerce Plugin integrates the GLODIPAY payment gateway into WooCommerce, enabling merchants to accept Credit/Debit Cards through a single unified platform.

Supported payment methods:

  • Visa / Mastercard / JCB / Amex / Diners / Maestro / Discover

Checkout compatibility:

  • WooCommerce Classic Checkout
  • WooCommerce Block Checkout (Gutenberg)

2. Requirements

RequirementMinimum Version
WordPress5.8+
WooCommerce7.0+
PHP7.4+
OpenSSLRequired

OpenSSL is a security library used by the plugin to sign payment requests and verify webhook authenticity. It is pre-installed by default on most web hosting providers (cPanel, WP Engine, Cloudways, SiteGround, etc.) — no action needed. To verify: WordPress Admin → Tools → Site Health → Info → Server and look for an OpenSSL entry.

Server requirements for webhook reception:

  • The merchant's site must be publicly accessible from the internet
  • HTTPS required
  • No IP/geo-blocking on the webhook endpoint /?wc-api=glodipay_webhook

3. Installation

Prerequisites

Always create a backup of your website before installing or updating any plugin.

Step 1: Download the Plugin

Contact GLODIPAY to obtain the plugin ZIP file.

Step 2: Log in to WordPress Admin

Navigate to https://yoursite.com/wp-admin

Step 3: Navigate to Add Plugins

Plugins → Add New Plugin

Step 3: Navigate to Plugins → Add New Plugin

Step 4: Upload Plugin

Click "Upload Plugin" at the top of the Add Plugins page.

Step 4: Click "Upload Plugin"

Step 5: Select ZIP File

Choose the ZIP file obtained from GLODIPAY.

Step 5: Select the plugin ZIP file

Step 6: Install

Once you have selected the ZIP file, click "Install Now" to proceed.

WordPress will install the plugin from the uploaded ZIP file.

Step 7: Activate

Click "Activate Plugin" after installation completes.

Step 7: Click "Activate Plugin"

Alternatively, activate from Plugins → Installed Plugins → GLODIPAY Payment Gateway → Activate.

Step 7: Activate from Installed Plugins list

Step 8: Verify

Visit your checkout page to confirm the GLODIPAY payment option appears.


4. Configuration

Step 1: Access GLODIPAY Merchant

  1. Log in to your Merchant Account at the GLODIPAY Merchant
  2. Ensure email verification and KYB are completed
  3. Navigate to API Keys from the left menu

Step 1: API Keys section in the GLODIPAY Merchant

Step 2: Retrieve API Keys

From the API Keys section, copy:

KeyDescription
Merchant IDUnique merchant identifier
Base EndpointAPI base URL (sandbox or production)
RSA Public KeyUsed to verify webhook signatures
RSA Private KeyUsed to sign payment requests
Expiration DateKey expiry date

Step 3: Configure the Plugin in WordPress

Navigate via either:

  • Method 1: Plugins → GLODIPAY Payment Gateway → Settings

Method 1: Access via Plugins list → Settings

  • Method 2: WooCommerce → Settings → Payments → GLODIPAY Payment Gateway → Manage

Method 2: Access via WooCommerce → Settings → Payments


4.1 Basic Settings

SettingDescriptionDefault
Enable/DisableActivate the payment gatewayEnabled
Sandbox ModeToggle between Sandbox (test) and Production (live)Disabled
Thank You Page URLCustom redirect URL after payment. Leave blank to use WooCommerce default(blank)

4.1 Basic Settings panel

Important: Always test in Sandbox Mode before switching to Production.


4.2 API Keys

Sandbox Settings

FieldDescription
Sandbox Merchant IDMerchant ID for test environment
Sandbox RSA Public KeyPublic key for sandbox
Sandbox RSA Private KeyPrivate key for sandbox
Sandbox Base URLDefault: https://checkout-sandbox.glodipayprocessing.com

Production Settings

FieldDescription
Production Merchant IDMerchant ID for live environment
Production RSA Public KeyPublic key for production
Production RSA Private KeyPrivate key for production
Production Base URLProvided by GLODIPAY

4.2 API Keys settings panel


4.3 Payment Iframe Action Buttons

Customize the action buttons displayed on the payment overlay.

Refresh Button

FieldDescriptionDefault
Show Refresh ButtonDisplay refresh button on iframeYes
Refresh Button TextButton label textRefresh
Refresh Button ColorButton background color (hex)#0073aa

Cancel Button

FieldDescriptionDefault
Show Cancel ButtonDisplay cancel button on iframeYes
Cancel Button TextButton label textCancel
Cancel Button ColorButton background color (hex)#dc3232

4.4 Debug Settings

SettingDescriptionDefault
Enable Debug ModeLog detailed payment info to WooCommerce LoggerNo
Block Checkout DebugAdditional logging for Block Checkout issuesNo

4.4 Debug Settings panel

Note: Only enable debug mode during troubleshooting. Disable before going to production.

When debug mode is on, logs are available at: WooCommerce → Status → Logs


5. Payment Flow

5.1 Classic Checkout Flow

Customer fills checkout form

Selects GLODIPAY as payment method

Clicks "Place Order"

WooCommerce creates order (status: pending)

Plugin contacts GLODIPAY Gateway to create a payment

Payment form loads in an overlay at the bottom of the page

Customer completes payment inside the overlay

GLODIPAY notifies the plugin of the payment result

Plugin updates order status

Customer is redirected to the Confirmation Page → Thank You page

5.2 Block Checkout Flow (Gutenberg)

Used when the checkout page is built with WooCommerce Blocks (Gutenberg editor):

Customer fills checkout form

Selects GLODIPAY as payment method

Clicks "Place Order"

Plugin contacts GLODIPAY Gateway to create a payment

Payment form loads in an overlay at the bottom of the page

(same as Classic Checkout from here)

5.3 Payment Iframe Overlay

When payment is initiated, a payment panel slides up from the bottom of the screen containing:

  • Title: "Complete Your Payment"
  • Refresh button — reloads the payment form (configurable)
  • Cancel button — cancels payment and reloads page (configurable)
  • Warning message: "Transaction takes a few seconds to process. Don't close the page."
  • Payment form — embedded GLODIPAY payment form

If the customer accidentally closes or refreshes the page, the payment panel will reappear automatically.

5.4 Information Sent to GLODIPAY

When a payment is initiated, the plugin automatically collects and sends the following information from the WooCommerce order to GLODIPAY:

  • Order details (reference number, amount, currency)
  • Customer billing information (name, email, phone, address)
  • Customer shipping information (if different from billing)
  • Payment return and notification URLs
  • Site logo and customer IP address

No manual action is required — the plugin handles this automatically.


6. Confirmation Page

After completing payment inside the overlay, the customer is redirected to a confirmation page that displays the transaction result.

What the Confirmation Page Shows

  • Transaction number
  • Payment method used
  • Transaction status

Status Polling

If the payment result is not yet available:

  • The page automatically refreshes every 5 seconds
  • Up to 10 retries
  • After 10 retries without a confirmed result → customer is redirected to the Thank You page

If the payment is successful:

  • A "Continue" button appears with a 30-second countdown
  • Page automatically redirects to the Thank You page after countdown

Thank You Page

The customer is redirected to:

  1. The custom URL set in Thank You Page URL (plugin settings), if configured
  2. Otherwise, the default WooCommerce order confirmation page

Status Colors

StatusColor
successfulGreen
failedRed
errorRed
under_reviewOrange

7. Webhook Integration

A webhook is an automatic notification that GLODIPAY sends to your site when a payment status changes. The plugin receives this notification and updates the WooCommerce order accordingly.

7.1 Webhook URL

GLODIPAY sends payment notifications to:

https://yoursite.com/?wc-api=glodipay_webhook&order_id=123

This URL is automatically configured by the plugin when a payment is created. No manual setup is required.

7.2 Signature Verification

All webhook notifications are digitally signed by GLODIPAY to confirm authenticity.

The plugin automatically verifies the signature on every incoming notification using the RSA Public Key configured in the plugin settings. No manual action is required.

If the signature is invalid: The notification is rejected and the order status is not updated. If orders remain stuck in pending after a successful payment, verify that the correct RSA Public Key is entered in the plugin configuration.

7.3 Webhook Notification Contents

When GLODIPAY sends a notification, it includes the following information. This is processed automatically by the plugin — no action required from the merchant.

InformationDescription
Order referenceLinks the notification to the correct WooCommerce order
Transaction statusPayment result (successful, failed, under review)
Transaction IDGLODIPAY's internal transaction identifier
Transaction numberHuman-readable transaction number
AmountPayment amount
CurrencyPayment currency
Amount paidActual amount received
Settlement amountAmount after fees
Payment method detailsCard or payment method information
FeesFee breakdown

7.4 Webhook Response

The plugin automatically sends a confirmation back to GLODIPAY upon receiving each notification. GLODIPAY uses this confirmation to mark the notification as successfully delivered.

7.5 Merchant Server Requirements

Critical: Webhook delivery will fail if GLODIPAY cannot reach your website.

Common causes of webhook failure:

CauseSymptomSolution
Site not publicly accessibleOrder stays pending after payment; no log entryEnsure the site has a public domain and valid SSL
DNS not propagatedWebhook never arrives shortly after domain changeWait for DNS propagation or check with a DNS lookup tool
IP / geo-blocking on merchant siteWebhook from GLODIPAY is blockedWhitelist the GLODIPAY Gateway server IP in your firewall or security plugin
Firewall blocking incoming requestsWebhook never arrivesAllow inbound connections from all external IPs on the webhook URL
Site requires VPN or restricted accessGLODIPAY cannot reach the siteRemove access restrictions on /?wc-api=glodipay_webhook

How to verify your site is accessible: Open the following URL in a browser or external tool to confirm it returns a response:

https://yoursite.com/?wc-api=glodipay_webhook

How to whitelist the GLODIPAY Gateway IP: Contact GLODIPAY support to obtain the current Gateway server IP addresses, then add them to your Cloudflare, firewall, or security plugin's allowlist.


8. Order Status Mapping

When GLODIPAY sends a payment notification, the plugin automatically updates the WooCommerce order to the corresponding status:

GLODIPAY StatusWooCommerce Order StatusWhat happens
successfulProcessingOrder confirmed; product stock reduced; customer cart cleared
failedFailedPayment failed; no stock change
under_reviewOn HoldPayment under review; order held pending manual check
refund_successfulUnchangedRefund issued by GLODIPAY — WooCommerce order status is not updated automatically
refund_partially_successfulUnchangedPartial refund issued by GLODIPAY — WooCommerce order status is not updated automatically

Refunds: When a refund is issued through the GLODIPAY Merchant, the WooCommerce order status does not change automatically. You must manually update the order status and process the refund record in WooCommerce Admin → Orders.


9. Checkout Field Validation

The plugin validates billing and shipping fields when a customer places an order. This validation applies to all payment methods — not only GLODIPAY.

Important: If a required field is removed or disabled from the checkout page, customers will not be able to complete any order regardless of which payment method they select.


9.1 Required Billing Fields

The following fields must remain present and enabled on the checkout page:

FieldField IDMaximum LengthNotes
First Namebilling_first_name255 charactersRequired
Last Namebilling_last_name255 charactersRequired
Email Addressbilling_email255 charactersRequired, must be valid email format
Phone Numberbilling_phone5–20 charactersRequired, minimum 5 characters
Address Line 1billing_address_1255 charactersRequired
Citybilling_city255 charactersRequired
Countrybilling_countryRequired

Phone number: The phone field requires at least 5 characters. If a customer enters a phone number shorter than 5 characters, checkout will fail. Ensure your checkout form does not allow very short phone numbers.


9.2 Optional Billing Fields

These fields can be hidden if not needed. They are sent to GLODIPAY if filled in, but are not required to complete an order.

FieldField IDMaximum Length
Address Line 2billing_address_2255 characters
State / Regionbilling_state255 characters
Postcodebilling_postcode25 characters

9.3 Shipping Field Limits

Shipping fields are only validated when the customer checks "Ship to a different address". They are ignored if the customer uses the billing address for shipping.

FieldField IDMaximum Length
First Nameshipping_first_name250 characters
Last Nameshipping_last_name250 characters
Address Line 1shipping_address_1250 characters
Address Line 2shipping_address_2250 characters
Cityshipping_city250 characters
State / Regionshipping_state20 characters
Postcodeshipping_postcode10 characters

9.4 Checkout Customization Compatibility

Using Checkout Field Editor plugins

If you use a plugin such as Checkout Field Editor for WooCommerce to customize checkout fields:

ActionField IDImpactRecommendation
Hide / disable Phone Numberbilling_phoneCheckout blocked for all payment methodsKeep visible and required
Hide / disable First Namebilling_first_nameCheckout may fail; data missing from paymentKeep active
Hide / disable Last Namebilling_last_nameCheckout may fail; data missing from paymentKeep active
Hide / disable Emailbilling_emailCheckout may fail; data missing from paymentKeep active
Hide / disable Address Line 1billing_address_1Checkout may fail; data missing from paymentKeep active
Hide / disable Citybilling_cityCheckout may fail; data missing from paymentKeep active
Hide Address Line 2billing_address_2No error — safe to hideAllowed
Hide State / Regionbilling_stateNo error — safe to hideAllowed
Hide Postcodebilling_postcodeNo error — safe to hideAllowed
Reorder fieldsNo impactAllowed
Change field labelsNo impactAllowed
Add extra custom fieldsNo impact on GLODIPAYAllowed

Note: Phone number validation runs for all payment methods. Even if GLODIPAY is not selected at checkout, an invalid phone number will block the order.

Using a page builder (Elementor, Divi, etc.)

If your checkout page is built with a page builder, ensure that all required billing fields listed in Section 9.1 are present in the checkout form. The GLODIPAY plugin is compatible with any theme or page builder that properly loads WooCommerce.

Adding custom fields to checkout

Adding custom fields to the checkout page does not affect GLODIPAY payment processing. If you need custom fields, contact your web developer or WooCommerce specialist.


10. Troubleshooting

Order Stuck in Pending After Payment

Symptoms: Customer completed payment but the order still shows as pending.

Diagnosis steps:

  1. Enable Debug Mode: WooCommerce → Settings → Payments → GLODIPAY Payment Gateway → Manage → Enable Debug Mode
  2. Reproduce the issue and check the log: WooCommerce → Status → Logs

WooCommerce Logs screen

  1. Check that your site is publicly accessible — open this URL from outside your network or use a tool: https://yoursite.com/?wc-api=glodipay_webhook
  2. Check if your site has a security plugin, firewall, or geo-restriction that could block incoming connections from GLODIPAY's servers
  3. Contact GLODIPAY support with the Order ID — they can check whether the notification was sent and what error occurred on their end

Common causes:

CauseHow to identifyFix
Site not publicly accessibleThe webhook URL fails to load from external toolsEnsure the site has a live domain with valid SSL
IP or geo-restrictionSite only loads via VPN or from certain countriesRemove access restrictions on the webhook URL
Firewall blocking incoming connectionsNo log entries after paymentOpen inbound access; add GLODIPAY IP to allowlist (contact support for IP)
Incorrect RSA Public KeyLog shows signature verification failedRe-copy the RSA Public Key from GLODIPAY Merchant → API Keys

Manual fix for stuck orders: WooCommerce Admin → Orders → Select Order → Change status to Processing → Save


Payment Form Not Appearing

  • Verify the plugin is active: Plugins → Installed Plugins → GLODIPAY Payment Gateway
  • Verify API keys are entered: WooCommerce → Settings → Payments → GLODIPAY Payment Gateway → Manage
  • Try a different browser or disable browser extensions
  • Enable Debug Mode in plugin settings and check the log: WooCommerce → Status → Logs

Customer Returns to Checkout — Payment Form Reappears

This is expected behavior. If a customer navigates back to the checkout page after initiating a payment, the plugin displays the existing payment form again instead of creating a new payment. This prevents duplicate charges.

Bookmarks

No bookmarks yet.
Hover over a heading and click to save a section.