Moneris Payment Gateway Integration for Online Invoice Payment

Moneris
Moneris Logo

Drupal-Based Solution

Company: Gold Business Technologies Ltd.

Customers increasingly requested secure, non-PayPal options for paying invoices online. To meet this demand, the company selected Moneris as the payment processor. However, integrating Moneris into the existing infrastructure presented significant technical challenges due to an outdated website and legacy systems.

Challenges Encountered

  • The primary website ran on an older version of Drupal, lacking modern API-friendly architecture and the base platform it was running was not easy to upgrade since it was built with a turnkey application base.
  • The internal online ERP web interface blocked external connections (including Moneris callbacks and hosted payment pages), preventing straightforward integration.
  • A full rewrite of the ERP system was not feasible due to time, cost, and because it was proprietory third-party software.
  • Moneris required secure, PCI-compliant handling of payment data, with support for both hosted and direct post methods.

Solution Design & Implementation

I led the integration project end-to-end using Moneris developer documentation and their sandbox/test environment. Key achievements included:

  • Developed a custom front-end payment page within Drupal that matched the site's existing design and branding for a seamless user experience.
  • Implemented secure communication with the Moneris API, supporting:
    • Hosted Payment Page (Moneris Checkout) to offload sensitive card data handling.
    • Receipt and callback handling to update invoice status in the ERP system.
  • Bipassed the need for the ERP's external connection restrictions by building a secure, authenticated intermediary bridge:
    • Used server-side scripting (PHP within Drupal) to poll or receive Moneris transaction notifications.
    • Mapped payment confirmations to internal invoice records without exposing the ERP directly to the internet.
  • Ensured full PCI compliance by never storing card details locally and relying on Moneris's tokenization and hosted solutions.
  • Thoroughly tested the flow in the Moneris development environment, including edge cases (declines, timeouts, partial payments).

    Final page design

Business & Customer Impact

The completed integration enabled customers to pay invoices directly and securely on the company website using credit/debit cards via Moneris—eliminating dependency on PayPal and improving payment convenience. This upgrade significantly enhanced customer satisfaction, reduced friction in the billing process, and supported business growth by offering a preferred payment method.

The project demonstrated strong skills in:

  • Legacy system integration and modernization without full rewrites
  • API integration with third-party payment gateways (Moneris Hosted Payment Page & callbacks)
  • Secure, PCI-compliant web development in a Drupal/PHP environment
  • Creative problem-solving to bridge incompatible internal and external systems
  • End-to-end ownership from requirements gathering through testing and deployment