Payment
data class Payment(val payer: Party, val gateway: Party, val paymentProviderId: UUID? = null, val endToEndId: String, val paymentInstructionId: AttachmentId, val status: Payment.PaymentStatus, val additionalInfo: String? = null, val uniquePaymentId: UUID = UUID.randomUUID(), val timestamp: Instant = Instant.now()) : QueryableState
Data class describing Payment state in Corda business network
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.