{"id":8174,"date":"2024-09-02T20:22:15","date_gmt":"2024-09-02T14:52:15","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=8174"},"modified":"2024-09-02T20:22:18","modified_gmt":"2024-09-02T14:52:18","slug":"how-to-set-up-and-install-stripe-in-magento-2","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-and-install-stripe-in-magento-2\/","title":{"rendered":"How to set up and Install Stripe in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Magento stripe:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento 2 Stripe integration is a secure payment method.<\/li>\n\n\n\n<li>It is easy to integrate in the stores.<\/li>\n\n\n\n<li>Stripe payments platform accepts all the credit, debit cards anf popular payment methods with a single integration.<\/li>\n\n\n\n<li>Stripe Integration is a thrid-party extension.<\/li>\n\n\n\n<li>It has a low transaction fee anf offers one-click checkout.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install magento 2 Stripe Extension:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Download magento 2 stripe extension and unzip it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Extension<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/stripe\/stripe-magento2-releases?tab=readme-ov-file\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/stripe\/stripe-magento2-releases?tab=readme-ov-file<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2<\/strong>: Have to upload the unzipped stripe extension files to this directory<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Applications\/MAMP\/htdocs\/app\/code\/StripeIntegration\/Payments<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3<\/strong>: Commands to run the stripe payments:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Have to open the terminal, navigate to magento root directory and run the following commands:-<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><em>bin\/magento setup:upgrade<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>php bin\/magento setup:di:compile<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>php bin\/magento setup:static-content:deploy<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>php bin\/magento cache:flush<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>php bin\/magento cache:clean<\/em><\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Open the Stripe Configuration Section:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1<\/strong>: Log into Magento Admin Panel:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Stores&gt;Configuration&gt;Sales&gt;Payment Methods<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">able to see that stripe has been integrated into payment options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2<\/strong>: Magento 2 Stripe Extension:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Have to create an account in stripe &#8211;                                                                                                        <br>\u00a0<a href=\"https:\/\/dashboard.stripe.com\/register?utm_campaign=comarketing&amp;utm_source=magento&amp;utm_medium=referred\" target=\"_blank\" rel=\"noopener\">https:\/\/dashboard.stripe.com\/register?utm_campaign=comarketing&amp;utm_source=magento&amp;utm_medium=referred<\/a>                                                   <\/li>\n\n\n\n<li>Once created register your account and signin.<\/li>\n\n\n\n<li>After signing the dashboard page will visible.<\/li>\n\n\n\n<li>Go to Developer&gt;API keys to get the <strong>Publishable key<\/strong> and <strong>Secret key<\/strong>.<\/li>\n\n\n\n<li>Copy &amp; Paste the <strong>Publishable<\/strong> and <strong>Secret key<\/strong> to your localhost.<\/li>\n\n\n\n<li>Go to                                                                                                            <strong>Stores&gt;Configuration&gt;Sales&gt;Payment methods&gt;Stripe&gt;General settings <\/strong>                                   enter the keys in it and save the configuration.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Checking Stripe Payment in localhost follows the steps:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.Clean the cache management by running this command &#8216;<strong><em>php bin\/magento cache:clean<\/em><\/strong>&#8216; and refresh the localhost page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.In localhost, once yo select a product it will appear in shopping cart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.From shopping cart, click &#8216;<strong><em>Proceed to checkout<\/em><\/strong>&#8216;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.It will take to the shipping address where we have to fill the details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5.After filling in the shipping details, click &#8216;<strong><em>next<\/em><\/strong>&#8216; button to continue the shopping.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6.If the stripe magento payment gateway is installed correctly then we would see the checkout page(Payonline).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7.Enter the card details and select &#8216;<strong><em>Place orde<\/em><\/strong>r&#8217; to confirm the purchase.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8.After order placed confirmation message will be displayed and confirmation email will be sent to the above provided email address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9.Finally transactions process will be appear in the Stripe dashboard under the &#8216;<strong><em>Transactions<\/em><\/strong>&#8216; section.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Those steps will result the stripe Integration successfully.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento stripe: Install magento 2 Stripe Extension: Step 1: Download magento 2 stripe extension and unzip it. Extension: https:\/\/github.com\/stripe\/stripe-magento2-releases?tab=readme-ov-file Step [&hellip;]<\/p>\n","protected":false},"author":513,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-8174","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-27Q","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/513"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=8174"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8174\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=8174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=8174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=8174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}