> For the complete documentation index, see [llms.txt](https://elacity.gitbook.io/elacity-sdks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elacity.gitbook.io/elacity-sdks/protocol/v3.0/references/modules/payment/paymentprocessorfactory.md).

# PaymentProcessorFactory

[Git Source](https://github.com/Elacity/v3-drm-protocol/blob/52ca0e7824ef5fab5ebe0a131f7c6e6dd330de09/contracts/modules/payment/PaymentProcessorFactory.sol)

**Inherits:** [IPaymentProcessorFactory](https://github.com/Elacity/wiki/blob/main/contracts/modules/payment/IPaymentProcessorFactory.md), [BeaconUpgradeableFactory](https://github.com/Elacity/wiki/blob/main/contracts/modules/proxy/BeaconUpgradeableFactory.md)

**Title:** PaymentProcessorFactory

Deploys beacon-proxied `WithdrawablePaymentProcessor` instances.

## Functions

### constructor

**Note:** docs-ignore: true

```solidity
constructor(address _implementation) BeaconUpgradeableFactory(_implementation, msg.sender);
```

### createPaymentProcessor

Deploys a new payment processor.

```solidity
function createPaymentProcessor(address recipient, bool _shouldTransferFund) external returns (address);
```

**Parameters**

| Name                  | Type      | Description                                       |
| --------------------- | --------- | ------------------------------------------------- |
| `recipient`           | `address` | Default reward recipient.                         |
| `_shouldTransferFund` | `bool`    | Whether processor should perform direct transfer. |

**Returns**

| Name     | Type      | Description                        |
| -------- | --------- | ---------------------------------- |
| `<none>` | `address` | Address of the deployed processor. |

## Events

### PaymentProcessorCreated

Emitted when a new payment processor proxy is created.

```solidity
event PaymentProcessorCreated(
    address indexed recipient, bool indexed shouldTransferFund, address indexed paymentProcessor
);
```
