# Payments Module

Source: https://docs.formance.com/deploy/self-hosted/modules/payments

Stack: v3.2

Formance Payments is a unified API that abstracts over multiple different payment providers like Stripe and Wise, simplifying the process of building money flows that stitch multiple payment providers together.

## Requirements

Formance Payments requires:

- **PostgreSQL**: See configuration guide [here](https://docs.formance.com/deploy/self-hosted/infrastructure/postgresql).
- **Temporal**: See configuration guide [here](https://docs.formance.com/deploy/self-hosted/infrastructure/temporal).
- (Optional) **Broker**: See configuration guide [here](https://docs.formance.com/deploy/self-hosted/infrastructure/message-broker).

## Setting up Temporal

Temporal is a required dependency for Formance Payments. The easiest way to set up Temporal with Payments is to use the docker-compose configuration provided in the [payments repository](https://github.com/formancehq/payments), which includes all necessary services:

- `temporal` and `temporal-worker`
- `postgres`
- `payments-migrate`
- `payments-worker`
- `payments`

The docker-compose file in the main stack repository does not include the complete Temporal setup. Make sure to use the configuration from the payments repository instead.

### Alternative: Payments without Temporal

If you don't need the latest Payments features and prefer not to manage Temporal infrastructure, you can use an earlier version of Payments that doesn't require Temporal while providing similar core functionality.

## Payments Object

You can find all the available parameters in [the comprehensive CRD documentation](https://docs.formance.com/stack-api-reference/introduction).

```yaml
apiVersion: formance.com/v1beta1
kind: Payments
metadata:
  name: formance-dev
spec:
  stack: formance-dev
```
