Skip to content

Latest commit

 

History

History
76 lines (42 loc) · 1.28 KB

BraintreeLocalMethods.md

File metadata and controls

76 lines (42 loc) · 1.28 KB

@bigcommerce/checkout-sdk / BraintreeLocalMethods

Interface: BraintreeLocalMethods

Table of contents

Properties

Methods

Properties

buttonText

buttonText: string

Text that will be displayed on lpm button


container

container: string

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

Methods

onError

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 This callback can be used to hide the standard submit button.

Returns

void


submitForm

Optional submitForm(): void

A callback for submitting payment form that gets called when buyer approved PayPal account.

Returns

void