Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

payment-ppp-pos

БесплатноБез исполняемых скриптовНе проверен

Apply when implementing a VTEX Payment Provider Protocol connector for Point of Sale (POS) payments on VTEX Sales App. Covers Venda Direta Credito and Venda…

vtexот vtex★ 47 звёзд на GitHub

Об этом скилле

PPP Applied to POS (VTEX Sales App)

When this skill applies

Use this skill when the task is to create, extend, or debug a payment connector that charges a physical card on a POS terminal from VTEX Sales App.

  • The user mentions PPP + POS, POS connector, in-store payments, Sales App card payments, payment terminal, or Venda Direta Credito / Venda Direta Debito
  • The source of truth is Payment Provider Protocol for Point of Sale (POS)
  • The goal is to remove the "implement from scratch" barrier: clone the official PPF example from Payment Provider Framework Getting started, or overlay POS on existing PPP — not generate a generic ecommerce connector

Load companions when the step needs them. Do not dump all three into the first reply.

Companion Load when
generation.md The user asked to create a POS connector. Ask the four questions, then implement in the listed order.
ppf-scaffold.md Hosting is VTEX IO / PPF. Copy overlay files onto the official PPF example app.
examples.md You need expected JSON, the state machine table, or IO retry vs standalone notification.

The hard constraints below override ecommerce PPP and PCI habits. If a generated file violates one, STOP and fix it before writing more files.

Do not use this skill as the default choice for:

Decision rules

  • Prefer VTEX IO / PPF unless the partner already hosts PPP middleware. Clone the official example app from the Payment Provider Framework guide and overlay POS; do not start from an empty Express app.
  • POS payments are still PPP. Implement the six payment-flow endpoints, then overlay the POS rules in this skill.
  • authorize() is a state machine. It never waits on the POS. It only returns the current phase. The connector answers Create Payment; it does not push the Gateway between phases. After the terminal app closes, VTEX Sales App triggers a Gateway callback that issues Create Payment (POS guide step 8). Wait for confirmation then polls the Gateway, which issues more Create Payment (step 9). Do not POST callbackUrl until the processor reports a final status — retry-on-pending is unnecessary and adds about 1 second per authorize.
Stored phase Who drives the next Create Payment Create Payment returns
(none yet) Sales App checkout → Gateway (step 3) Persist identify-terminal; undefined + vtex.terminal-connector-app
identify-terminal (no serial) Gateway / Sales App Same terminal app until submitUrl stores a serial
identify-terminal (serial stored) Sales App after the terminal app closes (step 8) Start the processor charge once; undefined + vtex.challenge-wait-for-confirmation
await-pos Wait for confirmation polling (step 9) Same wait app; no second charge; no retry POST
approved / denied Wait app / Sales App after IO retry Final status + cardBrand + firstDigits + lastDigits
  • Venda Direta Credito and Venda Direta Debito are asynchronous card-present methods. Return status: "undefined" and resolve later via callbackUrl. Do not treat them as sync Visa/Mastercard authorizations.
  • Branch on paymentMethod. On PPF, use isDirectSaleAuthorization from @vtex/payment-provider (canonical DirectSale names, and the narrowed type has no card / secureProxyUrl). On standalone HTTP, compare to those same ASCII strings. A connector may support ecommerce and POS.
  • The Gateway does not receive the shopper's card for POS. All card fields arrive as null. Do not call Secure Proxy on this path.
  • Use VTEX's ready-made Payment Apps unless the partner has a documented reason to build a custom one:
    • Identify the terminal: vtex.terminal-connector-app
    • Wait for the POS result: vtex.challenge-wait-for-confirmation
  • Do not use vtex.challenge-terminal-connector-app. That name appears as a flow-diagram example in the POS guide; the implementatio
Полный SKILL.md на GitHub

Установить payment-ppp-pos в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/examples.mdreferences/generation.mdreferences/ppf-scaffold.md

FAQ

Что делает скилл payment-ppp-pos?

Apply when implementing a VTEX Payment Provider Protocol connector for Point of Sale (POS) payments on VTEX Sales App. Covers Venda Direta Credito and Venda Direta Debito manifest methods, the two-phase Payment App challenge (terminal connector then wait-for-confirmation), null card data on Create Payment, asynchronous undefined status, timeout pairing of secondsWaiting and delayToCancel, and callback payloads with cardBrand, firstDigits, and lastDigits. Use for building or debugging PPP + POS integrations that charge a physical card on a payment terminal.

Как установить скилл payment-ppp-pos?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл payment-ppp-pos запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить payment-ppp-pos с