PaymentStatus
public enum PaymentStatus : String, Codable
Status of the payment.
-
Your Request POST call to the /payments endpoint is received and registered and the Ecospend Gateway is currently interacting with the bank’s system to respond you with a Response. This is a very brief interim state that will NOT trigger webhooks.
Declaration
Swift
case initial = "Initial"
-
A Response, including bank’s payment URL is successfully responded to your call and the PSU is expected to authorise the payment with your redirection.
Declaration
Swift
case awaitingAuthorization = "AwaitingAuthorization"
-
The PSU has authorized the payment from their banking system. This is a very brief interim state that will NOT trigger webhooks.
Declaration
Swift
case authorised = "Authorised"
-
The ASPSP has authorized and accepted the payment for processing. The payment is not completed yet, it has not been sent through the corresponding payment rails. The payment can still be rejected by the ASPSP.
Declaration
Swift
case verified = "Verified"
-
The Payment is considered as completed when the payer’s ASPSP has sent the payment through the corresponding payment rails to be credited to the payee account.
Declaration
Swift
case completed = "Completed"
-
The PSU has cancelled the payment flow.
Declaration
Swift
case canceled = "Canceled"
-
Payment flow has failed due to an error.
Declaration
Swift
case failed = "Failed"
-
Bank has rejected the payment.
Declaration
Swift
case rejected = "Rejected"
-
The PSU has never initiated the payment journey or deserted the payment journey prior to authorizing the payment on their banking system.
Declaration
Swift
case abandoned = "Abandoned"