{"title":"iOS Drop-in","category":"default","creationDate":1776961628,"content":"<p>Our <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=iOS&amp;integration=Drop-in\">iOS Drop-in<\/a> renders Cash App Pay in your payment form, and redirects the shopper to complete the payment.<\/p>\n<h2>Requirements<\/h2>\n<p>Select the <a href=\"\/pt\/online-payments\/build-your-integration\">server-side flow<\/a> that your integration uses:<\/p>\n\n<div id=\"tabwmq0W\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&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=iOS&amp;amp;integration=Drop-in\\&quot;&gt;iOS Drop-in integration&lt;\\\/a&gt;.  &lt;br&gt; The minimum required version is 5.2.0. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Webhooks&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Enable the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/tokenization\\\/create-tokens#enable-the-webhook\\&quot;&gt;Recurring tokens life cycle events&lt;\\\/a&gt; webhook.&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: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;Add Cash App Pay in your Customer Area&lt;\\\/a&gt; using you Cash App client ID.&lt;\\\/li&gt; &lt;li markdown=\\&quot;1\\&quot;&gt;In your &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt; go to &lt;strong&gt;Developer&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Additional data&lt;\\\/strong&gt; and under &lt;strong&gt;Payment&lt;\\\/strong&gt; select &lt;strong&gt;Recurring details&lt;\\\/strong&gt;. Then select &lt;strong&gt;Save configuration&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;\\\/ul&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;Advanced flow&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=iOS&amp;amp;integration=Drop-in\\&quot;&gt;iOS Drop-in integration&lt;\\\/a&gt;.  &lt;br&gt; The minimum required version is 5.2.0. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Webhooks&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Enable the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/tokenization\\\/create-tokens#enable-the-webhook\\&quot;&gt;Recurring tokens life cycle events&lt;\\\/a&gt; webhook.&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: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;Add Cash App Pay in your Customer Area&lt;\\\/a&gt; using you Cash App client ID.&lt;\\\/li&gt; &lt;li markdown=\\&quot;1\\&quot;&gt;In your &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt; go to &lt;strong&gt;Developer&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Additional data&lt;\\\/strong&gt; and under &lt;strong&gt;Payment&lt;\\\/strong&gt; select &lt;strong&gt;Recurring details&lt;\\\/strong&gt;. Then select &lt;strong&gt;Save configuration&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;\\\/ul&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<h3>Install the Adyen iOS client-side library<\/h3>\n<p>Choose how you want to install the Adyen iOS client-side library:<\/p>\n\n<div id=\"tabVY2IB\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Swift Package Manager&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To install iOS Drop-in using Swift Package Manager, &lt;a href=\\&quot;https:\\\/\\\/developer.apple.com\\\/documentation\\\/xcode\\\/adding_package_dependencies_to_your_app\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;follow the Apple guide&lt;\\\/a&gt; and specify:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The repository URL as &lt;code&gt;https:\\\/\\\/github.com\\\/Adyen\\\/adyen-ios&lt;\\\/code&gt;&lt;\\\/li&gt;\\n&lt;li&gt;The version to be at least &lt;strong&gt;v5.42.0&lt;\\\/strong&gt;&lt;\\\/li&gt;\\n&lt;li&gt;Include &lt;code&gt;AdyenCashAppPay&lt;\\\/code&gt;&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;swift_package_manager_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;CocoaPods&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To install iOS Drop-in from CocoaPods:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Add &lt;code&gt;pod &#039;Adyen\\\/CashAppPay&#039;&lt;\\\/code&gt; to your &lt;code&gt;Podfile&lt;\\\/code&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Run &lt;code&gt;pod install&lt;\\\/code&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;cocoapods_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>API reference<\/h2>\n<p>You do not need to send additional fields for Cash App Pay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:<\/p>\n<ul>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/sessions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/sessions<\/a>&#58; This is the default with <a href=\"\/pt\/online-payments\/\">Drop-in v5.0.0<\/a> or later.<\/li>\n<li> <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>&#58; If you implemented an <a href=\"\/pt\/online-payments\/build-your-integration\">additional use case<\/a>.<\/li>\n<\/ul>\n<h2>Drop-in configuration<\/h2>\n\n<div id=\"tabUnbMC\">\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;To add Cash App Pay to your Drop-in integration, set the &lt;code&gt;cashAppPay&lt;\\\/code&gt; property of Drop-in&#039;s configuration instance.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;dropInConfiguration.cashAppPay = CashAppPayConfiguration(redirectURL: URL(string: \\&quot;yourAppURLOrScheme\\&quot;))&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;Set your &lt;code&gt;AdyenSession&lt;\\\/code&gt; instance as Drop-in&#039;s delegate to let it handle the flow.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;dropIn.delegate = self.session&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;Present the Drop-in&#039;s view (modally, in a navigation stack, and so on).&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;navigationController.present(dropIn.viewController)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;1_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To add Cash App Pay to your Drop-in integration, set the &lt;code&gt;cashAppPay&lt;\\\/code&gt; property of Drop-in&#039;s configuration instance.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;dropInConfiguration.cashAppPay = CashAppPayConfiguration(redirectURL: URL(string: \\&quot;yourAppURLOrScheme\\&quot;))&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;Present the Drop-in view.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;navigationController.present(dropIn.viewController)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;The shopper clicks the Cash App Pay button to authorize the payment in their Cash App Pay app. When the shopper returns to your app, Drop-in invokes the &lt;code&gt;didSubmit&lt;\\\/code&gt; method. Get the contents of &lt;code&gt;data.paymentMethod&lt;\\\/code&gt; and pass this to your server.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;func didSubmit(_ data: PaymentComponentData, for paymentMethod: PaymentMethod, from component: DropInComponent)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;If an error occurs on the app, Drop-in invokes the &lt;code&gt;didFail&lt;\\\/code&gt; method. Dismiss Drop-in&#039;s view controller and show an error message.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;func didFail(with error: Error, from component: DropInComponent)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;If the shopper decides not to continue with Cash App Pay, Drop-in invokes the &lt;code&gt;didCancel&lt;\\\/code&gt; method. You can use &lt;code&gt;didCancel&lt;\\\/code&gt; to track the state of the payment.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-swift\\&quot;&gt;func didCancel(component: PaymentComponent, from dropInComponent: DropInComponent)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;2_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h3 id=\"optional-configuration\">Optional configuration<\/h3>\n<p>You can add the following optional configuration:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter name<\/th>\n<th>Description<\/th>\n<th>Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>showsStorePaymentField<\/code><\/td>\n<td>Set to <span translate=\"no\"><strong>false<\/strong><\/span> if you do not want to show a toggle to lets the shopper choose whether to save their payment details.<\/td>\n<td><span translate=\"no\"><strong>true<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><code>storePaymentMethod<\/code><\/td>\n<td>Set to <span translate=\"no\"><strong>true<\/strong><\/span> to save the shopper's payment details without showing a toggle. For example, use this for a page where the shopper enters their details for a subscription service that charges the shopper on a recurring basis. <br> <code>showsStorePaymentField<\/code> must be set to <span translate=\"no\"><strong>false<\/strong><\/span> if you use this.<\/td>\n<td><span translate=\"no\"><strong>false<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"show-result\">Show the payment result<\/h2>\n<p>Use the\u00a0 <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details#responses-200-resultCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">resultCode<\/a> from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response to show the payment result to your shopper. You will also receive the outcome of the payment asynchronously in a <a href=\"\/pt\/development-resources\/webhooks\">webhook<\/a>.<\/p>\n<p>For Cash App Pay payments, you can receive the following <code>resultCode<\/code> values:<\/p>\n<table>\n<thead>\n<tr>\n<th>resultCode<\/th>\n<th>Description<\/th>\n<th>Action to take<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Received<\/strong><\/td>\n<td>The shopper has completed the payment but the final result is not yet known.<\/td>\n<td>Inform the shopper that you have received their order, and are waiting for the payment to be completed. <br>You will receive an <strong>AUTHORISATION<\/strong> webhook when the status of the payment is updated.<\/td>\n<\/tr>\n<tr>\n<td><strong>Authorised<\/strong><\/td>\n<td>The payment was successful.<\/td>\n<td>Inform the shopper that the payment has been successful. <br> If you are using manual capture, you also need to <a href=\"\/pt\/online-payments\/capture#manual-capture\">capture<\/a> the payment.<\/td>\n<\/tr>\n<tr>\n<td><strong>Cancelled<\/strong><\/td>\n<td>The shopper cancelled the payment.<\/td>\n<td>Ask the shopper whether they want to continue with the order, or ask them to select a different payment method.<\/td>\n<\/tr>\n<tr>\n<td><strong>Error<\/strong><\/td>\n<td>There was an error when the payment was being processed. For more information, check the <a href=\"\/pt\/development-resources\/refusal-reasons\">\n  <code>refusalReason<\/code>\n<\/a> field.<\/td>\n<td>Inform the shopper that there was an error processing their payment.<\/td>\n<\/tr>\n<tr>\n<td><strong>Refused<\/strong><\/td>\n<td>The payment was refused.  For more information, check the <a href=\"\/pt\/development-resources\/refusal-reasons\">\n  <code>refusalReason<\/code>\n<\/a> field.<\/td>\n<td>Ask the shopper to try the payment again using a different payment method.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"recurring-payments\">Recurring and card-on-file payments<\/h2>\n<p>Cash App Pay supports <a href=\"\/pt\/online-payments\/tokenization\">tokenization<\/a> of the shopper's payment details for future recurring and card-on-file payments. Card-on-file payments are ad-hoc payments where you use the shopper's token. By getting the shopper's permission to save their payment details when you create the token, you can bypass the shopper approval step for those future payments.<\/p>\n<div class=\"notices red\">\n<p>We strongly recommend that you ask explicit permission from the shopper if you intend to make future recurring or card-on-file payments. In the case of recurring payments, being transparent about the payment schedule and the amount of recurring payments reduces the risk of chargebacks.<\/p>\n<\/div>\n\n<div id=\"tabUZkbX\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;h3&gt;Create a token&lt;\\\/h3&gt;\\n&lt;p&gt;Include the &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/70\\\/post\\\/sessions#request-storePaymentMethodMode\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\n  &lt;code&gt;storedPaymentMethodMode&lt;\\\/code&gt;\\n&lt;\\\/a&gt; parameter in your  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/sessions&lt;\\\/a&gt; request. Possible values:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Value&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;disabled&lt;\\\/strong&gt;&lt;\\\/span&gt; (default)&lt;\\\/td&gt;\\n&lt;td&gt;Do not store payment details.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;askForConsent&lt;\\\/strong&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;If &lt;code&gt;shopperReference&lt;\\\/code&gt; is included in the request, show a toggle in the payment form that lets the shopper choose whether to store their payment details with our &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/tokenization\\&quot;&gt;Tokenization feature&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;enabled&lt;\\\/strong&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td&gt;If &lt;code&gt;shopperReference&lt;\\\/code&gt; is included in the request, store the shopper&#039;s payment details without showing a toggle. For example, use this for a page where the shopper enters their details for a subscription service that charges the shopper on a recurring basis.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;The Cash App SDK requires you to specify whether to create a recurring request. If you set &lt;code&gt;storedPaymentMethodMode&lt;\\\/code&gt; to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;enabled&lt;\\\/strong&gt;&lt;\\\/span&gt; or &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;disabled&lt;\\\/strong&gt;&lt;\\\/span&gt;, you must also specify the following in your &lt;a href=\\&quot;#optional-configuration\\&quot;&gt;configuration&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;storedPaymentMethod&lt;\\\/code&gt;: To store the payment method. This property is ignored if &lt;code&gt;showsStorePaymentMethodField&lt;\\\/code&gt; is &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;true&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;If you or the shopper chooses to store payment details, your instance of &lt;code&gt;AdyenSession&lt;\\\/code&gt; creates a token when the shopper pays.&lt;\\\/p&gt;\\n&lt;h3 id=\\&quot;cashtag-warning\\&quot;&gt;Get the shopper&#039;s $cashtag&lt;\\\/h3&gt;\\n&lt;p&gt;We recommend making sure that your recurring payments include the shopper&#039;s &lt;strong&gt;$cashtag&lt;\\\/strong&gt;. The $cashtag makes it easier for the shopper to recognize the recurring payment as a legitimate one. This helps to avoid chargebacks. &lt;\\\/p&gt;\\n&lt;p&gt;To obtain the shopper&#039;s $cashtag, you need to make a &lt;code&gt;\\\/payments\\\/details&lt;\\\/code&gt; request. If you are using the Sessions flow and want to include the $cashtag in recurring payments, you need to switch to the Advanced flow and implement both the &lt;code&gt;\\\/payments\\\/details&lt;\\\/code&gt; request and the &lt;code&gt;\\\/payments&lt;\\\/code&gt; request.&lt;\\\/p&gt;\\n&lt;h3&gt;Make a payment with a token&lt;\\\/h3&gt;\\n&lt;p&gt;When the shopper pays, your instance of &lt;code&gt;AdyenSession&lt;\\\/code&gt; includes the shopper&#039;s stored Cash App Pay details. You can also use tokens to &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/tokenization\\\/make-token-payments#make-a-subscription-or-unscheduled-card-on-file-payment\\&quot;&gt;make shopper-not-present payments&lt;\\\/a&gt; for subscriptions or contracts.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;3_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;h3&gt;Create a token&lt;\\\/h3&gt;\\n&lt;p&gt;If you use the advanced flow with the &lt;code&gt;\\\/paymentMethods&lt;\\\/code&gt; endpoint, set the &lt;code&gt;showsStorePaymentMethodField&lt;\\\/code&gt; parameter in your &lt;a href=\\&quot;#optional-configuration\\&quot;&gt;configuration&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;\\n&lt;p&gt;To show a toggle that lets the shopper choose whether to save their payment details, set &lt;code&gt;showsStorePaymentMethodField&lt;\\\/code&gt; to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;true&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;To not show the toggle and instead store the shopper&#039;s payment details without showing a toggle, set &lt;code&gt;showsStorePaymentMethodField&lt;\\\/code&gt; to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;false&lt;\\\/strong&gt;&lt;\\\/span&gt; when adding Cash App Pay, and set &lt;code&gt;storePaymentMethod&lt;\\\/code&gt; to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;true&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;If the payment is made with stored details, the &lt;code&gt;didSubmit&lt;\\\/code&gt; method will include &lt;code&gt;data.storePaymentMethod&lt;\\\/code&gt;. Pass this to your server.&lt;\\\/p&gt;\\n&lt;p&gt;To create a token, include in your  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; request:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;storePaymentMethod&lt;\\\/code&gt;: The &lt;code&gt;data.storePaymentMethod&lt;\\\/code&gt; from your client app.&lt;\\\/li&gt;\\n&lt;li&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperReference&lt;\\\/a&gt;&amp;#58; Your unique identifier for the shopper.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;h3 id=\\&quot;cashtag\\&quot;&gt;Get the shopper&#039;s $cashtag&lt;\\\/h3&gt;\\n&lt;p&gt;We recommend making sure that your recurring payments include the shopper&#039;s &lt;strong&gt;$cashtag&lt;\\\/strong&gt;. The $cashtag makes it easier for the shopper to recognize the recurring payment as a legitimate one. This helps to avoid chargebacks. &lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Make sure that you have enabled receiving the shopper&#039;s $cashtag:&lt;br \\\/&gt;\\nIn your Customer Area, go to &lt;strong&gt;Developers&lt;\\\/strong&gt; &amp;gt; &lt;strong&gt;Additional Data&lt;\\\/strong&gt; and select &lt;strong&gt;Token information for digital wallets&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; request. For instructions, see  &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=iOS&amp;amp;integration=Drop-in&amp;amp;version=latest#send-additional-payment-details\\&quot;&gt;Submit additional payment details&lt;\\\/a&gt;. &lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;From the &lt;code&gt;\\\/payments\\\/details&lt;\\\/code&gt; response, save the following &lt;code&gt;additionalData&lt;\\\/code&gt; details:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter&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;code&gt;additionalData.cashapp.cashtag&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper&#039;s $cashtag.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;additionalData.tokenization.shopperReference&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper reference you specified in the payment request.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;additionalData.tokenization.storedPaymentMethodId&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The token that was generated through the payment request.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;Note that the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Tokenization-webhooks\\\/latest\\\/post\\\/recurring.token.created\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;recurring.token.created&lt;\\\/a&gt; also includes the shopper reference and the recurring detail reference, but not the $cashtag.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;\\\/payments\\\/details response with $cashtag and recurring details&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n   \\\\\\&quot;additionalData\\\\\\&quot;: {\\\\n      \\\\\\&quot;cashapp.cashtag\\\\\\&quot;: \\\\\\&quot;$CASHTAG_C_TOKEN\\\\\\&quot;,\\\\n      \\\\\\&quot;tokenization.shopperReference\\\\\\&quot;: \\\\\\&quot;YOUR_SHOPPER_REFERENCE\\\\\\&quot;,\\\\n      \\\\\\&quot;tokenization.storedPaymentMethodId\\\\\\&quot;: \\\\\\&quot;M5N7TQ4TG5PFWR50\\\\\\&quot;\\\\n   },\\\\n   \\\\\\&quot;amount\\\\\\&quot;:{\\\\n      \\\\\\&quot;currency\\\\\\&quot;:\\\\\\&quot;USD\\\\\\&quot;,\\\\n      \\\\\\&quot;value\\\\\\&quot;:1000\\\\n   },\\\\n   \\\\\\&quot;merchantRreference\\\\\\&quot;:\\\\\\&quot;YOUR_ORDER_NUMBER\\\\\\&quot;,\\\\n   \\\\\\&quot;paymentMethod\\\\\\&quot;:{\\\\n      \\\\\\&quot;type\\\\\\&quot;:\\\\\\&quot;cashapp\\\\\\&quot;,\\\\n      \\\\\\&quot;subtype\\\\\\&quot;:\\\\\\&quot;redirect\\\\\\&quot;\\\\n   },\\\\n   \\\\\\&quot;pspReference\\\\\\&quot;:\\\\\\&quot;V4HZ4RBFJGXXGN82\\\\\\&quot;,\\\\n   \\\\\\&quot;resultCode\\\\\\&quot;:\\\\\\&quot;Authorised\\\\\\&quot;\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;h3&gt;Make a payment with a token&lt;\\\/h3&gt;\\n&lt;p&gt;When the shopper proceeds to pay, Drop-in invokes the &lt;code&gt;didSubmit&lt;\\\/code&gt; method containing the &lt;code&gt;data.paymentMethod&lt;\\\/code&gt; from the &lt;code&gt;PaymentComponentDelegate&lt;\\\/code&gt;.&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Pass the &lt;code&gt;data.paymentMethod&lt;\\\/code&gt; to your server.&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; request, specifying:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The parameters required for one-off or recurring tokenized payments. For instructions, see &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/tokenization\\&quot;&gt;Tokenization&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;paymentMethod&lt;\\\/code&gt;: the &lt;code&gt;data.paymentMethod&lt;\\\/code&gt; from the &lt;code&gt;didSubmit&lt;\\\/code&gt; event from your client app.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;To make it easier for the shopper to recognize the recurring payment as a legitimate one, optionally include:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;paymentMethod.cashtag&lt;\\\/code&gt;: the shoppers &lt;a href=\\&quot;#cashtag\\&quot;&gt;$cashtag&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;4_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h3 id=\"token-disabled\">Receive a notification when a shopper deletes stored Cash App Pay details<\/h3>\n<p>When a shopper deletes their stored payment details in Cash App Pay, Adyen sends a <code>recurring.token.disabled<\/code> webhook.<br \/>\nYou can prevent future failed payments by removing the stored token for Cash App pay and asking the shopper to use another payment method.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example recurring.token.disabled notification'\" :id=\"'example-recurring-token-disabled'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n\\\"createdAt\\\" : \\\"2025-08-12T18:58:11+02:00\\\",\\n\\\"environment\\\" : \\\"test\\\",\\n\\\"type\\\" : \\\"recurring.token.disabled\\\",\\n\\\"data\\\" : {\\n   \\\"merchantAccount\\\" : \\\" YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"shopperReference\\\" : \\\"YOUR_SHOPPER_REFERENCE\\\",\\n   \\\"storedPaymentMethodId\\\" : \\\"G7NRRBC9H7VGGS75\\\",\\n   \\\"type\\\" : \\\"cashapp\\\"\\n},\\n\\\"eventId\\\" : \\\"N4P54KZTS2SVS3V5\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"test-and-go-live\">Test and go live<\/h2>\n<p>Test your Cash App Pay integration using the test environment. You can simulate various payment scenarios using Cash App Pay <a href=\"https:\/\/developers.cash.app\/cash-app-pay-partner-api\/guides\/technical-guides\/sandbox\/developer-sandbox#magic-values\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">magic values<\/a>. You can check the status of Cash App Pay test payments in your Customer Area, under <strong>Transactions<\/strong> &gt; <strong>Payments<\/strong>.<\/p>\n<p>When you are ready to go live, add Cash App Pay in your live Customer Area.<\/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\/ios\/components\"\n                        target=\"_self\"\n                        >\n                    iOS Components integration guide\n                <\/a><\/li><li><a href=\"\/development-resources\/webhooks\"\n                        target=\"_self\"\n                        >\n                    Notification 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\/cash-app-pay\/ios-drop-in","articleFields":{"feedback_component":true,"type":"page","_expandable":null,"operations":"","status":"current","parameters":{"payment_method":"Cash App Pay","integration":"Drop-in","platform":"iOS","add_version":true,"version":"5.2.0"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/cash-app-pay\/ios-drop-in","title":"iOS Drop-in","content":"Our iOS Drop-in renders Cash App Pay in your payment form, and redirects the shopper to complete the payment.\nRequirements\nSelect the server-side flow that your integration uses:\n\n\n    \n        \n        \n    \n\n\nInstall the Adyen iOS client-side library\nChoose how you want to install the Adyen iOS client-side library:\n\n\n    \n        \n        \n    \n\n\nAPI reference\nYou do not need to send additional fields for Cash App Pay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:\n\n \/sessions&#58; This is the default with Drop-in v5.0.0 or later.\n \/payments&#58; If you implemented an additional use case.\n\nDrop-in configuration\n\n\n    \n        \n        \n    \n\n\nOptional configuration\nYou can add the following optional configuration:\n\n\n\nParameter name\nDescription\nDefault\n\n\n\n\nshowsStorePaymentField\nSet to false if you do not want to show a toggle to lets the shopper choose whether to save their payment details.\ntrue\n\n\nstorePaymentMethod\nSet to true to save the shopper's payment details without showing a toggle. For example, use this for a page where the shopper enters their details for a subscription service that charges the shopper on a recurring basis.  showsStorePaymentField must be set to false if you use this.\nfalse\n\n\n\nShow the payment result\nUse the\u00a0 resultCode from the  \/payments\/details response to show the payment result to your shopper. You will also receive the outcome of the payment asynchronously in a webhook.\nFor Cash App Pay payments, you can receive the following resultCode values:\n\n\n\nresultCode\nDescription\nAction to take\n\n\n\n\nReceived\nThe shopper has completed the payment but the final result is not yet known.\nInform the shopper that you have received their order, and are waiting for the payment to be completed. You will receive an AUTHORISATION webhook when the status of the payment is updated.\n\n\nAuthorised\nThe payment was successful.\nInform the shopper that the payment has been successful.  If you are using manual capture, you also need to capture the payment.\n\n\nCancelled\nThe shopper cancelled the payment.\nAsk the shopper whether they want to continue with the order, or ask them to select a different payment method.\n\n\nError\nThere was an error when the payment was being processed. For more information, check the \n  refusalReason\n field.\nInform the shopper that there was an error processing their payment.\n\n\nRefused\nThe payment was refused.  For more information, check the \n  refusalReason\n field.\nAsk the shopper to try the payment again using a different payment method.\n\n\n\nRecurring and card-on-file payments\nCash App Pay supports tokenization of the shopper's payment details for future recurring and card-on-file payments. Card-on-file payments are ad-hoc payments where you use the shopper's token. By getting the shopper's permission to save their payment details when you create the token, you can bypass the shopper approval step for those future payments.\n\nWe strongly recommend that you ask explicit permission from the shopper if you intend to make future recurring or card-on-file payments. In the case of recurring payments, being transparent about the payment schedule and the amount of recurring payments reduces the risk of chargebacks.\n\n\n\n    \n        \n        \n    \n\n\nReceive a notification when a shopper deletes stored Cash App Pay details\nWhen a shopper deletes their stored payment details in Cash App Pay, Adyen sends a recurring.token.disabled webhook.\nYou can prevent future failed payments by removing the stored token for Cash App pay and asking the shopper to use another payment method.\n\n    \n\nTest and go live\nTest your Cash App Pay integration using the test environment. You can simulate various payment scenarios using Cash App Pay magic values. You can check the status of Cash App Pay test payments in your Customer Area, under Transactions &gt; Payments.\nWhen you are ready to go live, add Cash App Pay in your live Customer Area.\nSee also\n\n\n                    iOS Components integration guide\n                \n                    Notification webhooks\n                \n                    API Explorer\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Cash App Pay","lvl3":"iOS Drop-in"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/cash-app-pay","lvl3":"\/pt\/payment-methods\/cash-app-pay\/ios-drop-in"},"levels":4,"category":"Payment method","category_color":"green","tags":["Drop-in"]}}
