Barion API: Start Payment With Apple token
|Property name||Property type||Limitations and constraints||Description|
|POSKey||Guid||* Required||The secret API key of the shop, generated by Barion. This lets the shop to authenticate through the Barion API, but does not provide access to the account owning the shop itself.|
|ShippingContact||ShippingContact||* Required||The shipping information of the payer provided by Apple|
|BillingContact||BillingContact||* Required||The billing information of the payer provided by Apple|
|Token||Token||* Required||The Token provided by Apple in onpaymentauthorized callback.|
||The type of payment, which can be either immediate or a money reservation. Reservation means that the shop has a time window to finish the payment (even though the money transaction still takes place immediately). Reservation amounts can be modified during this time window unless the new amount is lower than the original.|
||Only makes sense at reservation payments. This is the time window that allows the shop to finish (finalize) the payment. If this does not happen within the time window, the system refunds the payment amount to the payer.|
||This is the time window that allows the shop to complete (finalize) the payment. If this does not happen within the time window, the system releases the payment amount.|
||The unique identifier for the payment generated by the shop. This is so the shop can track its own payment identifiers. It is also useful for bookkeeping purposes since this shows up in the monthly account statement and the transaction history export, making identification of payments easier for the shop.|
||The URL where the Barion system sends a request whenever there is a change in the state of the payment. The payment identifier is added to the query string part of this URL in the |
||An array of payment transactions contained in the payment. A payment must contain at least one such transaction. See the PaymentTransaction page for the appropriate structure and syntax.
Defining multiple transactions allow the payment initiator to distribute the payment amount between multiple shops. See the following page to learn more: Facilitated payments
||The order number generated by the shop. This is to aid the shop in identifying a given payment in its own system. This also shows up in generated monthly account statements and transaction history exports, so it also helps with bookkeeping.|
|The currency of the payment. Must be supplied in ISO 4217 format. This affects all transactions included in the payment; it is not possible to define multiple transactions in different currencies.|
Note: You can pass all the properties of PaymentStart, but the rest of it is not used in this process, thus unnecessary.
No specific output property is available, besided the generic ones.
Possible error responses
|ModelValidationError||This happens when some of the input properties fail the basic validation. For example the session request url is malformed.|
|InvalidApplePayToken||The provided token is invalid.|
|InvalidApplePayMessage||The provided message is invalid.|
|ApplePayNotAllowed||Apple Pay not allowed for token payments;|
|NotRegisteredToApple||The provided shop url is not registered to Apple.|