PaymentTransaction: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
[email protected] (talk | contribs)
m fix "transactiom" typo
[email protected] (talk | contribs)
m Added maximum lengths for Payee and Comment.
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
This structure is used by the following API endpoints:
This structure is used by the following API endpoints:
* [[Payment-Start-v2]]
* [[Payment-Start-v2]]
* [[Payment-PaymentState-v4]]


== Property list ==
== Property list ==
Line 19: Line 18:
| Payee || string ||  
| Payee || string ||  
* Required
* Required
* Must be the e-mail address of a valid Barion wallet
* Must be the e-mail address of a valid Barion wallet  
|| The recipient user of the transaction. This Barion Wallet receives the money when the payment is completed by the payer.
* Maximum length: 256 characters
||The recipient user of the transaction. This Barion Wallet receives the money when the payment is completed by the payer.
|-
|-
| Total || decimal ||  
| Total || decimal ||  
Line 26: Line 26:
* Must be greater than [[Responsive_web_payment#Minimum_amounts|the minimum transaction amount in the given currency]]
* Must be greater than [[Responsive_web_payment#Minimum_amounts|the minimum transaction amount in the given currency]]
* Decimal precision depends on payment currency
* Decimal precision depends on payment currency
|| The total amount of the transaction. This is the amount that is charged towards the payer when completing the payment. The final amount of the transaction. This will overwrite the original amount.  
|| The total amount of the transaction. This is the amount that is charged towards the payer when completing the payment. The final amount of the transactiom. This will overwrite the original amount.  
The allowed number of decimal digits depends on the currency of the payment containing this transaction:
The allowed number of decimal digits depends on the currency of the payment containing this transaction:
* CZK: two digits
* CZK: two digits
Line 35: Line 35:
| Comment || string ||  
| Comment || string ||  
* Optional  
* Optional  
* Maximum length: 640 characters
|| A comment associated with the transaction. This is NOT shown to the payer. Description of the transaction, this will overwrite the original description
|| A comment associated with the transaction. This is NOT shown to the payer. Description of the transaction, this will overwrite the original description
|-
|-

Latest revision as of 14:50, 26 June 2026

Payment transaction structure

This structure represents a payment transaction related to a payment. One payment can contain multiple payment transactions.

API usage

This structure is used by the following API endpoints:

Property list

Property name Property type Limitations and constraints Description
POSTransactionId string
  • Required
The unique identifier of the transaction at the shop that started the payment.
Payee string
  • Required
  • Must be the e-mail address of a valid Barion wallet
  • Maximum length: 256 characters
The recipient user of the transaction. This Barion Wallet receives the money when the payment is completed by the payer.
Total decimal The total amount of the transaction. This is the amount that is charged towards the payer when completing the payment. The final amount of the transactiom. This will overwrite the original amount.

The allowed number of decimal digits depends on the currency of the payment containing this transaction:

  • CZK: two digits
  • EUR: two digits
  • HUF: zero digits
  • USD: two digits
Comment string
  • Optional
  • Maximum length: 640 characters
A comment associated with the transaction. This is NOT shown to the payer. Description of the transaction, this will overwrite the original description
PayeeTransactions PayeeTransaction[]
  • Optional
An array containing possible sub-transactions, which are executed after the payment was completed. These are e-money transactions that always take place in the Barion system. See the PayeeTransaction page for structure and syntax.

These are NOT shown to the payer.

Items Item[]
  • Required
An array containing the items (products or services) included in the transaction. See the Item page for structure and syntax. Items of the transaction. These will overwrite the original items

These are shown to the payer on the Barion Smart Gateway.