2011-09-27 12:48:11 +00:00
|
|
|
PAYMENT_TYPE_NONE = 0
|
|
|
|
PAYMENT_TYPE_INSTANT = 1
|
|
|
|
PAYMENT_TYPE_AUTHORIZATION = 2
|
|
|
|
|
2012-05-11 11:19:13 +00:00
|
|
|
PAYMENT_HOST_NONE = "none"
|
|
|
|
PAYMENT_HOST_PAYPAL = "paypal"
|
|
|
|
PAYMENT_HOST_AMAZON = "amazon"
|
2012-09-21 18:24:42 +00:00
|
|
|
PAYMENT_HOST_STRIPE = "stripelib"
|
2012-09-13 23:43:54 +00:00
|
|
|
|
2012-08-31 07:16:04 +00:00
|
|
|
PAYMENT_HOST_TEST = "test"
|
|
|
|
PAYMENT_HOST_CREDIT = "credit"
|
2012-05-11 11:19:13 +00:00
|
|
|
|
2011-12-14 13:30:37 +00:00
|
|
|
EXECUTE_TYPE_NONE = 0
|
|
|
|
EXECUTE_TYPE_CHAINED_INSTANT = 1
|
|
|
|
EXECUTE_TYPE_CHAINED_DELAYED = 2
|
|
|
|
EXECUTE_TYPE_PARALLEL = 3
|
|
|
|
|
2012-05-04 14:30:05 +00:00
|
|
|
# The default status for a transaction that is newly created
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_NONE = 'None'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# Indicates a transaction has been sent to the co-branded API
|
2012-04-21 05:09:33 +00:00
|
|
|
TRANSACTION_STATUS_CREATED = 'Created'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
2012-09-06 20:55:32 +00:00
|
|
|
# A general complete code to indicate payment is complete to all receivers
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_COMPLETE = 'Complete'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# A general pending code that means in process
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_PENDING = 'Pending'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
2012-09-06 20:55:32 +00:00
|
|
|
# This means that the max amount has increased but the increase hasn't been executed
|
|
|
|
TRANSACTION_STATUS_MODIFIED = 'Modified'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# Indicates a preapproval is active
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_ACTIVE = 'Active'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# Only used in paypal at the moment, indicates payment was made to only 1 of multiple receivers
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_INCOMPLETE = 'Incomplete'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# A general error code, see provider specific info for more detils
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_ERROR = 'Error'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# A preapproval was canceled
|
2012-04-21 05:09:33 +00:00
|
|
|
TRANSACTION_STATUS_CANCELED = 'Canceled'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# Money that was transfered was refunded, either through a reversal or manual refund
|
2012-04-20 19:59:08 +00:00
|
|
|
TRANSACTION_STATUS_REFUNDED = 'Refunded'
|
2012-05-04 14:30:05 +00:00
|
|
|
|
|
|
|
# The transaction was refused/denied
|
2012-04-21 05:09:33 +00:00
|
|
|
TRANSACTION_STATUS_FAILED = 'Failed'
|
2012-04-20 19:59:08 +00:00
|
|
|
|