Stripe

Liferay DXP 2024.Q2+/Portal GA120+

Liferay provides a client extension that integrates with Stripe. It uses the payment integration client extension as a base. See Configuring Payment Methods to read more about the payment methods available out-of-the-box with Liferay.

Note

Currently, the Stripe client extension is only compatible with Liferay SaaS.

Install the Stripe Client Extension

  1. Log into your Liferay account at marketplace.liferay.com.

  2. Search for Liferay Commerce Connector to Stripe and select it.

  3. Click Get App.

  4. Select your account and check the box to confirm you’ve read the End User License Agreement and the Terms of Service.

  5. Click Get App.

    The app is ready for provisioning. Click Continue to Install to go the app’s App Provisioning page. Click Actions (Actions icon) → Install. You can also install the app by selecting View DetailsInstall.

    This page also has a Details tab where you can view the order details.

  6. Select a project from the list. You cannot select projects that don’t have enough resources.

  7. Choose an environment. You must have an environment that has an EXT prefix.

  8. Click Install.

  9. Log in as an administrator and verify that the OAuth Application User Agent was added to Liferay. Open the Global Menu (Applications Menu icon) and go to Control PanelOAuth2 Administration.

    The Liferay Stripe Commerce Payment Integration OAuth Application User Agent is added when you deploy the client extension.

Verifying the Addition of Stripe as a Payment Method

  1. Open the Global Menu (Applications Menu icon) and go to Control PanelSites.

  2. Add a new Minium site.

  3. Now, open the Global Menu (Applications Menu icon) and go to CommerceChannels.

  4. Select Minium Portal and scroll down to the Payment Methods section. Verify the addition of Stripe as a new payment method here. It is inactive by default.

    Verify the addition of Stripe as a new payment method.

  5. Select the new payment integration and activate it using the Active toggle.

  6. Click Save. Two new tabs, Eligibility and Configuration, appear for the payment integration.

    The configuration tab contains an input field. You must enter an API key that you can obtain from your Stripe Dashboard.

    Enter your Stripe API key to complete the integration.

    You can go to the Eligibility tab to select specific order types or payment terms to be eligible for the payment integration. By default, it is eligible for all order types and payment terms.

  7. Click Save.

  8. Open the site and use the account selector to create a new account.

  9. Add a few items to your cart.

  10. Open the mini cart and click Submit. This starts the checkout flow.

  11. Continue checking out until you reach the order summary page. Click Continue to redirect to Stripe. Enter the necessary details and click Pay. After confirming payment, you’re automatically redirected back to Liferay. Open the Global Menu (Applications Menu icon) and go to CommercePayments to verify the payment’s completion.

Go to Stripe and enter your payment details to complete the order.

Note

The above flow uses Stripe’s test mode. Stripe provides numerous test card numbers to replicate different payment scenarios. See How to use test cards for more information.

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy