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
const payLaterButton: ProviderButtonConfig<'PayPal:PayLater'> = {
providerProtocolType: 'PayPal',
paymentMethodType: 'PayLater',
container: '#paylater-container',
style: { color: 'gold', shape: 'rect' },
options: {
intent: 'capture',
currencyCode: 'EUR',
},
};Properties
components?
optionalcomponents?: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?
optionalcurrencyCode?:string
Defined in: types.ts:304
ISO 4217 currency code (e.g. 'USD', 'EUR').
intent?
optionalintent?:"capture"|"authorize"
Defined in: types.ts:302
Payment intent — 'capture' settles immediately, 'authorize' holds funds.
