Skip to content

feat(gateway,core): recurring/subscription payment flows #41

Description

@aguilar1x

Context

Connect currently supports one-off escrow checkouts only. Merchants with subscription business models (the primary use case for many SaaS/marketplace integrators) have no way to charge on a recurring schedule through Pacto.

Scope

  • A subscription primitive in the gateway: create a recurring plan (amount, interval, asset) tied to a merchant + payer.
  • Scheduled escrow creation on each billing cycle, reusing the quote engine (feat(gateway): OTC quote engine + signed quotes #18) for FX pricing at charge time.
  • Webhook events for the subscription lifecycle: subscription.created, subscription.charged, subscription.failed, subscription.canceled.

Acceptance criteria

  • A subscription created via the SDK produces a new escrow automatically on each cycle without manual intervention.
  • A failed charge (e.g. insufficient funds) emits subscription.failed and does not silently retry indefinitely.
  • Canceling a subscription stops future charges and emits subscription.canceled.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26area:gatewayConnect Gateway (BFF)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions