ApplePay-StartPaymentWithAppleToken

From Barion Documentation
Revision as of 20:51, 1 December 2021 by Stankovicsa (talk | contribs)
Jump to navigation Jump to search

Barion API: Start Payment With Apple token

POST /v2/ApplePay/StartPaymentWithAppleToken

Input properties

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
BillingContact BillingContact * Required
Token Token * Required

Output properties

No specific output property is available, besided the generic ones.

Error code Description
AuthenticationFailed Authentication failed.
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.