> 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/ipaymentprocessor.md).

# IPaymentProcessor

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

**Title:** IPaymentProcessor

Defines how funds are executed between payer and recipient.

## Functions

### execute

Executes token-denominated payment routing.

```solidity
function execute(address from, address to, uint256 _amount, address _payToken) external;
```

**Parameters**

| Name        | Type      | Description                    |
| ----------- | --------- | ------------------------------ |
| `from`      | `address` | Payer address.                 |
| `to`        | `address` | Recipient address.             |
| `_amount`   | `uint256` | Amount to transfer.            |
| `_payToken` | `address` | ERC-20 token used for payment. |

### execute

Executes native-currency payment routing.

```solidity
function execute(address from, address to) external payable;
```

**Parameters**

| Name   | Type      | Description        |
| ------ | --------- | ------------------ |
| `from` | `address` | Payer address.     |
| `to`   | `address` | Recipient address. |

### shouldTransferFund

Indicates whether this processor performs direct fund transfers.

```solidity
function shouldTransferFund() external view returns (bool);
```

**Returns**

| Name     | Type   | Description                                               |
| -------- | ------ | --------------------------------------------------------- |
| `<none>` | `bool` | `true` when fund transfers are executed by the processor. |
