Skip to content

collana pay JS Docs v0.1.0


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

ts
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?

optional currencyCode?: string

Defined in: types.ts:920

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


enableBillingAddress?

optional enableBillingAddress?: boolean

Defined in: types.ts:928

Whether to enable the billing address in the PayPal flow.


enableShippingAddress?

optional enableShippingAddress?: boolean

Defined in: types.ts:924

Whether to enable the shipping address in the PayPal flow.


intent?

optional intent?: "capture" | "authorize"

Defined in: types.ts:918

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


locale?

optional locale?: string

Defined in: types.ts:922

BCP 47 locale for the PayPal button (e.g. 'de_DE', 'en_US').


shippingAddressEditable?

optional shippingAddressEditable?: 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.

CollanaPay SDK Documentation