Solutions & Guides
Apple Pay
Set up Apple Pay for your application.
Apple Pay is currently only available for the Sync API.
Support for the Sell Anything API is in progress.
Step 1 - Get your merchant domain verified
- Contact dev@rye.com with your merchant domain (ex - MERCHANT_DOMAIN.com)
- dev@rye.com will email you with a merchant ID domain association text file
- Host this file at:
https://<MERCHANT_DOMAIN>/.well-known/apple-developer-merchantid-domain-association.txt
- Reply to dev@rye.com letting us know that it’s hosted in production
- Ensure that the text file is accessible when clicked on the link above
- dev@rye.com will verify this file and reply with a confirmation email, containing your Apple Pay merchant subdomain name.
Step 2 - Use Rye Pay
When using Rye Pay, update the init
method to include the following:
- Either
cartId
orvariantId
is required. If both are provided,cartId
is selected. - Set
displayShippingAddress
if you want users to change shipping address and select shipping options on the Apple Pay sheet. applePayButtonStyles
is optional and can be used to customize the Apple Pay button.
Step 3 - Use the Apple Pay button
Add the following snippet to where you’d like to display the Apple Pay button:
Please ensure you are testing on a Safari browser or your iPhone to see the Apple Pay button. The Apple Pay button will not be visible on any other browser.
Additional clientInformation
To understand what kind of payment was made via Rye Pay, you can do the following:
Was this page helpful?