Payment

fun Payment(payer: Party, gateway: Party, paymentProviderId: UUID? = null, endToEndId: String, paymentInstructionId: AttachmentId, status: Payment.PaymentStatus, additionalInfo: String? = null, uniquePaymentId: UUID = UUID.randomUUID(), timestamp: Instant = Instant.now())

Parameters

payer

Corda party, which initiated payment

gateway

Corda party, which processes payment

paymentProviderId

ID of payment provider, which processes payment

endToEndId

Unique value for the payment in debtor-creditor scope

paymentInstructionId

Link to payment instruction, stored as attachment. See AttachmentId

status

Status of the payment in workflow

additionalInfo

Payment info provided by the bank or other processing party. Null if there is no additional information associated with the state.

uniquePaymentId

Unique value for the payment in Corda business network

timestamp

Timestamp to record when payment state was proposed/changed. Generated with Instant.now by default.