PaymentAPI::EnrichWithExplainedPayments (open)
Enrich an array with payment explanations
Syntax
LOADLIB "mod::wrd/lib/payments.whlib";
RECORD ARRAY FUNCTION EnrichWithExplainedPayments(RECORD ARRAY payments, RECORD options)Parameters
RECORD ARRAY paymentsList contanining payments
RECORD optionsOptions
STRING cellnameCell containing the payment information (defaults to the payment attribute)
STRING explaincellCell in which to store explained cells. If not set, explanation will be merged into the records.
Return value
RECORD ARRAYPayment information
MONEY amountpayableThe total amount that had to be paid
STRING cardissuerCard issuer (bank or network)
STRING cardnumberCard or account number
STRING htmlstatusforuserRich additional description as passed by the payment provider
DATETIME paymentdateSTRING paymentmethodtagSTRING paymentmethodtitleTitle for the selected payment method
STRING paymentrefSTRING statusCurrent status (approved, pending, failed)