Broadleaf Microservices
  • v1.0.0-latest-prod

Enabling Payment Integrations

This guide covers enabling the out-of-box payment integrations in the frontend.

PayPal Express Checkout

To enable PayPal Express checkout, set the following properties:

  • NEXT_PUBLIC_PAYMENT_GATEWAY_TYPE=PAYPAL_CHECKOUT_V2

    • PAYPAL_CHECKOUT_V2 works with the blc-micro-paypal Microservices module and integrates with the latest PayPal APIs.

    • Integrating with legacy APIs will require some customizations for the frontend at this time. For the backend, use the blc-paypal module.

  • NEXT_PUBLIC_PAYMENT_PAYPALCHECKOUT_CLIENT_ID to your client ID.

    Tip

    To find your client ID:

    1. Sign into your PayPal account

    2. Go to "My Apps & Credentials" (should be automatically redirected here after signing in)

    3. Select the appropriate environment for your app: Sandbox or Live

    4. Find and select your app under "REST API apps"

      • Or create a new one if you haven’t yet

    5. Copy the "Client ID"

  • NEXT_PUBLIC_PAYMENT_PAYPALCHECKOUT_CART to true if you want allow initiating checkout from the Cart using the "Buy Now" PayPal button.

Stripe Checkout

To enable accepting payments with Stripe:

  1. Set the property NEXT_PUBLIC_PAYMENT_GATEWAY_TYPE=STRIPE

  2. Provide the following properties: