Skip to content

collana pay JS Docs v0.1.0


collana pay JS Docs / PayPalOptions

Interface: PayPalOptions

Defined in: types.ts:262

SDK-level options for the native PayPal provider (PayPal:PayPalExpress).

Remarks

These values are forwarded to the PayPal JS SDK query parameters when the script is loaded. See PayPal SDK docs.

Example

ts
const paypalButton: ProviderButtonConfig<'PayPal:PayPalExpress'> = {
  providerProtocolType: 'PayPal',
  paymentMethodType: 'PayPalExpress',
  container: '#paypal-container',
  style: { color: 'gold', shape: 'rect' },
  options: {
    intent: 'capture',
    currencyCode: 'USD',
    fundingSource: 'paypal',
  },
};

Properties

components?

optional components?: string

Defined in: types.ts:273

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:266

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


fundingSource?

optional fundingSource?: "paypal" | "card" | "paylater" | "venmo" | "credit"

Defined in: types.ts:275

Controls which PayPal button variant is rendered.


intent?

optional intent?: "capture" | "authorize"

Defined in: types.ts:264

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

CollanaPay SDK Documentation