TransactionStatus: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Transaction status enumeration =
{{PageTitle|title=Transaction status enumeration}}


This enum indicates the current status of a transaction.
This enum indicates the current status of a transaction.


== Included in ==  
= Included in =


Transaction status is used in the following structures:
Transaction status is used in the following structures:
* [[DetailedPaymentTransaction]]
* [[DetailedPaymentTransaction]]
* [[RefundedTransaction]]
* [[ProcessedTransaction]]


== Property list ==
= Enum list =


{{api_enum_table_header}}
{{api_enum_table_header}}
|-
|-
 
|Prepared || 0 || The transaction is prepared, and is ready to be completed.
Prepared || 0 ||  
|-
Started || 1 ||
|-
Succeeded || 2 ||
|-
Timeout || 3 ||
|-
ShopIsDeleted || 4 ||
|-
ShopIsClosed || 5 ||
|-
Rejected || 6 ||
|-
ToAccountCommissionCalculatorNotExists || 7 ||
|-
TransferredToTechnicalAccount || 8 ||
|-
TransferToNotExistingUserStorno || 9 ||
|-
FromToIdentical || 10 ||
|-
FinalAmountGreaterThanTransactionamount || 11 ||
|-
RejectedByShop || 12 ||
|-
Storno || 13 ||
|-
Reserved || 14 ||
|-
Deleted || 15 ||
|-
Expired || 16 ||
|-
|-
TransactionRecordNotExists || 101 ||  
|Started || 1 || The transaction has been started. This is used at reservation payments.
|-
|-
ShopTransactionIdNotEqual || 102 ||  
|Succeeded || 2 || The transaction was successfully completed.
|-
|-
TransactionStatusNotCorrect || 103 ||  
|Timeout || 3 || The transaction has timed out.
|-
|-
FromAccountNotExists || 105 ||  
|ShopIsDeleted || 4 || The shop that created the transaction has been deleted in the meantime.
|-
|-
FromAccountIsSuspendedOrDeleted || 106 ||  
|ShopIsClosed || 5 || The shop that created the transaction has been closed in the meantime.
|-
|-
FromAccountBalanceIsNotEnough || 107 ||  
|Rejected || 6 || The user rejected the transaction.
|-
|-
ToAccountIsDeleted || 108 ||  
|RejectedByShop || 12 || The transaction was cancelled by the shop.
|-
|-
FromAccountOwnerIsDeletedOrForbiddenOrSuspended || 109 ||  
|Storno || 13 || Storno amount for a previous transaction.
|-
|-
UserOverTransactionLimit || 110 ||  
|Reserved || 14 || The transaction amount has been reserved.
|-
|-
TransferFromTechnicalAccountNotExistsEmail || 121 ||  
|Deleted || 15 || The transaction was deleted.
|-
|-
TransferFromTechnicalAccountNotExistsRelatedId || 122 ||  
|Expired || 16 || The transaction has expired.
|-
|-
InvalidAmount || 123 ||  
|Authorized || 17 || The card payment transaction is authorized but not captured yet.
|-
|-
CardTopUpRequested || 200 ||  
|Reversed || 18 || The authorization was reversed (either captured with amount 0, or net captured at all).
|-
|-
InvalidPaymentRecord || 210 ||  
|InvalidPaymentRecord || 210 || A payment to the given transaction does not exists.
|-
|-
PaymentTimeOut || 211 ||  
|PaymentTimeOut || 211 || The payment of the transaction has timed out.
|-
|-
InvalidPaymentStatus || 212 ||  
|InvalidPaymentStatus || 212 || The payment of the transaction is in an invalid status.
|-
|-
PaymentSenderOrrecipientIsInvalid || 213 ||  
|PaymentSenderOrRecipientIsInvalid || 213 || The sender or recipient user was not found in the Barion system.
|-
|-
Unknown || 255 ||  
|Unknown || 255 || The transaction is in an unknown state.
|}
|}

Latest revision as of 14:09, 14 October 2020

Transaction status enumeration

This enum indicates the current status of a transaction.

Included in

Transaction status is used in the following structures:

Enum list

Enum value Byte / int value Description
Prepared 0 The transaction is prepared, and is ready to be completed.
Started 1 The transaction has been started. This is used at reservation payments.
Succeeded 2 The transaction was successfully completed.
Timeout 3 The transaction has timed out.
ShopIsDeleted 4 The shop that created the transaction has been deleted in the meantime.
ShopIsClosed 5 The shop that created the transaction has been closed in the meantime.
Rejected 6 The user rejected the transaction.
RejectedByShop 12 The transaction was cancelled by the shop.
Storno 13 Storno amount for a previous transaction.
Reserved 14 The transaction amount has been reserved.
Deleted 15 The transaction was deleted.
Expired 16 The transaction has expired.
Authorized 17 The card payment transaction is authorized but not captured yet.
Reversed 18 The authorization was reversed (either captured with amount 0, or net captured at all).
InvalidPaymentRecord 210 A payment to the given transaction does not exists.
PaymentTimeOut 211 The payment of the transaction has timed out.
InvalidPaymentStatus 212 The payment of the transaction is in an invalid status.
PaymentSenderOrRecipientIsInvalid 213 The sender or recipient user was not found in the Barion system.
Unknown 255 The transaction is in an unknown state.