# plugin-payments

`@fayz-ai/plugin-payments` · preview · Partial capability

Taking money is the one thing every commerce build cannot fake, and in Brazil that means Pix. plugin-payments gives Fayz apps a single PaymentProvider abstraction for Pix charges — create a charge, get a QR / copy-paste code, poll its status — behind the same safe mock/real resolver used across the SDK. Build and demo the whole checkout flow today on the mock; swap in a real gateway later without…

## Specs

- **Package:** `@fayz-ai/plugin-payments`
- **Version:** 0.1.1
- **Status:** preview
- **Capability:** Partial capability
- **Product type:** Website
- **Stable channel:** `^0.1.1`
- **Migrations:** none

## Data model

No tables of its own — this plugin uses the core / archetype library (same rule: tenant_id + RLS)..

## AI tools

This plugin declares no AI tools.

## Integrations

No hosted connector — external providers come in via the connector spine (`@fayz-ai/core`).

## Integrate

Add the plugin to surfaces.admin.plugins in your app's app.manifest.json and run the doctor to validate:

```json
{ "surfaces": { "admin": { "plugins": [ { "id": "payments", "enabled": true } ] } } }
```

```bash
npx fayz doctor
```
