Apple pay integration: Difference between revisions

From TT
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Steps for apple pay integration ==
== Steps for apple pay integration ==


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

Latest revision as of 06:09, 13 March 2024

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