Skip to content
Back to skills

Checkout Link

ASecurity

Create a MercadoPago Checkout Pro link (preference) for a cart and adjust it later

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add theYahia/WWmcp --skill checkout-link --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Checkout Link?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Checkout Link
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theyahia-checkout-link/badge)](https://www.skillsdirectory.com/skills/theyahia-checkout-link)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: checkout-link
description: Create a MercadoPago Checkout Pro link (preference) for a cart and adjust it later
argument-hint: <item title> <quantity> <unit price> [payer email]
---

# /checkout-link — MercadoPago preference

## Algorithm

1. Build the items array. Each item needs title, quantity and unit_price; currency_id and
   description are optional (currency defaults to the account's country currency).
2. Call `create_preference` with items and, where the user has them: payer_email, payer_name,
   external_reference (your order ID — set this, reconciliation depends on it),
   back_urls (success / failure / pending), notification_url, auto_return.
3. Return the init_point URL from the response to the customer. In a sandbox account use
   sandbox_init_point instead.
4. To change the cart, expiration or redirect URLs later, call `update_preference` with the
   preference_id and a patch object holding only the fields that change.
5. Call `get_preference` with the preference_id to read back the current state before
   telling the user what the link now contains.

## Response format

```
## MercadoPago checkout

**preference_id**: 1234567890-abcd-...
**external_reference**: ORDER-2026-0142
**Items**: 2 × Camiseta @ 8,500 ARS = 17,000 ARS
**Payer**: cliente@example.com

Checkout link: https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=...
```

## Notes

- Always set external_reference. Without it `search_payments` and `search_merchant_orders`
  cannot tie a payment back to an order.
- auto_return = approved sends the buyer back automatically after a successful payment;
  it requires a valid back_urls.success.
- Amounts are in the account's currency (ARS, BRL, MXN, UYU, CLP, COP, PEN) — do not
  convert; pass what the user gave.

## Examples

```
/checkout-link "Camiseta" 2 8500 cliente@example.com
/checkout-link "Consultoria" 1 150000
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.