Transaction
A Pesepay transaction, as the SDK reads it.
export interface TransactionProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
amount? | TransactionAmount | The amount, once it is known. |
description? | string | The reasonForPayment the merchant created the transaction with. |
merchantName? | string | The name of the merchant’s Pesepay application. |
merchantReference? | string | Your own reference, as you created the transaction with it. |
message? | string | Human-readable status from Pesepay. Not stable enough to branch on. |
metadata? | Record<string, string> | The metadata sent with the payment. |
nextAction? | NextAction | What the customer must do next, while the payment is unfinished. |
outcome | TransactionOutcome | What status means for your checkout. See TransactionOutcome. |
paymentMethodCode? | string | The payment method selected for this transaction, e.g. PZW211. |
paymentMethodMessage? | string | The provider’s own reason, when it gave one. Its wording can change. |
referenceNumber | string | Pesepay’s reference for the transaction. |
returnUrl? | string | The merchant’s returnUrl. Only an absolute http(s) URL is passed on. |
status | TransactionStatus | Pesepay’s own status. Branch on outcome, not this. |