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
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?
optionalcomponents?: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?
optionalcurrencyCode?:string
Defined in: types.ts:266
ISO 4217 currency code (e.g. 'USD', 'EUR').
fundingSource?
optionalfundingSource?:"paypal"|"card"|"paylater"|"venmo"|"credit"
Defined in: types.ts:275
Controls which PayPal button variant is rendered.
intent?
optionalintent?:"capture"|"authorize"
Defined in: types.ts:264
Payment intent — 'capture' settles immediately, 'authorize' holds funds.
