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 |
The shipping information of the payer
|
BillingContact |
BillingContact |
* Required |
The billing information of the payer
|
Token |
Token |
* Required |
The Token provided by Apple in onpaymentauthorized callback.
|
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.
|