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★ 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:
- Ecommerce PPP endpoints, manifests, and homologation shapes with no POS methods — use
payment-provider-protocol - IO connector wiring (
PaymentProvider,configuration.json,this.retry) — usepayment-provider-frameworktogether with this skill - Pix, Boleto, or browser-redirect async methods — use
payment-async-flow - Ecommerce card data and Secure Proxy — use
payment-pci-security - Sales App cart, PDP, or menu UI extensions — use
sales-app-extensibility
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 POSTcallbackUrluntil 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 CreditoandVenda Direta Debitoare asynchronous card-present methods. Returnstatus: "undefined"and resolve later viacallbackUrl. Do not treat them as sync Visa/Mastercard authorizations.- Branch on
paymentMethod. On PPF, useisDirectSaleAuthorizationfrom@vtex/payment-provider(canonicalDirectSalenames, and the narrowed type has nocard/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
cardfields arrive asnull. 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
- Identify the terminal:
- Do not use
vtex.challenge-terminal-connector-app. That name appears as a flow-diagram example in the POS guide; the implementatio
Установить payment-ppp-pos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic