CashPaymentFlow.<init> - corda

corda / net.corda.finance.flows / CashPaymentFlow / <init>

# <init>

`CashPaymentFlow(amount: Amount<Currency>, recipient: Party)`
`CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean)`

A straightforward constructor that constructs spends using cash states of any issuer.

`CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, notary: Party)`
`CashPaymentFlow(request: PaymentRequest)` `CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, progressTracker: ProgressTracker, issuerConstraint: Set<Party> = emptySet(), notary: Party? = null)`

Initiates a flow that sends cash to a recipient.

### Parameters

`amount` - the amount of a currency to pay to the recipient.

`recipient` - the party to pay the currency to.

`issuerConstraint` - if specified, the payment will be made using only cash issued by the given parties.

`anonymous` - whether to anonymous the recipient party. Should be true for normal usage, but may be false

`notary` - if not specified, the first notary of the network map is selected for testing purposes.