Contents
Payments pass through a number of statuses as the enrolment or sale is completed and the credit card is processed. Once a final state is reached, the status may not be changed again.
public PaymentStatus {public List<PaymentStatus> STATUSES_FAILED ;
public List<PaymentStatus> STATUSES_FINAL ;
public List<PaymentStatus> STATUSES_LEGIT ;
}
Indicates that payment was saved in onCourse Web, but user needs to provide credit card details. Database value: 10
Indicates an state of conflict with data integrity rules (e.g., between the website and onCourse). i.e., something that should never happen and needs resolution. Database value: -99
Indicates a failed response given by the credit card gateway. FINAL STATUS Database value: 6
Indicates that the enrolment and payment could not be accepted because there were no enrolment places left. FINAL STATUS Database value: 7
This payment is currently being processed against the gateway and should not be touched by any other thread. Database value: 2
NEW payments are rarely seen in the wild and exist for a short time before the gateway is contacted to process the transaction. Database value: 0
Indicates a payment or enrolment that was unable to retrieve a result on first attempt and is queued for later processing by a server-side thread. Database value: 1
checks if a given status is a final status (not to be altered anymore)
to be verified
true if the param belongs to statuses_final