Last updated

PayPal Checkout Adapter

Overview

The PayPal Checkout Adapter integrates PayPal's payment platform with Norce Checkout, enabling merchants to offer PayPal's comprehensive payment solution within the Norce Commerce platform. PayPal provides a globally recognized payment gateway supporting PayPal accounts, credit/debit cards, Pay Later options, and Venmo (in supported markets) through a single integration.

This adapter is part of Norce Checkout (NCO) and implements PayPal's JavaScript SDK integration. The adapter handles the complete payment flow from checkout initialization through order completion, including webhook handling for asynchronous payment events and post-purchase operations like capture, void, and refund.

Integration Flows

The PayPal adapter supports two integration approaches:

SDK-based Flow (Recommended): The frontend renders PayPal buttons using the JavaScript SDK. The adapter returns SDK settings that the frontend uses to initialize PayPal's UI components. This provides the best user experience with PayPal's native checkout experience.

Redirect Flow: For scenarios where SDK integration isn't possible, the adapter supports a redirect-based flow. The user is redirected to PayPal's hosted checkout page and returns to configured URLs after completing or cancelling payment.

Payment Intent Options

The adapter supports two payment intents configured via the intent option:

Authorize (default): Reserves funds on the customer's payment method without capturing. Use this for scenarios where you need to verify inventory or perform other checks before finalizing the order. The authorization can later be captured or voided.

Capture: Immediately captures funds when the customer approves the payment. Use this for digital goods or scenarios where immediate payment is required.

Capabilities and Supported Flows

Payment Operations

FeatureFullPartial
CaptureFull order capture only
RefundFull order refund only
Cancel / VoidSupported for authorized payments

Supported Payment Methods

Method
One-time PaymentStandard checkout flow
Recurring PaymentNot currently supported
PayPal AccountDirect PayPal balance payments
Card PaymentsCredit/debit via PayPal
Pay LaterPay in 4 (supported markets)
VenmoUS only

Advanced Features

Feature
B2B SupportConsumer payments only
Integrated ShippingShipping address/option callbacks
Partner ReferralMarketplace onboarding support
SDK Settings EndpointDeferred payment creation

Limitations:

  • Partial capture is not supported through this adapter
  • Partial refund is not supported through this adapter
  • Recurring payments are not currently supported

Configuration Overview

The PayPal adapter requires configuration in Norce Checkout Admin. Key settings include:

SettingDescription
apiUrlPayPal API environment URL (https://api-m.sandbox.paypal.com for sandbox, https://api-m.paypal.com for production)
paypalMerchantIdYour PayPal Merchant ID from the PayPal Developer Dashboard
intentPayment intent: authorize (default) or capture
providesCustomerWhether PayPal provides customer address data

For detailed configuration options, see the PayPal Checkout Adapter Developer Guide.

Norce Checkout API References

PayPal Checkout Adapter API

Norce Checkout Overview

External Documentation