PaymentStatus

Contents

General
CloudAssessSpec
CollegePreferenceService
CsvBuilder
DocumentService
DocumentSpec
EmailSpec
ExportSpec
MailchimpSpec
Mask
Money
Preferences
QualityResultSpec
ReportSpec
SmsSpec
SystemUserService
Database objects
ACLAccessKey
ACLRole
Account
AccountTransaction
Application
Article
ArticleProduct
Assessment
AssessmentClass
AssessmentSubmission
AttachmentData
Attendance
Banking
Certificate
ClassCost
ConcessionType
Contact
ContactRelation
ContactRelationType
CorporatePass
CorporatePassCourseClass
CorporatePassProduct
Country
Course
CourseClass
CourseClassTutor
CourseModule
CustomField
CustomFieldType
DefinedTutorRole
Discount
DiscountConcessionType
DiscountCourseClass
DiscountMembership
DiscountMembershipRelationType
Document
DocumentVersion
EmailTemplate
Enrolment
EntityRelation
ExportTemplate
Field
FieldConfiguration
FieldConfigurationScheme
FieldHeading
FundingSource
FundingUpload
FundingUploadOutcome
Import
Invoice
InvoiceDueDate
InvoiceLine
InvoiceLineDiscount
Language
Membership
MembershipProduct
Message
MessagePerson
Module
Note
Outcome
PayLine
PayRate
PaymentIn
PaymentInLine
PaymentMethod
PaymentOut
PaymentOutLine
Payslip
Preference
PriorLearning
Product
ProductItem
Qualification
Report
ReportOverlay
Room
SavedFind
Script
Session
SessionModule
Site
Student
StudentConcession
Survey
SystemUser
Tag
TagRelation
TagRequirement
Tax
TrainingPackage
Tutor
TutorAttendance
UnavailableRule
Voucher
VoucherPaymentIn
VoucherProduct
WaitingList
Enumerations
AccountTransactionType
AccountType
ApplicationStatus
AttachmentInfoVisibility
AttachmentSpecialType
AttendanceType
AvetmissStudentDisabilityType
AvetmissStudentEnglishProficiency
AvetmissStudentIndigenousStatus
AvetmissStudentLabourStatus
AvetmissStudentPriorEducation
AvetmissStudentSchoolLevel
ClassCostFlowType
ClassCostRepetitionType
ClassFundingSource
ClientIndustryEmploymentType
ClientOccupationIdentifierType
ConfirmationStatus
ContactDuplicateStatus
CourseClassAttendanceType
CourseEnrolmentType
CreditCardType
CreditLevel
CreditProviderType
CreditType
DeliveryMode
DeliverySchedule
DiscountType
EnrolmentStatus
EnrolmentVETFeeHelpStatus
EntityRelationType
ExpiryType
FieldConfigurationType
InvoiceType
KeyCode
KeyCollision
MessageStatus
MessageType
MoneyRounding
NodeSpecialType
OutcomeStatus
PaymentSource
PaymentStatus
PaymentType
PayslipStatus
PostcodeType
ProductStatus
ProductType
QualificationType
RecognitionOfPriorLearningIndicator
StudentCitizenship
StudentStatusForUnitOfStudy
StudyReason
SurveyTypeSource
SurveyVisibility
TriggerType
UsiStatus
VETFeeExemptionType
VoucherPaymentStatus

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  ;
}

Enumerations

CARD_DETAILS_REQUIRED

Indicates that payment was saved in onCourse Web, but user needs to provide credit card details. Database value: 10

CORRUPTED

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

FAILED

Indicates a failed response due to an error. FINAL STATUS Database value: 4

FAILED_CARD_DECLINED

Indicates a failed response given by the credit card gateway. FINAL STATUS Database value: 6

FAILED_NO_PLACES

Indicates that the enrolment and payment could not be accepted because there were no enrolment places left. FINAL STATUS Database value: 7

IN_TRANSACTION

This payment is currently being processed against the gateway and should not be touched by any other thread. Database value: 2

NEW

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

QUEUED

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

SUCCESS

Indicates successful and confirmed completion of a payment or enrolment. FINAL STATUS Database value: 3

Static methods

PaymentStatus.isFinalState(status)

checks if a given status is a final status (not to be altered anymore)

PaymentStatus status

to be verified

Returns boolean

true if the param belongs to statuses_final