Skip to content

Latest commit

 

History

History
124 lines (77 loc) · 2.43 KB

MolliePaymentInitializeOptions.md

File metadata and controls

124 lines (77 loc) · 2.43 KB

@bigcommerce/checkout-sdk / MolliePaymentInitializeOptions

Interface: MolliePaymentInitializeOptions

A set of options that are required to initialize the Mollie payment method.

Once Mollie payment is initialized, credit card form fields are provided by the payment provider as IFrames, these will be inserted into the current page. These options provide a location and styling for each of the form fields.

service.initializePayment({
     methodId: 'mollie',
     mollie: {
         containerId: 'container',
         cardNumberId: '',
         cardHolderId: '',
         cardCvcId: '',
         cardExpiryId: '',
         styles : {
             base: {
                 color: '#fff'
             }
         }
     }
});

Table of contents

Properties

Methods

Properties

cardCvcId

cardCvcId: string

The location to insert Mollie Component


cardExpiryId

cardExpiryId: string

The location to insert Mollie Component


cardHolderId

cardHolderId: string

The location to insert Mollie Component


cardNumberId

cardNumberId: string

The location to insert Mollie Component


containerId

Optional containerId: string

ContainerId is use in Mollie for determined either its showing or not the container, because when Mollie has Vaulted Instruments it gets hide, and shows an error because can't mount Provider Components


form

Optional form: default

Hosted Form Validation Options


styles

styles: object

A set of styles required for the mollie components


unsupportedMethodMessage

Optional unsupportedMethodMessage: string

Methods

disableButton

disableButton(disabled): void

Parameters

Name Type
disabled boolean

Returns

void