invoke
operator fun invoke(amount: Double, method: PaymentMethod, clientTransactionId: String? = null, merchantReference: String? = null): Payment(source)
Creates a new Payment object.
Return
A new Payment object.
Parameters
amount
The total amount of the payment as a Double.
method
The payment method to be used for the transaction, which is an object implementing the PaymentMethod interface.
client Transaction Id
An identifier for the transaction, used for tracking purposes. Defaults to a randomly generated UUID.
merchant Reference
A provided reference value for the transaction.