Apple pay integration

From TT

Steps for apple pay integration[edit]

  1. create the merchant ID: https://developer.apple.com/account/resources/identifiers/list/merchant
  2. Create a payment processing certificate: https://developer.apple.com/account/resources/identifiers/list/merchant
    1. find the merchant id created from step 1.
    2. Under Apple Pay Payment Processing Certificate, click Create Certificate.
    3. use cardstream csr file or cert file from MMS
    4. download the file and use that for CS cert upload
  3. Register a merchant domain: https://developer.apple.com/account/resources/identifiers/list/merchant
    1. find the merchant id created from step 1.
    2. scroll down to merchant domains and click add domain
    3. this is for the website that will be using this merchant id
  4. Create a merchant identity certificate: https://developer.apple.com/account/resources/identifiers/list/merchant
    1. find the merchant id created from step 1.
    2. create an Apple Pay Merchant Identity Certificate
    3. create the cert using MAC keychain: https://developer.apple.com/help/account/create-certificates/create-a-certificate-signing-request
    4. upload the generated csr file to back to apple "xxx.certSigningrequest file"
    5. download the new cert and send it to a MAC then double click it to send it to keychain
    6. right-click that certificate (probably named "Merchant ID: merchant...." from within keychain access.app (you may need to expand the private key entry to see the certificate under it) and select "Export 'Merchant ID merchant....' ". This will default to exporting a xxxx.p12 file to your desktop.
    7. input a password for the exported .p12 file and save it in mac
    8. do the script below using mac terminal app, make sure to rename .p12 to the file name you're using
    9. openssl pkcs12 -in ApplePayMerchantIdentity_and_privatekey.p12 -out ApplePay.crt.pem -clcerts -nokeys
    10. openssl pkcs12 -in ApplePayMerchantIdentity_and_privatekey.p12 -out ApplePay.key.pem -nocerts
    11. remember the passphrase you use since that will be used for the config
    12. for the passwords asked or passphrase just use the password used during the .p12 export
    13. the 2 generated .pem files will be used for the config
  5. dont forget to update system settings to use the merchant id created from step 1