Payment Gateways

payment_gateways in @open-mercato/core

Payment gateway adapter contract, registry, transaction tracking, and webhook routing.

Ships with Open Mercato 0.9.0

On in a new app. Nothing to enable.

In an app from the empty preset

yarn mercato module enable @open-mercato/core --module payment_gateways

Then run yarn generate. Core is already installed, so nothing is downloaded.

Anatomy

ADDS 4 TABLES · 4 PERMISSIONS · EMITS 9 EVENTS

Data

  • gateway_transactions
  • gateway_payment_operations
  • gateway_session_initializations
  • gateway_webhook_events

API

Routes are not listed for built-in modules.

Security

payment_gateways.

  • view
  • manage
  • capture
  • refund

Events

payment_gateways.

  • emitssession.created
  • emitssession.expired
  • emitspayment.authorized
  • emitspayment.captured
  • emitspayment.failed
  • emitspayment.refunded
  • emitspayment.cancelled
  • emitswebhook.received
  • emitswebhook.failed

UI

  • 1 backend page

Background

  • 3 workers

Not present: AI tools.

Not read: credentials and env, hosts (not in module-facts.v2.json).

From module-facts.v2.json in @open-mercato/cli 0.9.0. Read statically, not executed.