No PCI DSS compliance is required for decryption, and no Apple Developer account is required. Cashfree manages all Apple credentials and certificates.
Prerequisites
Before implementing Apple Pay with this option, ensure you meet the following requirements.- HTTPS-enabled website.
- Valid SSL/TLS certificate.
- Technical capability to implement the Apple Pay JS SDK.
Set up Apple Pay on the Cashfree Merchant Dashboard
Complete the following setup process on the Merchant Dashboard.1
Add your checkout domains
- Log in to the Merchant Dashboard.
- Navigate to Settings > Payment Methods > Apple Pay.
- Select Custom Checkout > Cashfree Decrypts > I don’t have an Apple Developer Account.
- Add all your checkout domains where you want to accept Apple Pay as a payment option, for example
checkout.yourstore.com. You can add multiple domains; each is registered separately with Apple.
2
Host the domain verification file
- Select Download Verification File in the Merchant Dashboard.
- Host the file at this exact path on each of your domains:
3
Verify your domain
- Return to the Merchant Dashboard.
- Select Activate. Cashfree registers your domains with Apple, and Apple Pay is enabled for each of those domains.
If you add new checkout domains in future, repeat the file-hosting and verification steps for each new domain. Apple Pay does not work on unregistered domains.
Implement Apple Pay on web
Implement Apple Pay in your web application using the following JavaScript steps.1
Check Apple Pay availability
2
Load the Apple Pay button
3
Create the payment request and initiate the session
4
Handle merchant validation through Cashfree
You must call Cashfree to handle the session request during merchant validation, as it requires Cashfree’s Apple credentials.
5
Handle payment authorisation
After the customer authenticates with Face ID or Touch ID, Apple Pay fires the
onpaymentauthorized event with the encrypted payment token. Pass the encrypted token to your server, then call the Cashfree Authorisation Only API with the encrypted data. Cashfree decrypts it and processes authorisation on your behalf.