From 1a34a997bb97379325c10ac4bb4df38abfee6783 Mon Sep 17 00:00:00 2001 From: Alexandre Fossati Date: Wed, 21 Feb 2024 16:23:24 -0300 Subject: [PATCH] Added "brand" property to Wallet Brick (#93) * added brand property to wallet brick * Update package.json --- package.json | 2 +- src/bricks/wallet/index.tsx | 2 ++ src/bricks/wallet/types.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 98f99df..84c6c6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercadopago/sdk-react", - "version": "0.0.17", + "version": "0.0.18", "description": "Mercado Pago SDK React", "main": "index.js", "keywords": [ diff --git a/src/bricks/wallet/index.tsx b/src/bricks/wallet/index.tsx index 5b1911c..fadda75 100644 --- a/src/bricks/wallet/index.tsx +++ b/src/bricks/wallet/index.tsx @@ -30,6 +30,7 @@ const Wallet = ({ onSubmit = onSubmitDefault as () => Promise, customization, initialization, + brand, locale, }: TWallet) => { useEffect(() => { @@ -37,6 +38,7 @@ const Wallet = ({ let timer: ReturnType; const WalletBrickConfig = { settings: { + brand, initialization, customization, locale, diff --git a/src/bricks/wallet/types.ts b/src/bricks/wallet/types.ts index 2c58647..6c14d55 100644 --- a/src/bricks/wallet/types.ts +++ b/src/bricks/wallet/types.ts @@ -105,6 +105,7 @@ interface IWalletBrickCheckoutCustomization { } export interface PreferenceOnSubmit extends IBrickSettings { + brand?: string; /** * Optional. An object containing initialization options. */ @@ -131,6 +132,7 @@ export interface PreferenceOnSubmit extends IBrickSettings { } export interface PreferenceOnInitialization extends IBrickSettings { + brand?: string; /** * Required. An object containing initialization options. */