collana pay JS Docs / BraintreePayLaterOptions
Interface: BraintreePayLaterOptions
Defined in: types.ts:908
SDK-level options for the Braintree PayLater provider (Braintree:PayLater).
Remarks
Identical to BraintreePayPalExpressOptions. The provider automatically sets fundingSource to PAYLATER and enables the Pay Later funding source when loading the PayPal SDK.
Example
const braintreePayLater: ProviderButtonConfig<'Braintree:PayLater'> = {
providerProtocolType: 'Braintree',
paymentMethodType: 'PayLater',
container: '#braintree-paylater-container',
style: { color: 'white', shape: 'pill' },
options: {
tokenizationKey: 'sandbox_g42y39zp_348jhnfdew59qi3c',
intent: 'authorize',
currencyCode: 'EUR',
},
};Properties
currencyCode?
optionalcurrencyCode?:string
Defined in: types.ts:920
ISO 4217 currency code (e.g. 'EUR', 'USD').
enableBillingAddress?
optionalenableBillingAddress?:boolean
Defined in: types.ts:928
Whether to enable the billing address in the PayPal flow.
enableShippingAddress?
optionalenableShippingAddress?:boolean
Defined in: types.ts:924
Whether to enable the shipping address in the PayPal flow.
intent?
optionalintent?:"capture"|"authorize"
Defined in: types.ts:918
Payment intent — 'capture' settles immediately, 'authorize' holds funds.
locale?
optionallocale?:string
Defined in: types.ts:922
BCP 47 locale for the PayPal button (e.g. 'de_DE', 'en_US').
shippingAddressEditable?
optionalshippingAddressEditable?:boolean
Defined in: types.ts:926
Whether the shipping address can be edited by the buyer.
tokenizationKey
tokenizationKey:
string
Defined in: types.ts:916
Braintree tokenization key from the Braintree Control Panel.
Remarks
A static credential (e.g. sandbox_xxx_yyy) that requires no server-side request before rendering the button.
