Skip to content

collana pay JS Docs v0.1.0


collana pay JS Docs / PayPalPayLaterOptions

Interface: PayPalPayLaterOptions

Defined in: types.ts:300

SDK-level options for the PayPal Pay Later provider (PayPal:PayLater).

Remarks

Identical to PayPalOptions except fundingSource is always paylater and is not configurable. The SDK automatically adds enable-funding=paylater to the PayPal script URL.

Example

ts
const payLaterButton: ProviderButtonConfig<'PayPal:PayLater'> = {
  providerProtocolType: 'PayPal',
  paymentMethodType: 'PayLater',
  container: '#paylater-container',
  style: { color: 'gold', shape: 'rect' },
  options: {
    intent: 'capture',
    currencyCode: 'EUR',
  },
};

Properties

components?

optional components?: string

Defined in: types.ts:311

Comma-separated list of PayPal SDK components to load (e.g. 'buttons,funding-eligibility').

Remarks

Maps directly to the components query parameter of the PayPal JS SDK script URL.


currencyCode?

optional currencyCode?: string

Defined in: types.ts:304

ISO 4217 currency code (e.g. 'USD', 'EUR').


intent?

optional intent?: "capture" | "authorize"

Defined in: types.ts:302

Payment intent — 'capture' settles immediately, 'authorize' holds funds.

CollanaPay SDK Documentation