{"title":"Apple Pay Component integration","category":"default","creationDate":1776961628,"content":"<p>This page explains how to add Apple Pay to your existing  Components integration.<\/p>\n<h2>Requirements<\/h2>\n<p>Select which endpoint you are using:<\/p>\n\n<div id=\"tabBi0uH\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;&lt;code&gt;\\\/sessions&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built a Sessions flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=%7B%7BgetParameter%28%27platform%27%29%7D%7D&amp;amp;integration=Components\\&quot;&gt; Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;&lt;a href=\\&quot;\\\/pt\\\/development-resources\\\/api-credentials\\\/roles\\\/\\&quot;&gt;API credential roles&lt;\\\/a&gt;&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;To &lt;a href=\\&quot;#going-live\\&quot;&gt;process live Apple Pay payments&lt;\\\/a&gt; make sure that you have the following role: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;API Clientside Encryption Payments role&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, make sure that you have: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/apple-pay\\\/apple-pay-certificate\\\/ios\\&quot;&gt;Set up Apple Pay with your own certificate&lt;\\\/a&gt;.&lt;\\\/li&gt;&lt;li&gt; &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/apple-pay\\\/apple-pay-certificate\\\/ios#add-apple-pay-as-a-payment-method-ios\\&quot;&gt;Added Apple Pay in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-requirements_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;&lt;code&gt;\\\/payments&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built an Advanced flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=%7B%7BgetParameter%28%27platform%27%29%7D%7D&amp;amp;integration=Components\\&quot;&gt; Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;&lt;a href=\\&quot;\\\/pt\\\/development-resources\\\/api-credentials\\\/roles\\\/\\&quot;&gt;API credential roles&lt;\\\/a&gt;&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;To &lt;a href=\\&quot;#going-live\\&quot;&gt;process live Apple Pay payments&lt;\\\/a&gt; make sure that you have the following role &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;strong&gt;API Clientside Encryption Payments role&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, make sure that you have: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/apple-pay\\\/apple-pay-certificate\\\/ios\\&quot;&gt;Set up Apple Pay with your own certificate&lt;\\\/a&gt;.&lt;\\\/li&gt;&lt;li&gt; &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/apple-pay\\\/apple-pay-certificate\\\/ios#add-apple-pay-as-a-payment-method-ios\\&quot;&gt;Added Apple Pay in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-requirements_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>API reference<\/h2>\n\n<div id=\"tabWpdqE\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When you &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Flutter&amp;amp;integration=Components#create-a-payment-session\\&quot;&gt;make the &lt;code&gt;\\\/sessions&lt;\\\/code&gt; request&lt;\\\/a&gt;, Apple Pay does not require any additional fields.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-api_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When you &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Flutter&amp;amp;integration=Components#make-a-payment\\&quot;&gt;make the &lt;code&gt;\\\/payments&lt;\\\/code&gt; request&lt;\\\/a&gt;, Apple Pay does not require any additional fields.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-api_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<p>In case of errors, set your server up to <a href=\"\/pt\/payment-methods\/apple-pay\/handle-apple-pay-errors\">handle Apple Pay errors<\/a>.<\/p>\n<h2>Components configuration<\/h2>\n\n<div id=\"tabXaqMb\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When you &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Flutter#configure\\&quot;&gt;create the configuration object&lt;\\\/a&gt;, you must add additional properties for Apple Pay.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;config-required-sessions_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When you &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Flutter#configure\\&quot;&gt;create the configuration object&lt;\\\/a&gt;, you must add additional properties for Apple Pay.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;config-required-advanced_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<table>\n<thead>\n<tr>\n<th>Property<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>merchantID<\/code><\/td>\n<td>Your Apple Pay <a href=\"\/pt\/payment-methods\/apple-pay\/apple-pay-certificate\/ios#create-merchant-identifier\">merchant identifier<\/a>.<\/td>\n<\/tr>\n<tr>\n<td><code>merchantName<\/code><\/td>\n<td>Your merchant name. This is used to generate <a href=\"https:\/\/developer.apple.com\/documentation\/passkit\/pkpaymentsummaryitem\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>PKPaymentSummaryItem<\/code>\n<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Create a configuration object for Apple Pay'\" :id=\"''\" :code-data='[{\"language\":\"js\",\"tabTitle\":\"\",\"content\":\"final ApplePayConfiguration applePayConfiguration = ApplePayConfiguration(\\n  merchantId: MERCHANT_ID,\\n  merchantName: MERCHANT_NAME,\\n  \\\/\\\/ ... Other optional parameters.\\n);\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Create a configuration object for the Apple Pay Component and pass the configuration for Apple Pay to it.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Create a configuration object for the Apple Pay Component'\" :id=\"''\" :code-data='[{\"language\":\"js\",\"tabTitle\":\"\",\"content\":\"final ApplePayComponentConfiguration applePayComponentConfiguration = ApplePayComponentConfiguration(\\n  \\\/\\\/ Change the environment to live to accept live payments.\\n  environment: Environment.test,\\n  clientKey: CLIENT_KEY,\\n  countryCode: COUNTRY_CODE,\\n  applePayConfiguration: applePayConfiguration\\n  shopperLocale: SHOPPER_LOCALE, \\\/\\\/ Optional.\\n  amount: AMOUNT, \\\/\\\/ Optional.\\n);\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Optional configuration<\/h3>\n<p>You can include the following parameters in the configuration object:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>allowOnboarding<\/code><\/td>\n<td>Set to <strong>true<\/strong> to let the shopper add new cards to their Apple Pay wallet if there are none or if their cards are not supported for the payment.<br>By default this is set to <strong>false<\/strong>, and Apple Pay isn't shown as an available payment method if there are no cards in their Apple Pay wallet.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/passkit_apple_pay_and_wallet\/pkpaymentrequest\/1619231-paymentsummaryitems\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>applePaySummaryItems<\/code>\n<\/a><\/td>\n<td>An array of the items included in the purchase that summarize the payment amount. The last item must have the same value as the <code>amount<\/code> you send in your  <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.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/2216120-requiredbillingcontactfields\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>requiredBillingContactFields<\/code>\n<\/a><\/td>\n<td>Billing information fields that you require from the shopper to process the transaction. Refer to Apple Pay documentation for sample values.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/1916125-billingcontact\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>billingContact<\/code>\n<\/a><\/td>\n<td>A prefilled billing address.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/2216121-requiredshippingcontactfields\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>requiredShippingContactFields<\/code>\n<\/a><\/td>\n<td>Shipping information fields that you require from the shopper to fulfill the order. Refer to Apple Pay documentation for sample values.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/1916128-shippingtype\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>applePayShippingType<\/code>\n<\/a><\/td>\n<td>The type of shipping displayed, for example <strong>Pick Up<\/strong>, <strong>Ship To<\/strong>, or <strong>Deliver To<\/strong>. This is localized. <br> Default: <strong>PKShippingTypeShipping<\/strong> = <strong>.shipping<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepayshippingcontacteditingmode\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>allowShippingContactEditing<\/code>\n<\/a><\/td>\n<td>Indicates if the shopper can edit fields of the shipping address.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepayshippingmethod\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>shippingMethods<\/code>\n<\/a><\/td>\n<td>List of available methods for shipping physical goods. Refer to Apple Pay documentation for sample values.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/2577137-applicationdata\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>applicationData<\/code>\n<\/a><\/td>\n<td>A Base64-encoded string for application-specific data.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaypaymentrequest\/2928612-supportedcountries\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>supportedCountries<\/code>\n<\/a><\/td>\n<td>Specify the <a href=\"https:\/\/www.iso.org\/iso-3166-country-codes.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO 3166 country codes<\/a> if you only support payments from cards issued in specific countries.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/developer.apple.com\/documentation\/apple_pay_on_the_web\/applepaymerchantcapability\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>merchantCapability<\/code>\n<\/a><\/td>\n<td>The payment capabilities the merchant supports.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can refer to the <a href=\"https:\/\/github.com\/Adyen\/adyen-flutter\/blob\/main\/lib\/src\/common\/model\/payment_method_configurations\/apple_pay\/apple_pay_configuration.dart\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\"><code>ApplePayConfiguration<\/code> class in Github<\/a>.<\/p>\n\n<div id=\"tabXrbzH\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;After adding the configuration object for Apple Pay, &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Flutter&amp;amp;integration=Components#launch-and-show\\&quot;&gt;initialize and show&lt;\\\/a&gt; the Component.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-launch_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;After adding the configuration object for Apple Pay, &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Flutter&amp;amp;integration=Components#launch-and-show\\&quot;&gt;add the required callbacks&lt;\\\/a&gt;.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-launch_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"test-and-go-live\">Test and go live<\/h2>\n<p>Use Apple's test\u00a0card numbers\u00a0to\u00a0test your integration.<\/p>\n<p>For a full list of test cards and instructions how to add these to your test device, see <a href=\"https:\/\/developer.apple.com\/apple-pay\/sandbox-testing\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Sandbox testing<\/a>\u00a0on\u00a0Apple's Developer website.<\/p>\n<p> <\/p>\n<p>Check the status of an Apple Pay test payment in your\u00a0<a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>\u00a0&gt;\u00a0<strong>Transactions<\/strong>\u00a0&gt; <strong>\u00a0Payments<\/strong>.<\/p>\n<h3>Going live<\/h3>\n<p>To process live Apple Pay payments, your API credential needs to have the <strong>API Clientside Encryption Payments role<\/strong>. You can check this in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a> or ask your Admin user to verify.<\/p>\n<p> <\/p>\n<p><a href=\"\/pt\/payment-methods\/apple-pay\/apple-pay-certificate\/ios\">Set up Apple Pay<\/a> on your Apple Pay Developer account for your live merchant identifier.<\/p>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/build-your-integration\/sessions-flow?platform=Flutter&amp;integration=Components\"\n                        target=\"_self\"\n                        >\n                    Components integration guide\n                <\/a><\/li><li><a href=\"\/development-resources\/webhooks\"\n                        target=\"_self\"\n                        >\n                    Webhooks\n                <\/a><\/li><li><a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/CheckoutService\/latest\/overview\"\n                        target=\"_blank\"\n                         class=\"external\">\n                    API Explorer\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay\/flutter-component","articleFields":{"description":"Add Apple Pay to an existing Components integration.","parameters":{"integration":"Components","component_name":"the Component","integration_guide_url":"build-your-integration\/sessions-flow?platform=Flutter&integration=Components","advanced_integration_guide_url":"build-your-integration\/advanced-flow?platform=Flutter&integration=Components","component_name_capitalized":"The Component","component_class_name":"AdyenApplePayCoponent","payment_method":"Apple Pay","payment_method_type":"applepay","payment_method_type_capitalized":"Apple Pay","integration_type":"mobile"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/apple-pay\/flutter-component","title":"Apple Pay Component integration","content":"This page explains how to add Apple Pay to your existing  Components integration.\nRequirements\nSelect which endpoint you are using:\n\n\n    \n        \n        \n    \n\n\nAPI reference\n\n\n    \n        \n        \n    \n\n\nIn case of errors, set your server up to handle Apple Pay errors.\nComponents configuration\n\n\n    \n        \n        \n    \n\n\n\n\n\nProperty\nDescription\n\n\n\n\nmerchantID\nYour Apple Pay merchant identifier.\n\n\nmerchantName\nYour merchant name. This is used to generate \n  PKPaymentSummaryItem\n.\n\n\n\n\n    \n\nCreate a configuration object for the Apple Pay Component and pass the configuration for Apple Pay to it.\n\n    \n\nOptional configuration\nYou can include the following parameters in the configuration object:\n\n\n\nParameter\nDescription\n\n\n\n\nallowOnboarding\nSet to true to let the shopper add new cards to their Apple Pay wallet if there are none or if their cards are not supported for the payment.By default this is set to false, and Apple Pay isn't shown as an available payment method if there are no cards in their Apple Pay wallet.\n\n\n\n  applePaySummaryItems\n\nAn array of the items included in the purchase that summarize the payment amount. The last item must have the same value as the amount you send in your  \/payments request.\n\n\n\n  requiredBillingContactFields\n\nBilling information fields that you require from the shopper to process the transaction. Refer to Apple Pay documentation for sample values.\n\n\n\n  billingContact\n\nA prefilled billing address.\n\n\n\n  requiredShippingContactFields\n\nShipping information fields that you require from the shopper to fulfill the order. Refer to Apple Pay documentation for sample values.\n\n\n\n  applePayShippingType\n\nThe type of shipping displayed, for example Pick Up, Ship To, or Deliver To. This is localized.  Default: PKShippingTypeShipping = .shipping.\n\n\n\n  allowShippingContactEditing\n\nIndicates if the shopper can edit fields of the shipping address.\n\n\n\n  shippingMethods\n\nList of available methods for shipping physical goods. Refer to Apple Pay documentation for sample values.\n\n\n\n  applicationData\n\nA Base64-encoded string for application-specific data.\n\n\n\n  supportedCountries\n\nSpecify the ISO 3166 country codes if you only support payments from cards issued in specific countries.\n\n\n\n  merchantCapability\n\nThe payment capabilities the merchant supports.\n\n\n\nYou can refer to the ApplePayConfiguration class in Github.\n\n\n    \n        \n        \n    \n\n\nTest and go live\nUse Apple's test\u00a0card numbers\u00a0to\u00a0test your integration.\nFor a full list of test cards and instructions how to add these to your test device, see Sandbox testing\u00a0on\u00a0Apple's Developer website.\n \nCheck the status of an Apple Pay test payment in your\u00a0Customer Area\u00a0&gt;\u00a0Transactions\u00a0&gt; \u00a0Payments.\nGoing live\nTo process live Apple Pay payments, your API credential needs to have the API Clientside Encryption Payments role. You can check this in your live Customer Area or ask your Admin user to verify.\n \nSet up Apple Pay on your Apple Pay Developer account for your live merchant identifier.\nSee also\n\n\n                    Components integration guide\n                \n                    Webhooks\n                \n                    API Explorer\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Apple Pay","lvl3":"Apple Pay Component integration"},"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":"\/pt\/payment-methods\/apple-pay\/flutter-component"},"levels":4,"category":"Payment method","category_color":"green","tags":["Apple","Component","integration"]}}
