Integrated Stripe Payment with Liferay DXP for a US-Based Education Provider

Integrated Stripe Payment with Liferay DXP for a US-Based Education Provider

A US-based education company offering online test-preparation courses and study materials operated on its public-facing website on Liferay DXP, with customer orders recorded in its CRM. Its existing payment gateway had become increasingly difficult to manage and update, limiting its ability to manage online transactions and support evolving payment requirements.

The client sought to replace its legacy payment gateway with Stripe payment integration in Liferay DXP while preserving the existing order management process and CRM connectivity. The new implementation needed to support secure card transactions, bank authentication protocols such as 3D Secure, and reliable payment processing without compromising the order creation workflow.

Project Brief

Our experienced Liferay developers built a modular integration architecture in Liferay that connected Stripe's payment capabilities to the website's checkout experience and the client's CRM. The implementation incorporated a Stripe-powered checkout widget, server-side payment processing, and a webhook mechanism to coordinate transaction authorization, order creation, and payment capture. A controlled feature rollout enabled the transition from the legacy gateway, while the same Stripe configuration was extended to a separate course booking form.

Business Needs & Challenges

Technology Stack & Tools

Liferay DXP 7.4
Stripe Payment Element & Stripe Checkout
Java
MySQL Database Server
Elasticsearch
OSGi Framework

Implementation Overview

Centralized Stripe Configuration

We configured Stripe credentials, webhook signing secrets, and account identifiers through Liferay's OSGi system configuration. Administrators managed environment-specific settings through the Control Panel, while the Stripe library was packaged within the custom module.

Integrated Checkout and Secure Payments

We developed a custom Liferay MVC portlet covering shipping, billing, and order review. Stripe Payment Element handled card entry and bank authentication, while customer information remained within the Liferay checkout form.

Server-Side Payment and Order Management

Custom MVC resource commands validated customer authentication and payment amounts, managed Stripe customer records, and initiated delayed payment capture. Unique order identifiers and shared caching prevented duplicate requests and supported order-status retrieval.

Webhook Integration and Transaction Validation

We implemented a webhook endpoint using OSGi HTTP Whiteboard to validate Stripe events and prevent duplicate processing. It initiated CRM order creation after payment authorization and captured funds only after the order was confirmed.

Multi-Scenario Payment Integration

A feature flag supported the transition from the legacy gateway to Stripe. Free orders bypassed payment processing, while a separate course booking form used Stripe Checkout and Liferay Objects to maintain booking records and payment statuses.

Business Impacts

Improved Payment Security

Improved Payment Security

Sensitive card information remained within Stripe's payment environment rather than reaching the client's servers. Webhook signature verification and centralized credential management added further safeguards to payment processing across the website and booking application.

Reliable Payment and Order Coordination

Reliable Payment and Order Coordination

Payment capture took place only after successful CRM order creation. When the CRM rejected an order due to validation errors or amount mismatches, the payment authorization was released instead of captured.

Simplified Payment Administration

Simplified Payment Administration

Administrators gained centralized control over Stripe credentials, webhook settings, and environment-specific configurations through the Liferay Control Panel. This eliminated the need to change application code when managing payment settings across environments.

Reduced Legacy Maintenance Complexity

Reduced Legacy Maintenance Complexity

Replacing the previous gateway established a modular payment architecture within Liferay. Dedicated components handled checkout interactions, payment operations, and webhook processing, making the implementation easier to manage and maintain.

Consistent Payment Experience Across Applications

Consistent Payment Experience Across Applications

The shared Stripe configuration supported both the primary website checkout and the separate course booking form. The system also reused existing Stripe customer records for returning buyers, keeping payment interactions consistent.

Proactive Liferay Support and Maintenance That Strengthened Security and Platform Stability for a Leading Ecommerce Business
Close icon
Text to Identify Refresh CAPTCHA

Happy to Connect, Let’s talk.

DXP | ERP | E-Commerce | AI-ML | DevOps | Bespoke Solutions


Trusted By