Skip to content

Latest commit

 

History

History
90 lines (51 loc) · 1.72 KB

PaypalCommerceRatePay.md

File metadata and controls

90 lines (51 loc) · 1.72 KB

@bigcommerce/checkout-sdk / PaypalCommerceRatePay

Interface: PaypalCommerceRatePay

Table of contents

Properties

Methods

Properties

container

container: string

The CSS selector of a container where the payment widget should be inserted into.


legalTextContainer

legalTextContainer: string

The CSS selector of a container where the legal text should be inserted into.


loadingContainerId

loadingContainerId: string

The CSS selector of a container where loading indicator should be rendered

Methods

getFieldsValues

Optional getFieldsValues(): Object

A callback that gets form values

Returns

Object

Name Type
ratepayBirthDate BirthDate
ratepayPhoneCountryCode string
ratepayPhoneNumber string

onError

Optional onError(error): void

A callback for displaying error popup. This callback requires error object as parameter.

Parameters

Name Type
error unknown

Returns

void


onRenderButton

Optional onRenderButton(): void

A callback right before render Smart Payment Button that gets called when Smart Payment Button is eligible. This callback can be used to hide the standard submit button.

Returns

void