Skip to content

collana pay JS Docs v0.1.0


collana pay JS Docs / RevolutPayOptions

Interface: RevolutPayOptions

Defined in: types.ts:812

SDK-level options for the Revolut Pay provider (Revolut:RevolutPay).

Remarks

These values are forwarded to the Revolut Checkout Payments SDK when initializing and mounting the RevolutPay widget.

Example

ts
const revolutPayButton: ProviderButtonConfig<'Revolut:RevolutPay'> = {
  providerProtocolType: 'Revolut',
  paymentMethodType: 'RevolutPay',
  container: '#revolut-pay-container',
  style: { variant: 'dark', radius: 'small' },
  options: {
    publicToken: 'pk_live_abc123',
    currency: 'EUR',
    totalAmount: 19300,
  },
};

Properties

currency

currency: string

Defined in: types.ts:821

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


publicToken

publicToken: string

Defined in: types.ts:819

Revolut public API key for authentication.

Remarks

Use a sandbox key in sandbox mode and the live key in production.


requestShipping?

optional requestShipping?: boolean

Defined in: types.ts:827

Whether to request shipping information from the shopper.

Default Value

false


totalAmount

totalAmount: number

Defined in: types.ts:825

Total payment amount in minor units (e.g. 19300 = €193.00).

CollanaPay SDK Documentation