enum class PaymentState
Determines status of the payment. Assuming the payment can be made trough payment system, it can be .CHARGE_FAILED. Or for instance .PENDING, which means not yet PAID. etc.
User: Pavel Abizyaev, Date: 04.09.2014 18:46*
First state when payment is created and going to go trough payment system. It means it's moving to payment system, but payment system didn't report the payment is received. |
|
In case of any problems with sending the payment. |
|
This state indicates that payment system has sucessfully received the payment. Now it's up to payment system to perform action for the payment. After this state it can go to .APPROVED, .REJECTED, .PAUSED, .CANCELED, .CHARGE_FAILED. |
|
This state guarantees consumer confirmed the payment. |
|
This state means the payment system (not a consumer) rejected the payment. |
|
This state means our app (not a payment system) doesn't communicate with payment system at the moment. In means,
the payment system can perform any action with the payment (like approval, rejection etc.). Later on our app can
request latest status via getPaymentStatus() method and then our app updates state of the payment.
We can treat PAUSED state as |
|
This means consumer or cashier (not the payment system) actively refused the payment. |
|
This state indicates the PENDING payment was failed on a pending process. |
|
It happens if we try to cancel but some problem occurs so we don't know actual state anymore. resumePayment call required to discover latest state. |