{"title":"Use your own certificate for web","category":"default","creationDate":1671090360,"content":"<p>This page explains how to enable Apple Pay on your website with your own Apple Pay certificate.<\/p>\n<h2>Requirements<\/h2>\n<p>Before you begin, take into account the following requirements, limitations, and preparations.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have built a Web Drop-in\/Components integration using the Advanced or Sessions flow.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/account\/user-roles\">Customer Area roles<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have one of the following roles: <ul><li markdown=\"1\"><strong>Merchant admin<\/strong><\/li> <li markdown=\"1\"><strong>Manage API Credentials<\/strong><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin: <ul><li markdown=\"1\">Make sure that you have an <a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Apple Developer account<\/a> that is associated with either the <a href=\"https:\/\/developer.apple.com\/programs\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Apple Developer Program<\/a>, or the <a href=\"https:\/\/developer.apple.com\/programs\/enterprise\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Apple Developer Enterprise Program<\/a>.<\/li><li markdown=\"1\">To get notifications when your Apple Pay certificate is about to expire, create a user with an email address that is linked to a group inbox or distribution list and has the <strong>Account Holder<\/strong> or <strong>Admin<\/strong> role.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<p>To add Apple Pay to your website with your own Apple Pay certificate, you must:<\/p>\n<ol>\n<li><a href=\"#create-merchant-identifiers\">Create merchant identifiers<\/a> in your Apple developer account, and enter them in your Customer Area. You must create separate merchant identifiers for test transactions and live transactions.<\/li>\n<li><a href=\"#create-payment-processing-certificate\">Create a payment processing certificate<\/a> for each merchant identifier, and add each certificate to the correct user in your Customer Area. Apple Pay uses this certificate to encrypt payment information, and we need to have this certificate to be able to decrypt and process the payment.<\/li>\n<li><a href=\"#register-merchant-domain\">Register and validate your merchant domain with Apple<\/a>.<\/li>\n<li><a href=\"#create-merchant-identity-certificate\">Create a merchant identity certificate<\/a>, convert it to a PEM file, and upload it to your server. This certificate is used to authenticate communication with the Apple Pay servers.<\/li>\n<li><a href=\"#add-apple-pay-as-a-payment-method\">Add Apple Pay as a payment method in your Customer Area<\/a>.<\/li>\n<\/ol>\n<p>For information about server requirements for Apple Pay on the web, refer to the\u00a0<a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/setting_up_your_server\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Apple Developer portal<\/a>.<\/p>\n<h2 id=\"create-merchant-identifiers\">Create merchant identifiers<\/h2>\n<p>A merchant identifier uniquely identifies you as a merchant who is able to accept Apple Pay payments.<\/p>\n<p>You can use the same merchant identifier for multiple websites and iOS apps.<\/p>\n<p>To create merchant identifiers:<\/p>\n<ol>\n<li>\n<p>Log in to your Apple Developer account at\u00a0<a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/developer.apple.com<\/a>.<\/p>\n<\/li>\n<li>\n<p>Follow the Apple Developer Account Help instructions to <a href=\"https:\/\/developer.apple.com\/help\/account\/configure-app-capabilities\/configure-apple-pay#create-a-merchant-identifier\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">create a merchant identifier<\/a>. Your merchant identifier must include the prefix <span translate=\"no\"><strong>merchant.<\/strong><\/span>. We recommend to use the prefix <span translate=\"no\"><strong>merchant.com.adyen<\/strong><\/span>. For example: <span translate=\"no\"><strong>merchant.com.adyen.merchantAccount<\/strong><\/span>.<br \/>\nFor test transactions, we recommend creating a merchant identifier with <span translate=\"no\"><strong>.test<\/strong><\/span> at the end. For example: <span translate=\"no\"><strong>merchant.com.adyen.merchantAccount.test<\/strong><\/span><\/p>\n<\/li>\n<li>\n<p>Log in to your Adyen <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> and go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong>. Select the web service user that will execute your Apple Pay transactions (<span translate=\"no\"><strong>ws@Company.<\/strong><\/span><strong>[YourCompanyAccount]<\/strong>).<\/p>\n<\/li>\n<li>\n<p>In <strong>Wallet payment methods<\/strong> &gt; <strong>Apple Pay<\/strong>, select <strong>+ Add<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Select <strong>Use your own certificate<\/strong> &gt; <strong>Continue<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Enter the merchant identifier and select <strong>Download CSR<\/strong> &gt; <strong>Continue<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Save the CSR. You will need it to create the payment processing certificate.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"create-payment-processing-certificate\">Create payment processing certificate<\/h2>\n<ol>\n<li>\n<p>Log in to your Apple Developer account at\u00a0<a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/developer.apple.com<\/a>.<\/p>\n<\/li>\n<li>\n<p>Follow the Apple Developer Account Help instructions to create a payment processing certificate for <a href=\"https:\/\/developer.apple.com\/help\/account\/configure-app-capabilities\/configure-apple-pay#create-a-payment-processing-certificate\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">a website<\/a>:<\/p>\n<ul>\n<li>Select a merchant identifier that you created <a href=\"#create-merchant-identifiers\">when you created your merchant identifiers<\/a>.<\/li>\n<li>Skip the step to create a certificate signing request.<\/li>\n<li>In the step to select the certificate signing request file, select the CSR you created <a href=\"#create-merchant-identifiers\">when you created your merchant identifiers<\/a>.<\/li>\n<li>If at any time a question <span translate=\"no\"><strong>Will payments associated with this Merchant ID be processed exclusively in China?<\/strong><\/span>\u00a0or similar appears, answer <span translate=\"no\"><strong>No<\/strong><\/span> and continue.<\/li>\n<li>Download and save the generated payment processing certificate (CER or <span translate=\"no\"><strong>.cer<\/strong><\/span> file).<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>When you have completed the instructions from Apple, return to your Adyen Customer Area and go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong>. Select the web service user that will execute your Apple Pay transactions (<span translate=\"no\"><strong>ws@Company.<\/strong><\/span><strong>[YourCompanyAccount]<\/strong>).<\/p>\n<\/li>\n<li>\n<p>Select the merchant identifier.<\/p>\n<\/li>\n<li>\n<p>Upload the payment processing certificate and select <strong>Continue<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<h3>Renew a payment processing certificate<\/h3>\n<p>When your certificate expires, you have to renew it. Apple Pay requires time to fully activate your new payment processing certificate. During that time period, transactions may still use the old certificate.<\/p>\n<p>To renew a certificate:<\/p>\n<ol>\n<li>\n<p>Log in to your Adyen <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> and go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Select the relevant web service user.<\/p>\n<\/li>\n<li>\n<p>Under <strong>Apple Pay Certificates<\/strong> select <strong>Add<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Enter the merchant identifier and download the CSR. Write down the start of the <code>KeyID<\/code> to help you locate it in step 6.<\/p>\n<\/li>\n<li>\n<p>Go to the Apple development environment and follow the steps described there to get the CER.<\/p>\n<\/li>\n<li>\n<p>In the <strong>Apple Pay Certificates<\/strong> section, select the certificate with the <code>KeyID<\/code> you noted in step 4. This will have the <strong>Input needed<\/strong> status.<\/p>\n<\/li>\n<li>\n<p>Select the <strong>eye icon<\/strong> <img src=\"\/user\/themes\/adyen\/images\/illustrations\/eye.svg\">.<\/p>\n<\/li>\n<li>\n<p>In the dialog that pops up, click <strong>Continue<\/strong>, and upload the certificate.<\/p>\n<\/li>\n<li>\n<p>Activate the new certificate on Apple's Developer Portal. Until this is completed, the old certificate will still be used.<\/p>\n<p>After the activation of the new certificate, the old certificate will continue to be used for about 4 hours after the activation of the new certificate.<\/p>\n<\/li>\n<li>\n<p>Verify that the new certificate is in use for payments (see steps below).<\/p>\n<\/li>\n<\/ol>\n<h3>Verify which certificate is in use<\/h3>\n<p>Apple gradually rolls out new certificates. This means that the old certificate remains active and might be used while the new certificate is being rolled out.<\/p>\n<p>To see which certificate is in use for a payment, follow these steps:<\/p>\n<ol>\n<li>\n<p>In the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request, find the Base64-encoded JSON object <code>paymentMethod.applePayToken<\/code>:<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Example \/payments request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"paymentMethod\\\" : {\\n    \\\"applePayToken\\\" : \\\"eyJkYXRhIjoiSjc4QmtKTUp3TXFBM2dt........=\\\",\\n    \\\"type\\\" : \\\"applepay\\\"\\n  }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Decode the <code>paymentMethod.applePayToken<\/code> object:<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Example of a decoded applePayToken'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"data\\\": \\\"J78BkJMJwM....=\\\",\\n    \\\"header\\\": {\\n        \\\"transactionId\\\": \\\"8996...\\\",\\n        \\\"ephemeralPublicKey\\\": \\\"MFkwEwYH....=\\\",\\n        \\\"publicKeyHash\\\": \\\"i4c9tRzBEIK4....\\\"\\n    },\\n    \\\"signature\\\": \\\"MIAGCSqGSIb3D....=\\\",\\n    \\\"version\\\": \\\"EC_v1\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The <code>publicKeyHash<\/code> contains the <code>KeyID<\/code> value of the certificate that was used for the payment.<\/p>\n<\/li>\n<li>\n<p>In your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>, go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong>, and find the relevant web service user that made the payments. Under wallet payment methods, go to <strong>Apple Pay Certificates<\/strong>, and check the <code>KeyID<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>If you see the <code>KeyID<\/code> for your old certificate, this may be due to the gradual rollout of Apple Certificates, and it does not mean that your setup is not successful. Four hours after the activation the rollout should be completed and you will no longer see payments using the old certificate. When you see the new certificate for an authorized payment, this confirms that all steps have been completed successfully.<\/p>\n<p>To remove the old certificate from the <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>, go to <strong>Apple Pay Certificates<\/strong>, select the certificate with the applicable <code>KeyID<\/code>, and click the bin icon <i class=\"adl-icon-bin\"><\/i>.<\/p>\n<h2 id=\"register-merchant-domain\">Register and validate your merchant domain<\/h2>\n<div class=\"sc-notice info\"><div>\n<p>This step doesn't apply when you are using our Salesforce Commerce Cloud plugin. Refer to our <a href=\"\/pt\/plugins\/salesforce-commerce-cloud\/sfra\/set-up-payment-methods?plugin=Salesforce%20SFRA&amp;integration=cartridge&amp;version=2latest&amp;tab=use_your_own_apple_pay_certificate_1_2#set-up-apple-pay-on-the-web\">Apple Pay documentation for the plugin<\/a> instead.<\/p>\n<\/div><\/div>\n<ol>\n<li>\n<p>Log in to your Apple Developer account at\u00a0<a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/developer.apple.com<\/a>.<\/p>\n<\/li>\n<li>\n<p>Follow the Apple Developer Account Help instructions to <a href=\"https:\/\/developer.apple.com\/help\/account\/configure-app-capabilities\/configure-apple-pay-on-the-web#register-a-merchant-domain\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">register a merchant domain<\/a>, but note the following:<\/p>\n<ul>\n<li>In the step to select a merchant identifier, make sure you select the merchant identifier you created in <a href=\"#create-merchant-identifiers\">Step 1<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"create-merchant-identity-certificate\">Create a merchant identity certificate<\/h2>\n<div class=\"sc-notice info\"><div>\n<p>This step doesn't apply when you are using our Salesforce Commerce Cloud plugin. Refer to our <a href=\"\/pt\/plugins\/salesforce-commerce-cloud\/sfra\/set-up-payment-methods?plugin=Salesforce%20SFRA&amp;integration=cartridge&amp;version=2latest&amp;tab=use_your_own_apple_pay_certificate_1_2#set-up-apple-pay-on-the-web\">Apple Pay documentation for the plugin<\/a> instead.<\/p>\n<\/div><\/div>\n<p>For each transaction, you need to <a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/apple_pay_js_api\/requesting_an_apple_pay_payment_session\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">request an Apple Pay payment session<\/a> using your Merchant Identity Certificate. In this step, you will create that certificate.<\/p>\n<ol>\n<li>\n<p>Log in to your Apple Developer account at\u00a0<a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">https:\/\/developer.apple.com<\/a>.<\/p>\n<\/li>\n<li>\n<p>Follow the Apple Developer Account Help instructions to <a href=\"https:\/\/developer.apple.com\/help\/account\/configure-app-capabilities\/configure-apple-pay-on-the-web#create-a-merchant-identity-certificate\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">create a merchant identity certificate<\/a>, but note the following:<\/p>\n<ul>\n<li>In the step to select a merchant identifier, make sure you select the merchant identifier you created in <a href=\"#create-merchant-identifiers\">Step 1<\/a>.<\/li>\n<li>Follow the instructions from Apple to create a CSR yourself. The CSR you received from us cannot be used for creating a merchant identity certificate.<\/li>\n<li>Download and save the generated merchant identity certificate (<span translate=\"no\"><strong>.cer<\/strong><\/span> file).<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>When you have completed the instructions from Apple, add the merchant identity certificate to your keychain.<\/p>\n<\/li>\n<li>\n<p>Export the certificate from your keychain as a p12 file.<\/p>\n<\/li>\n<li>\n<p>Convert the p12 file to a PEM file using the following command:<\/p>\n<pre><code class=\"language-bash\">openssl pkcs12 -in your-file.p12 -out apple-pay-cert.pem -nodes -clcerts<\/code><\/pre>\n<\/li>\n<li>\n<p>Upload the\u00a0<span translate=\"no\"><strong>apple-pay-cert.pem<\/strong><\/span>\u00a0file to your server.<\/p>\n<\/li>\n<\/ol>\n<div class=\"sc-notice info\"><div>\n<p>When requesting an Apple Pay payment session, use the full path to the\u00a0<span translate=\"no\"><strong>apple-pay-cert.pem<\/strong><\/span>\u00a0file.<\/p>\n<\/div><\/div>\n<h2 id=\"add-apple-pay-as-a-payment-method\">Add Apple Pay in your Customer Area<\/h2>\n<p><a href=\"\/pt\/payment-methods\/add-payment-methods\">Add Apple Pay in your Customer Area<\/a>. You need to provide your:<\/p>\n<ul>\n<li><strong>Merchant name<\/strong>: the merchant account for which you want to set up Apple Pay.<\/li>\n<li><strong>Merchant identifier<\/strong>: the <a href=\"#create-merchant-identifiers\">merchant identifier you created<\/a>.<\/li>\n<\/ul>\n<h2>See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/payment-methods\/apple-pay\"\n                        target=\"_self\"\n                        >\n                    Apple Pay\n                <\/a><\/li><li><a href=\"\/payment-methods\/apple-pay\/web\"\n                        target=\"_self\"\n                        >\n                    Apple Pay for Web\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay\/apple-pay-certificate\/web","articleFields":{"description":"Enable Apple Pay for your web integration with your own Apple Pay certificate.","feedback_component":true,"id":"36182671","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"24-11-2023 15:52","filters_component":false,"page_id":"a0b63645-c190-4ab0-af75-49a61f2c9f65","decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay\/apple-pay-certificate\/web","title":"Use your own certificate for web","content":"This page explains how to enable Apple Pay on your website with your own Apple Pay certificate.\nRequirements\nBefore you begin, take into account the following requirements, limitations, and preparations.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built a Web Drop-in\/Components integration using the Advanced or Sessions flow.\n\n\nCustomer Area roles\nMake sure that you have one of the following roles: Merchant admin Manage API Credentials\n\n\nSetup steps\nBefore you begin: Make sure that you have an Apple Developer account that is associated with either the Apple Developer Program, or the Apple Developer Enterprise Program.To get notifications when your Apple Pay certificate is about to expire, create a user with an email address that is linked to a group inbox or distribution list and has the Account Holder or Admin role.\n\n\n\nHow it works\nTo add Apple Pay to your website with your own Apple Pay certificate, you must:\n\nCreate merchant identifiers in your Apple developer account, and enter them in your Customer Area. You must create separate merchant identifiers for test transactions and live transactions.\nCreate a payment processing certificate for each merchant identifier, and add each certificate to the correct user in your Customer Area. Apple Pay uses this certificate to encrypt payment information, and we need to have this certificate to be able to decrypt and process the payment.\nRegister and validate your merchant domain with Apple.\nCreate a merchant identity certificate, convert it to a PEM file, and upload it to your server. This certificate is used to authenticate communication with the Apple Pay servers.\nAdd Apple Pay as a payment method in your Customer Area.\n\nFor information about server requirements for Apple Pay on the web, refer to the\u00a0Apple Developer portal.\nCreate merchant identifiers\nA merchant identifier uniquely identifies you as a merchant who is able to accept Apple Pay payments.\nYou can use the same merchant identifier for multiple websites and iOS apps.\nTo create merchant identifiers:\n\n\nLog in to your Apple Developer account at\u00a0https:\/\/developer.apple.com.\n\n\nFollow the Apple Developer Account Help instructions to create a merchant identifier. Your merchant identifier must include the prefix merchant.. We recommend to use the prefix merchant.com.adyen. For example: merchant.com.adyen.merchantAccount.\nFor test transactions, we recommend creating a merchant identifier with .test at the end. For example: merchant.com.adyen.merchantAccount.test\n\n\nLog in to your Adyen Customer Area and go to Developers &gt; API credentials. Select the web service user that will execute your Apple Pay transactions (ws@Company.[YourCompanyAccount]).\n\n\nIn Wallet payment methods &gt; Apple Pay, select + Add.\n\n\nSelect Use your own certificate &gt; Continue.\n\n\nEnter the merchant identifier and select Download CSR &gt; Continue.\n\n\nSave the CSR. You will need it to create the payment processing certificate.\n\n\nCreate payment processing certificate\n\n\nLog in to your Apple Developer account at\u00a0https:\/\/developer.apple.com.\n\n\nFollow the Apple Developer Account Help instructions to create a payment processing certificate for a website:\n\nSelect a merchant identifier that you created when you created your merchant identifiers.\nSkip the step to create a certificate signing request.\nIn the step to select the certificate signing request file, select the CSR you created when you created your merchant identifiers.\nIf at any time a question Will payments associated with this Merchant ID be processed exclusively in China?\u00a0or similar appears, answer No and continue.\nDownload and save the generated payment processing certificate (CER or .cer file).\n\n\n\nWhen you have completed the instructions from Apple, return to your Adyen Customer Area and go to Developers &gt; API credentials. Select the web service user that will execute your Apple Pay transactions (ws@Company.[YourCompanyAccount]).\n\n\nSelect the merchant identifier.\n\n\nUpload the payment processing certificate and select Continue.\n\n\nRenew a payment processing certificate\nWhen your certificate expires, you have to renew it. Apple Pay requires time to fully activate your new payment processing certificate. During that time period, transactions may still use the old certificate.\nTo renew a certificate:\n\n\nLog in to your Adyen Customer Area and go to Developers &gt; API credentials.\n\n\nSelect the relevant web service user.\n\n\nUnder Apple Pay Certificates select Add.\n\n\nEnter the merchant identifier and download the CSR. Write down the start of the KeyID to help you locate it in step 6.\n\n\nGo to the Apple development environment and follow the steps described there to get the CER.\n\n\nIn the Apple Pay Certificates section, select the certificate with the KeyID you noted in step 4. This will have the Input needed status.\n\n\nSelect the eye icon .\n\n\nIn the dialog that pops up, click Continue, and upload the certificate.\n\n\nActivate the new certificate on Apple's Developer Portal. Until this is completed, the old certificate will still be used.\nAfter the activation of the new certificate, the old certificate will continue to be used for about 4 hours after the activation of the new certificate.\n\n\nVerify that the new certificate is in use for payments (see steps below).\n\n\nVerify which certificate is in use\nApple gradually rolls out new certificates. This means that the old certificate remains active and might be used while the new certificate is being rolled out.\nTo see which certificate is in use for a payment, follow these steps:\n\n\nIn the  \/payments request, find the Base64-encoded JSON object paymentMethod.applePayToken:\n\n\n\n\n\nDecode the paymentMethod.applePayToken object:\n\n\n\nThe publicKeyHash contains the KeyID value of the certificate that was used for the payment.\n\n\nIn your Customer Area, go to Developers &gt; API credentials, and find the relevant web service user that made the payments. Under wallet payment methods, go to Apple Pay Certificates, and check the KeyID.\n\n\nIf you see the KeyID for your old certificate, this may be due to the gradual rollout of Apple Certificates, and it does not mean that your setup is not successful. Four hours after the activation the rollout should be completed and you will no longer see payments using the old certificate. When you see the new certificate for an authorized payment, this confirms that all steps have been completed successfully.\nTo remove the old certificate from the Customer Area, go to Apple Pay Certificates, select the certificate with the applicable KeyID, and click the bin icon .\nRegister and validate your merchant domain\n\nThis step doesn't apply when you are using our Salesforce Commerce Cloud plugin. Refer to our Apple Pay documentation for the plugin instead.\n\n\n\nLog in to your Apple Developer account at\u00a0https:\/\/developer.apple.com.\n\n\nFollow the Apple Developer Account Help instructions to register a merchant domain, but note the following:\n\nIn the step to select a merchant identifier, make sure you select the merchant identifier you created in Step 1.\n\n\n\nCreate a merchant identity certificate\n\nThis step doesn't apply when you are using our Salesforce Commerce Cloud plugin. Refer to our Apple Pay documentation for the plugin instead.\n\nFor each transaction, you need to request an Apple Pay payment session using your Merchant Identity Certificate. In this step, you will create that certificate.\n\n\nLog in to your Apple Developer account at\u00a0https:\/\/developer.apple.com.\n\n\nFollow the Apple Developer Account Help instructions to create a merchant identity certificate, but note the following:\n\nIn the step to select a merchant identifier, make sure you select the merchant identifier you created in Step 1.\nFollow the instructions from Apple to create a CSR yourself. The CSR you received from us cannot be used for creating a merchant identity certificate.\nDownload and save the generated merchant identity certificate (.cer file).\n\n\n\nWhen you have completed the instructions from Apple, add the merchant identity certificate to your keychain.\n\n\nExport the certificate from your keychain as a p12 file.\n\n\nConvert the p12 file to a PEM file using the following command:\nopenssl pkcs12 -in your-file.p12 -out apple-pay-cert.pem -nodes -clcerts\n\n\nUpload the\u00a0apple-pay-cert.pem\u00a0file to your server.\n\n\n\nWhen requesting an Apple Pay payment session, use the full path to the\u00a0apple-pay-cert.pem\u00a0file.\n\nAdd Apple Pay in your Customer Area\nAdd Apple Pay in your Customer Area. You need to provide your:\n\nMerchant name: the merchant account for which you want to set up Apple Pay.\nMerchant identifier: the merchant identifier you created.\n\nSee also\n\n\n                    Apple Pay\n                \n                    Apple Pay for Web\n                \n","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Apple Pay","lvl3":"Apple Pay certificate","lvl4":"Use your own certificate for web"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay","lvl3":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay\/apple-pay-certificate","lvl4":"\/pt\/payment-methods\/apple-pay\/apple-pay-certificate\/web"},"levels":5,"category":"Payment method","category_color":"green","tags":["certificate"]}}
