测试与安全

payment-provider-framework

vtex/skills

Apply when designing or implementing a Payment Connector in VTEX IO. Covers PPF implementation, TypeScript 3.9.7 builder-hub constraints and safe dependency resolutions, configuration.json schema validation, PaymentProviderService clients wiring, Secure Proxy scope (authorize-only), ExternalClient vs SecureExternalClient patterns, IOContext access, PPF response helpers, PSP integration checklist, and vtex link debugging. Use for any implementation of a Payment Connector hosted in VTEX IO.

  • 993 次安装
  • 47 星标
  • 收录于

安装命令

npx skills add https://github.com/vtex/skills --skill payment-provider-framework

SKILL.md

Payment Provider Framework (VTEX IO)

When this skill applies

Use this skill when:

  • Creating or maintaining a payment connector implemented as a VTEX IO app (not a standalone HTTP service you host yourself)
  • Wiring @vtex/payment-provider, PaymentProvider, and PaymentProviderService in node/index.ts
  • Configuring the paymentProvider builder, configuration.json (payment methods, customFields, feature flags)
  • Implementing this.retry(request) for Gateway retry semantics on IO
  • Extending SecureExternalClient and passing secureProxy on requests for card flows on IO
  • Testing via payment affiliation, workspaces, beta/stable releases, the VTEX App Store, and VTEX homologation

Do not use this skill for:

  • PPP HTTP contracts, response field-by-field requirements, and the nine endpoints in the abstract — use payment-provider-protocol
  • Idempotency and duplicate paymentId handling — use payment-idempotency
  • Async undefined status, callbackUrl notification vs retry (IO vs non-IO) — use payment-async-flow
  • PCI rules, logging, and token semantics beyond IO wiring — use payment-pci-security
  • POS / Sales App card-present overlay (Venda Direta methods, Payment Apps, terminal serial) — use payment-ppp-pos together with this skill