AI resources

Process payments

With Wallet Connect, payments are processed through the Orders API, an API designed to simplify the integration with Mercado Pago. The order represents the purchase intent and concentrates the payment transactions associated with it, allowing the amount to be debited directly from the buyer's wallet using the payment token obtained in the agreement.

Before processing payments, you must have completed the agreement flow and obtained the payer_token. If you have not done so yet, see the Configure agreements section.

Before creating the order, you must define when the amount will be captured. This definition is made at creation time through the capture_mode parameter, and determines whether the payment will be debited immediately upon the creation of the order (automatic) or only authorized for later capture (manual). If you define that the capture will be performed later, after the order creation you must capture it through the endpoint /v1/orders/{order_id}/capturePOST.