This guide covers enabling the out-of-box payment integrations in the frontend.
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:
|
NEXT_PUBLIC_PAYMENT_PAYPALCHECKOUT_CART
to true
if you want allow initiating checkout from the Cart using the "Buy Now" PayPal button.
To enable accepting payments with Stripe:
Set the property NEXT_PUBLIC_PAYMENT_GATEWAY_TYPE=STRIPE
Provide the following properties:
NEXT_PUBLIC_STRIPE_PUBLIC_API_KEY
- Your Stripe public API key
Tip
|
To find your public API key:
|