Apple Pay: Difference between revisions
Jump to navigation
Jump to search
Stankovicsa (talk | contribs) |
Stankovicsa (talk | contribs) |
||
Line 31: | Line 31: | ||
# Include the Apple Pay SDK | # Include the Apple Pay SDK | ||
#: Include the following code snippet on your checkout page: | #: Include the following code snippet on your checkout page: | ||
#: <script src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"></script> | #: <code><script src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"></script></code> | ||
== API reference == | == API reference == | ||
* [[ApplePay-ValidateSession|/v2/ApplePay/ValidateSession]] | * [[ApplePay-ValidateSession|/v2/ApplePay/ValidateSession]] | ||
* [[ApplePay-StartPaymentWithAppleToken|/v2/ApplePay/StartPaymentWithAppleToken]] | * [[ApplePay-StartPaymentWithAppleToken|/v2/ApplePay/StartPaymentWithAppleToken]] |
Revision as of 15:39, 1 December 2021
Apple Pay
Introduction
Apple Pay can be emebedded two ways into your payment flow. In the first case, it will be displayed on Barion Smart Gateway, which needs no further development on your side, however you should request it from Customer Care through the ticketing. The second option is to display the Apple Pay button on your site ("integrated mode"), however this needs configuration and development on your side. This page will discuss the latter.
- Barion Smart Gateway Apple Pay demo: https://demomerchant.shop/en/DemoClub/Pay (click the Pay button)
- Apple Pay integrated mode demo: https://demomerchant.shop/en/DemoGame/Pay
Limitations
Using Apple Pay as a token payment is currently not possible.
Apple Pay will be visible to shoppers fulfilling the following criteria:
- Use an Apple Pay-compatible device
- Use Safari
- Located in a country or region where Apple Pay is available
- Have an existing card added to their Apple Pay wallet
Moreover the shop must not provide prohibited items by Apple
Prerequisits
Configuration
- Domain verification file
- First head over to secure.barion.com, and under Manage My Shops page select the appropriate one, and from the dropdown, click on settings. At the bottom click the Manage Apple Pay settings blue button under the Apple Pay Settings section. On the next page Click on the Download domain verification file button, which will download a domain association file. You should place this file at the content root of all of your sites, you're about to use apple pay in integrated mode.
- Configure Domains
- On the exact same page you've downloaded the domain association file, enter all the domains (one in each line, without https:// or https://) you're intending to use Apple Pay.
- Request Apple Pay to be enabled
- Head over to the Customer Center, and request Apple Pay to be enabled for your shop.
Development
- Include the Apple Pay SDK
- Include the following code snippet on your checkout page:
<script src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"></script>