Mercado Pago - Create Payment
Description
Section titled “Description”Creates a direct payment with a tokenized card in Mercado Pago. Allows processing credit or debit card payments using a token previously generated with the JavaScript SDK.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credential | Yes | Mercado Pago credentials |
| transaction_amount | number | Yes | Payment amount |
| token | string | Yes | Card token (generated with JS SDK) |
| payment_method_id | string | Yes | Payment method (visa, master, etc.) |
| installments | number | No | Number of installments (default: 1) |
| payer_email | string | Yes | Payer email |
| payer_first_name | string | No | Payer first name |
| payer_last_name | string | No | Payer last name |
| identification_type | string | No | Document type (DNI, CPF, etc.) |
| identification_number | string | No | Document number |
| description | string | No | Payment description |
| external_reference | string | No | External reference |
| notification_url | string | No | Webhook URL |
| statement_descriptor | string | No | Statement descriptor |
| binary_mode | boolean | No | Binary mode (no pending) |
| idempotency_key | string | No | Idempotency key |
Credentials
Section titled “Credentials”This module requires a mercadopago type credential with the following fields:
- Access Token: Mercado Pago access token (obtained from the developer dashboard)
Output
Section titled “Output”{ "success": true, "payment": { "id": 123456789, "status": "approved", "status_detail": "accredited", ... }, "payment_id": 123456789, "status": "approved", "status_detail": "accredited", "message": "Pago 123456789 creado (approved)"}Usage Example
Section titled “Usage Example”{ "transaction_amount": 100.50, "token": "ff8080814c11e237014c1ff593b57b4d", "payment_method_id": "visa", "installments": 3, "payer_email": "cliente@email.com", "description": "Compra de producto", "external_reference": "ORDER-123"}API Used
Section titled “API Used”- Endpoint:
POST /v1/payments - Documentation: Mercado Pago Payments API
- The
tokenmust be previously generated using the Mercado Pago JavaScript SDK - The
payment_method_idcorresponds to the detected card type - An
idempotency_keyis automatically generated if not provided - Binary mode (
binary_mode: true) rejects payments that would remain pending
Related Nodes
Section titled “Related Nodes”- MercadopagoGetPayments - Get payments
- MercadopagoCreateRefund - Create refund
- MercadopagoCreateCustomer - Create customer