Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 1.68 KB

index.md

File metadata and controls

66 lines (39 loc) · 1.68 KB

Bricks module

mp instance.bricks(Style)

Bricks builder class instantiation


Params:


Style | object, OPTIONAL

Options:

Field Type Values
theme string default
dark
bootstrap
flat

ATTENTION: these theme values are not valid for Wallet Brick, see its documentation to learn more about customizing the look.

Returns: BricksBuilder


isInitialized METHOD
create METHOD

BricksBuilder.isInitialized()

Method that returns whether the Bricks class is initialized or not

Params

None.

Returns: boolean


BricksBuilder.create(brick, target, settings)

This methods creates and renders the brick on the screen.


Note: The Brick loads in the HTML of the client's page. Therefore, the font applied to the containing element will be applied to the Brick. The only exception is for Wallet Brick, its font will always be "Proxima Nova".

Note: The Brick will occupy all the available space in the containing element. Never being bigger than it's container, and is totally responsive without additional configuration.


Refer to the specific Brick API refence for parameters and methods specifications.
cardPayment
payment
statusScreen
wallet