Apple Pay™ integration
Apple Pay Merchant Documentation
Overview
Apple Pay provides an easy and secure way to make payments in your iOS, iPadOS, and watchOS apps, and on websites in Safari. And now, Apple Pay can also be used in Messages for Business and in iMessage extensions. By using Face ID, Touch ID, or double-clicking Apple Watch, users can quickly and securely provide their payment, shipping, and contact information to check out. Customers love the simplicity of Apple Pay, and you’ll love the increased conversion rates and new user adoption that come with it.
Prerequisites
Before integrating Apple Pay into your system, ensure you meet the following prerequisites:
Apple Developer Account: You must have access to an Apple Developer account.
Payment Processing Certificate: Obtain a payment processing certificate. This certificate ensures secure communication between your server and Apple.
Merchant Identity Certificate and Merchant Identity Validation : Obtain a merchant identifier from Apple and generate certificated. This identifier links your Apple Developer account with your payment processing certificate.
Integration Steps
Follow these steps to integrate Apple Pay into your system:
Configure Payment Processing Certificate:
Install the payment processing certificate on your server. This certificate ensures secure communication with Apple servers.
Refer to following documentation for detailed instructions on installing the certificate.
Configure Merchant Identity Certificate and Validation:
Configure Merchant Identity Certificate and Validate your merchant identifier with Apple. This step confirms your identity and enables Apple Pay for your account.
Refer to following documentation for detailed instructions on merchant identity certificate and validation.
Verify domain:
Refer to following document on how to verify the domain.
Share certificates with Netvalve developers:
Send both certificates with Netvalve developers so those can be configured within the system.
Integrate with Your Platform:
Depending on your platform integrate Apple Pay into your checkout process.
Apple Pay returns the encrypted payment data payload once the user has successfully authorized the payment transaction. This typically occurs after the user confirms the payment on their device using Touch ID, Face ID, or passcode, depending on the authentication method they've set up.
Once the payment authorization process is completed on the user's device, Apple Pay securely transmits the encrypted payment data payload to your backend server for further processing. This payload contains all the necessary information to process the payment, including details about the payment method, transaction identifier, and encrypted payment data.
As a response, Apple Pay will provide the encrypted payload. Example of Apple Pay payload:
{ "data": "j2DEV4+KvjvAVJgAYW/T2Tj0XfWHwlCH2t2swU0HX+benHAd6J+Qc63Y2CO+JsG+my8rnL6DNqNXslrplLw3ZeeBVRF1eVw93onpc5ZbfKUBRl0FQAesBmPIEYfRWiaAgq/7FWyio3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X07oFEcmwt4UQEcF9UDvS8Z5NdW5GzvpxtV7zlwAAAAAAAA==", "header": { "publicKeyHash": "IhhPGBcPOucUmM3XS6gAYDaBSVrY+afwSf1Y+sCG9pY=", "ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEozFHMd8s3HUYSexnYBDi7Bsu2LCnrUII/T2f7Dq4zNnrUvy73h8OC/rZwpML4HyDepBQWcAWMYxoINBEVRo2wQ==", "transactionId": "ad6432495110a7ebeaf8ed048efa81cec5912233ef7fbe6ceaff03ceca0cd6ab" }, "version": "EC_v1" }
This Apple Pay payload should be included as part of the Netvalve payment request body (i.e. Sale operation):
{ "amount": 100.00, "clientOrderId": {{clientOrderId}}, "currency": "USD", "customerAddress": "Skopje", "customerCity": "Skopje", "customerCountryCode": "US", "customerEmail": "john.doe@netvalve.com", "customerIp": "123.123.123.123", "customerName": "John", "customerLastName": "Doe", "customerPhone": "+3123123112312", "customerState": "Mkd", "customerZipCode": "1000", "midId": 13, "paymentType": "WALLET", "walletType": "APPLE_PAY", "applePaySSL": { "paymentData": { // Insert Apple Pay payload here. }, "paymentMethod": { "displayName": "Visa 0326", "network": "Visa", "type": "debit" }, "transactionIdentifier": "ad6432495110a7ebeaf8ed048efa81cec5912233ef7fbe6ceaff03ceca0cd6ab" } }
Full request body example would look like this:
{ "amount": 100.00, "clientOrderId": {{clientOrderId}}, "currency": "USD", "customerAddress": "Skopje", "customerCity": "Skopje", "customerCountryCode": "US", "customerEmail": "john.doe@netvalve.com", "customerIp": "123.123.123.123", "customerName": "John", "customerLastName": "Doe", "customerPhone": "+3123123112312", "customerState": "Mkd", "customerZipCode": "1000", "midId": 13, "paymentType": "WALLET", "walletType": "APPLE_PAY", "applePaySSL": { "paymentData": { "data": "j2DEV4+KvjvAVJgAYW/T2Tj0XfWHwlCH2t2swU0HX+benHAd6J+Qc63Y2CO+JsG+my8rnL6DNqNXslrplLw3ZeeBVRF1eVw93onpc5ZbfKUBRl0FQAesB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4fmDh0L/w6h3TAiAtCh3X07oFEcmwt4UQEcF9UDvS8Z5NdW5GzvpxtV7zlwAAAAAAAA==", "header": { "publicKeyHash": "IhhPGBcPOucUmM3XS6gAYDaBSVrY+afwSf1Y+sCG9pY=", "ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEozFHMd8s3HUYSexnYBDi7Bsu2LCnrUII/T2f7Dq4zNnrUvy73h8OC/rZwpML4HyDepBQWcAWMYxoINBEVRo2wQ==", "transactionId": "ad6432495110a7ebeaf8ed048efa81cec5912233ef7fbe6ceaff03ceca0cd6ab" }, "version": "EC_v1" }, "paymentMethod": { "displayName": "Visa 0326", "network": "Visa", "type": "debit" }, "transactionIdentifier": "ad6432495110a7ebeaf8ed048efa81cec5912233ef7fbe6ceaff03ceca0cd6ab" } }
Test Integration: Test the Apple Pay integration thoroughly in a sandbox environment. Ensure that payments are processed correctly and securely.
Go Live: Once testing is successful, deploy the Apple Pay integration to your live environment. Monitor transactions and performance to ensure everything functions as expected.
Enable Apple Pay on Hosted Payment Page
In order to use Apple Pay on Hosted Payment Page, it’s required to enable the option on Backoffice and add private key and certificate
Testing
Apple Pay™ is available for testing in a Sandbox environment. Ensure to indicate the test environment openly during the integration process. Contact Netvalve support department for assistance with Sandbox environment registration and integration involving the Apple Pay payment method.