Skip to content

Transaction

A Pesepay transaction, as the SDK reads it.

export interface Transaction
NameTypeDescription
amount?TransactionAmountThe amount, once it is known.
description?stringThe reasonForPayment the merchant created the transaction with.
merchantName?stringThe name of the merchant’s Pesepay application.
merchantReference?stringYour own reference, as you created the transaction with it.
message?stringHuman-readable status from Pesepay. Not stable enough to branch on.
metadata?Record<string, string>The metadata sent with the payment.
nextAction?NextActionWhat the customer must do next, while the payment is unfinished.
outcomeTransactionOutcomeWhat status means for your checkout. See TransactionOutcome.
paymentMethodCode?stringThe payment method selected for this transaction, e.g. PZW211.
paymentMethodMessage?stringThe provider’s own reason, when it gave one. Its wording can change.
referenceNumberstringPesepay’s reference for the transaction.
returnUrl?stringThe merchant’s returnUrl. Only an absolute http(s) URL is passed on.
statusTransactionStatusPesepay’s own status. Branch on outcome, not this.