# MD for: https://www.mercadopago.com.pe/developers/pt/docs/checkout-bricks/card-payment-brick/advanced-features/update-data.md \# Update data To update data in Card Payment Brick, we provide the update method through the Controller. When called, the update method will update the provided data while preserving the current instance of the Brick. Data available for updating: | Field | Type | Description | Validation | | --- | --- | --- | --- | | amount | number | Payment amount. | Before updating the \`amount\`, the Brick checks if the new value is greater than or equal to the minimum value allowed by the payment method selected by the user. If the validation is successful, the update method will return \`true\`. Otherwise, it will return \`false\`. | * [javascript ](#editor%5F1) * [react-jsx ](#editor%5F2) javascript react-jsx ``` let amount = 95; cardPaymentBrickController.update({ amount }); ``` Copiar ``` import { CardPayment, useCardPaymentBrick } from "@mercadopago/sdk-react"; const App = () => { const { update } = useCardPaymentBrick(); return ( <> { console.log(param); }} /> ); }; export default App; ``` Copiar