TransactionStatus
Pesepay’s own status for a transaction, exactly as the API reports it.
Branch on Transaction.outcome instead. Several of these mean the same
thing to a checkout, and three — TIME_OUT, SERVICE_UNAVAILABLE and
ERROR — mean Pesepay did not get the provider’s answer, not that the
payment failed: their outcome is unknown.
export type TransactionStatus = "INITIATED" | "PENDING" | "PROCESSING" | "PARTIALLY_PAID" | "SUCCESS" | "FAILED" | "DECLINED" | "INSUFFICIENT_FUNDS" | "AUTHORIZATION_FAILED" | "CANCELLED" | "TERMINATED" | "CLOSED" | "CLOSED_PERIOD_ELAPSED" | "TIME_OUT" | "SERVICE_UNAVAILABLE" | "ERROR" | "REVERSED";