The first step to integrating Wallet Connect is the creation of an agreement, that is, an authorization link that the buyer accesses to authorize the merchant access to his Mercado Pago wallet when making a payment.
The agreement stores the payment methods selected by the payer and allows the modification of these settings without the intervention of the merchant, turning this step transparent during the payment flow.
Check out the diagram below that illustrates how the agreement creation flow works.
To create an agreement, send a POST with the necessary attributes to the /v2/wallet_connect/agreements endpoint and execute the request. On the response, consider two required parameters to obtain the payer's approval: