Creating a Transaction Key
If you have not already done so, you must create an Authorize.Net transaction key. This key is used to create a transaction-specific signature at your server. The signature is cross-checked by Authorize.Net servers when a transaction request is received, ensuring that no transaction is initiated by the consumer without your approval.
NOTE: Ensure that your transaction key is stored securely on your merchant server. Never store it within your app code on the device. If the key is compromised, generate a new key.
To create a transaction key:
Step 1. In the Authorize.Net Merchant Interface, navigate to Account > Settings > Security Settings > General Security Settings > API Login and Transaction Key.
Step 2. Enter the answer to the secret question in the Secret Answer field.
Step 3. Click Submit.
Signing Up for the Service
Apple Pay uses payment network tokenization. If your processor does not support payment network tokenization or if Authorize.Net does not support your payment processor's tokenization interface, you cannot sign up for Apple Pay through Authorize.Net.
To sign up for Apple Pay:
Step 1. Log in to the Authorize.Net Merchant Interface.
Step 2. Navigate to the Digital Payment Solutions section.
Step 3. In the Apple Pay section, click Sign Up.
Obtaining an Apple Merchant ID
You must obtain an Apple merchant ID before you can generate the Certificate Signing Request (CSR) that Apple requires.
To obtain an Apple Merchant ID:
Step 1. Navigate to the Apple World Wide Developer Relations (WWDR) website & Member Center & Certificates, Identifiers, & Profiles.
Step 2. In the Register Merchant IDs section, click Continue. Your Merchant ID is in the Identifier field.
Step 3. Click Done.
Generating the CSR
You must submit a Certificate Signing Request (CSR) to Apple in order to receive a necessary payment entitlement certificate.
To generate the CSR:
Step 1. Log in to the Authorize.Net Merchant Interface
Step 2. Navigate to Home > Digital Payments Solutions > Apple Pay.
Step 3. Enter your Apple Merchant ID in the Apple merchant ID field.
The Apple Merchant ID that you enter must be identical to the one that you created at the Apple site. If it is different, Authorize.Net will not be able to to decrypt the payment data.
Step 4. Click Generate Apple CSR.
Submitting the CSR File to Apple
You must submit the CSR to Apple in order to receive the required payment entitlement certificate.
To submit the CSR file to Apple:
Step 1. Navigate to the Apple World Wide Developer Relations (WWDR) website & Member Center & Certificates, Identifiers.
Step 2. In the Merchant ID page, click Edit.
Step 3. In the iOS Merchant ID Settings page, click Create Certificate.
Step 4. Follow the instructions to submit the CSR.
Apple Pay Transactions
To process an Apple Pay transaction, use createTransactionRequest, using the opaqueData field instead of credit card, bank account, profile, or any other type of payment field. For more information on submitting the payment request, see the Apple Pay section of the API Reference Guide.
Note: Keep the following points in mind when submitting Apple Pay transactions:
- Both opaque parameters must be specified.
- You cannot include card number or expiration date.
- You cannot include track data.
- Must be an e-commerce transaction. Confirm that your gateway account is set up as a card-not-present account. You can also submit marketType=0 in the createTransactonRequest.
- The transaction must be an authorization or authorize and capture type of transaction.
- You cannot include 3D Secure data.
- You must submit data that can be successfully decrypted.
- Decrypted data must belong to the merchant submitting the request.
- The submitted data must be base64 encoded.
Identifying Apple Pay Transactions in the Merchant Interface
You can identify Apple Pay transactions in the Transaction Detail view of the Authorize.Net Merchant Interface.
To identify an Apple Pay transaction:
Step 1. Log in to the Authorize.Net Merchant Interface and navigate to Reports > Transaction Detail.
Step 2. Choose an Item Type and a Date from their respective drop-down menus and click Run Report.
Step 3. Choose a transaction by clicking its Trans ID.
The Transaction Details lightbox appears. Apple Pay information is contained in the Tokenization Information section.