public enum PaymentState extends Enum<PaymentState>
CHARGE_FAILED
.
Or for instance PENDING
, which means not yet PAID. etc.
User: Pavel Abizyaev, Date: 04.09.2014 18:46
*Enum Constant and Description |
---|
APPROVED
This state guarantees consumer confirmed the payment.
|
CANCELED
This means consumer or cashier (not the payment system) actively refused the payment.
|
CHARGE_FAILED
This state indicates the PENDING payment was failed on a pending process.
|
CHARGE_UNKNOWN
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.
|
PAUSED
This state means our app (not a payment system) doesn't communicate with payment system at the moment.
|
PENDING
This state indicates that payment system has sucessfully received the payment.
|
REJECTED
This state means the payment system (not a consumer) rejected the payment.
|
SENDING
First state when payment is created and going to go trough payment system.
|
SENDING_FAILED
In case of any problems with sending the payment.
|
Modifier and Type | Method and Description |
---|---|
static PaymentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentState SENDING
public static final PaymentState SENDING_FAILED
public static final PaymentState PENDING
APPROVED
, REJECTED
, PAUSED
,
CANCELED
, CHARGE_FAILED
.public static final PaymentState APPROVED
public static final PaymentState REJECTED
public static final PaymentState PAUSED
public static final PaymentState CANCELED
public static final PaymentState CHARGE_FAILED
public static final PaymentState CHARGE_UNKNOWN
public static PaymentState[] values()
for (PaymentState c : PaymentState.values()) System.out.println(c);
public static PaymentState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.