{"id":54703,"date":"2023-02-23T10:55:39","date_gmt":"2023-02-23T10:55:39","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-3\/?p=54703"},"modified":"2023-03-09T15:44:31","modified_gmt":"2023-03-09T15:44:31","slug":"configuring-the-stripe-action","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-3\/integrations\/configuring-the-stripe-action\/","title":{"rendered":"Configuring the Stripe Action"},"content":{"rendered":"<p>The XO Platform lets you easily connect the Stripe integration and APIs to accept payments, send payouts, and manage the Stripe payment to complete payment-related tasks.<\/p>\n<p>This article explains how to authorize and enable the <strong>Stripe <\/strong>action and install the pre-built templates.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Authorizations_Supported\">Authorizations Supported<\/span><\/h2>\n<p>The Kore.ai XO Platform supports basic authentication to allow Stripe integration to exchange data. For more information, read the <a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/advanced-topics\/authorization\/bot-authentication\/\">Bot Authorization Overview<\/a> article.<\/p>\n<p>The Kore.ai XO Platform supports the following authorization types for the Stripe integration:<\/p>\n<ul>\n<li><strong>Pre-Authorize the Integration<\/strong> &#8211; To make the integration process smoother for developers and customers, you can pre-authorize it by providing the necessary authorization credentials to obtain the access token.\n<\/li>\n<li><strong>Allow Users to Authorize the Integration<\/strong> &#8211; This method requires the end user to provide credentials during the conversation for authorization. This authorization process involves requesting permission for Kore.ai&#8217;s Stripe app to access an access token at runtime. To learn more about Stripe account types, see <a href=\"https:\/\/stripe.com\/docs\">Stripe Documentation<\/a>. <\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step_1_Enable_the_Stripe_Action\">Step 1: Enable the Stripe Action<\/span><\/h2>\n<p><strong>Prerequisites<\/strong>:<\/p>\n<p>Before enabling the Stripe action, complete the following prerequisites:<\/p>\n<ul>\n<li>If you don\u2019t have Stripe account credentials, create a developer account in Stripe and note down login credentials. Use the <a href=\"https:\/\/stripe.com\/docs\">Stripe Documentation<\/a> for more information.<\/li>\n<li>Copy the API Key of your Stripe account and keep it for future use to enable the integration.<\/li>\n<\/ul>\n<p>Steps to enable the Stripe action:<\/p>\n<ol>\n<li>Go to <strong>Build > Integrations > Actions<\/strong>.<\/li>\n<li>Once you click the <strong>Actions<\/strong> menu, all integrations are shown in the <strong>Available<\/strong> region. Select the <strong>Stripe<\/strong> action. <br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223105035\/stripe_action.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1901\" height=\"711\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223105035\/stripe_action.png\" alt=\"\" class=\"alignnone size-medium wp-image-54704\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223105035\/stripe_action.png 1901w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223105035\/stripe_action-300x112.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223105035\/stripe_action-1024x383.png 1024w\" sizes=\"auto, (max-width: 1901px) 100vw, 1901px\" \/><\/a><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Pre-authorize_the_Integration\">Pre-authorize the Integration<\/span><\/h3>\n<p><strong>Basic Auth<\/strong><br \/>You can authorize the integration using your credentials. The developer authorization lets you authorize the integration with preconfigured Kore.ai\u2019s app with the <strong>Basic Auth<\/strong> option.<\/p>\n<p>Steps to authorize a Stripe action using developer credentials:<\/p>\n<ol>\n<li>Go to <strong>Build > Integrations > Actions<\/strong>.<\/li>\n<li>Select the <strong>Stripe<\/strong> action in the Available Actions region.<\/li>\n<li>In the <strong>Configurations<\/strong> dialog, select the <strong>Authorization<\/strong> tab.<\/li>\n<li>Enter the following details:\n<ul>\n<li><strong>Authorization Type<\/strong> &#8211; Select the <strong>Pre-authorize the Integration<\/strong> option, and then select the <strong>Basic Auth<\/strong> option.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120356\/stripe_action1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"856\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120356\/stripe_action1.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54715\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120356\/stripe_action1.png 799w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120356\/stripe_action1-280x300.png 280w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/a><\/li>\n<li><strong>API Key<\/strong> &#8211; The secret API key of your Stripe account.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Enable<\/strong>. When you configure the action for the first time, the Integration Successful  pop-up is displayed.<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1908\" height=\"694\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54721\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png 1908w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2-300x109.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2-1024x372.png 1024w\" sizes=\"auto, (max-width: 1908px) 100vw, 1908px\" \/><\/a><br \/><strong>Note<\/strong>: The Stripe action is moved from Available to Configured region.\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Allow_End_User_to_Authorize\">Allow End User to Authorize<\/span><\/h3>\n<p>You can authorize the integration at a user level with their login credentials. The user authorization process involves requesting permission for Kore.ai&#8217;s Stripe app to access an access token at runtime. You can also use the basic auth profile to let a user configure the integration at runtime.<\/p>\n<p>Steps to authorize a Stripe action at a user level:<\/p>\n<ol>\n<li>Go to <strong>Build > Integrations > Actions<\/strong>.<\/li>\n<li>Select the <strong>Stripe<\/strong> action in the Available Actions region.<\/li>\n<li>In the Configurations dialog, select the <strong>Authorization<\/strong> tab.<\/li>\n<li>Enter the following details:\n<ul>\n<li><strong>Authorization Type<\/strong> &#8211; Select the <strong>Allow Users to Authorize the Integration<\/strong> option, and then select the <strong>Basic Auth<\/strong> option.\n<\/li>\n<li>Create your authorization profile to obtain an access token and use it to complete integration without using Kore.ai&#8217;s Stripe app for authorization. To create a profile, click the <strong>Select Authorization<\/strong> drop-down and select the <strong>Create New<\/strong> option.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122304\/stripe_action7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"847\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122304\/stripe_action7.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54728\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122304\/stripe_action7.png 790w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122304\/stripe_action7-280x300.png 280w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/a><\/li>\n<li>Select the type of authorization mechanism. For example, select the <strong>Basic Auth<\/strong> option. To create Basic Auth profiles, see <a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/advanced-topics\/authorization\/bot-authentication\/\">Bot Authorization Overview<\/a>.<\/li>\n<li>Enter the following authentication credentials for the Basic Auth mechanism:\n<ul>\n<li><em>Name<\/em> &#8211; Enter the name for the Basic Auth profile.<\/li>\n<li>Select <em>No <\/em>for the tenancy URLs option.<\/li>\n<li><em>Base URL<\/em> &#8211; Enter the base tenant URL for the Stripe instance.<\/li>\n<li><em>Authorization Check URL<\/em> &#8211; Enter the authorization check URL for your Stripe instance.<\/li>\n<li><em>Description<\/em> &#8211; Enter the description of the basic authentication profile.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122901\/stripe_action9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"930\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122901\/stripe_action9.png\" alt=\"\" class=\"alignnone size-medium wp-image-54731\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122901\/stripe_action9.png 1003w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223122901\/stripe_action9-300x278.png 300w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/a><\/li>\n<li>Click <strong>Save Auth<\/strong> to save the authorization profile.<\/li>\n<li>Select the new <strong>Authorization Profile<\/strong>, which you created to complete integration.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123114\/stripe_basic_auth.png\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"852\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123114\/stripe_basic_auth.png\" alt=\"\" class=\"alignnone size-medium wp-image-54734\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123114\/stripe_basic_auth.png 787w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123114\/stripe_basic_auth-277x300.png 277w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Enable<\/strong>. When you configure the action for the first time, the <strong>Integration Successful<\/strong> pop-up is displayed.\n<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Step_2_Install_the_Stripe_Action_Templates\">Step 2: Install the Stripe Action Templates<\/span><\/h2>\n<p>Once you have configured a Stripe integration, you can explore and install action templates.<\/p>\n<p>Steps to install action templates:<\/p>\n<ol>\n<li>On the Integration Successful dialog, click the <strong>Explore Templates<\/strong> button to view the templates.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1908\" height=\"694\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54721\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2.png 1908w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2-300x109.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120641\/stripe_action2-1024x372.png 1024w\" sizes=\"auto, (max-width: 1908px) 100vw, 1908px\" \/><\/a><\/li>\n<li>In the Integration Templates dialog, click the <strong>Install<\/strong> button to begin the installation.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120539\/stripe_action3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"744\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120539\/stripe_action3.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54718\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120539\/stripe_action3.png 1914w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120539\/stripe_action3-300x117.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223120539\/stripe_action3-1024x398.png 1024w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><\/a><\/li>\n<li>Once the template is installed, click the <strong>Go to Dialog<\/strong> button to view the dialog task.<\/li>\n<li>Once all templates are installed, a dialog task for each template is auto-created.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123653\/stripe_action4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"585\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123653\/stripe_action4.png\" alt=\"\" class=\"alignnone size-medium wp-image-54737\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123653\/stripe_action4.png 1919w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123653\/stripe_action4-300x91.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123653\/stripe_action4-1024x312.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/a><\/li>\n<li>Select the desired dialog task from the templates and click <strong>Proceed<\/strong>. For example, select the Create Customer task.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123833\/stripe_action5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"907\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123833\/stripe_action5.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54740\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123833\/stripe_action5.png 785w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223123833\/stripe_action5-260x300.png 260w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/a><\/li>\n<li>Once you click Proceed, the dialog task is auto-created, and the canvas opens with all required entity nodes, service nodes, and message scripts.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223124101\/stripe_action6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1719\" height=\"895\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223124101\/stripe_action6.png\" alt=\"\"  class=\"alignnone size-medium wp-image-54743\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223124101\/stripe_action6.png 1719w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223124101\/stripe_action6-300x156.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20230223124101\/stripe_action6-1024x533.png 1024w\" sizes=\"auto, (max-width: 1719px) 100vw, 1719px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The XO Platform lets you easily connect the Stripe integration and APIs to accept payments, send payouts, and manage the Stripe payment to complete payment-related tasks. This article explains how to authorize and enable the Stripe action and install the pre-built templates. Authorizations Supported The Kore.ai XO Platform supports basic authentication to allow Stripe integration&#8230;<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201],"tags":[],"class_list":["post-54703","post","type-post","status-publish","format-standard","hentry","category-integrations"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/54703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/comments?post=54703"}],"version-history":[{"count":9,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/54703\/revisions"}],"predecessor-version":[{"id":55802,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/54703\/revisions\/55802"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/media?parent=54703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/categories?post=54703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/tags?post=54703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}