payment-async-flow

Coordinate async payment flows with undefined status, callback URLs, and idempotent Create Payment handling.

39|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/vtex/ai-skills --skill payment-async-flow-vtex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: payment-async-flow
Source: https://github.com/vtex/ai-skills/tree/main/tracks/payment/skills/payment-async-flow
Command: npx skills add https://github.com/vtex/ai-skills --skill payment-async-flow-vtex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Asynchronous payment methods (Boleto, Pix, redirects) require non-blocking flows where final status is only known after a callback. This skill defines how to implement undefined status responses, handle callbackUrl notifications, and respect provider SLAs for delayToCancel.

Core Features & Use Cases

  • Async payment orchestration for Boleto, Pix, and bank transfers
  • Callback URL handling with X-VTEX-signature validation
  • Idempotent Create Payment handling and state evolution via webhooks
  • DelayToCancel calculation aligned with provider expiry and retries

Quick Start

Set up an async payment flow that returns status undefined on create, stores the exact callbackUrl, and processes provider webhooks to update the local state.

Frequently Asked Questions about payment-async-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle async payment callbacks for Pix and Boleto?

Handle async payment callbacks for Pix and Boleto by returning an undefined status on creation, storing the exact callbackUrl, and processing provider webhooks to update the local payment state.

What is the best way to prevent double-charges in asynchronous payment flows?

Prevent double-charges in asynchronous payment flows by implementing idempotent Create Payment handling, which ensures duplicate requests or webhook retries do not result in multiple transaction authorizations.

How do I calculate delayToCancel for redirect-based payment methods?

Calculate delayToCancel for redirect-based payment methods by aligning the local timeout value with the specific provider's expiry SLA, ensuring the system waits appropriately before canceling pending transactions.

How does webhook signature validation work for payment provider callbacks?

Webhook signature validation for payment provider callbacks works by preserving and verifying the X-VTEX-signature header, ensuring that incoming notifications genuinely originate from the expected payment provider.

Can I use async payment orchestration for non-VTEX IO platforms?

Yes, you can use async payment orchestration for non-VTEX IO platforms, as the flow supports both VTEX IO and non-VTEX IO callback patterns with robust retry semantics for webhook processing.

Why do async payments return an undefined status on creation?

Async payments return an undefined status on creation because final transaction results are only known after a provider callback, requiring non-blocking flows that defer status updates until webhook notification.