PaymentTransaction: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
(Created page with "= Payment transaction structure = This structure represents a payment transaction related to a payment. One payment can contain multiple payment transactions. == API usage =...")
 
No edit summary
Line 38: Line 38:
| Items || [[Item]][] ||  
| Items || [[Item]][] ||  
* Optional  
* Optional  
|| An array containing the items (products or services) included in the transaction.
|| An array containing the items (products or services) included in the transaction. See the [[Item]] page for structure and syntax.
These are shown to the payer on the Barion Smart Gateway.
These are shown to the payer on the Barion Smart Gateway.
|-
|-
|}
|}

Revision as of 19:57, 2 February 2017

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
The recipient user of the transaction. This Barion wallet receives the money when the payment is completed by the payer.
Total decimal
  • Required
  • Must be greater than zero
The total amount of the transaction. This is the amount that is charged towards the payer when completing the payment.
Comment string
  • Optional
A comment associated with the transaction. This is NOT shown to the payer.
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[]
  • Optional
An array containing the items (products or services) included in the transaction. See the Item page for structure and syntax.

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