{"id":38076,"date":"2026-05-12T08:53:36","date_gmt":"2026-05-12T08:53:36","guid":{"rendered":"http:\/\/admin2"},"modified":"2026-05-13T14:30:27","modified_gmt":"2026-05-13T14:30:27","password":"","slug":"how-to-set-up-payments-in-woocommerce","status":"publish","type":"docs","link":"https:\/\/thewebops.com\/ar\/help-center\/e-commerce-online-stores\/how-to-set-up-payments-in-woocommerce\/","title":{"rendered":"\u0643\u064a\u0641\u064a\u0629 \u0625\u0639\u062f\u0627\u062f \u0637\u0631\u0642 \u0627\u0644\u062f\u0641\u0639 \u0641\u064a WooCommerce"},"content":{"rendered":"<h4>Quick checklist (what we&#8217;ll cover)<\/h4>\n<ul>\n<li>Connect Stripe and Paymob<\/li>\n<li>Configure payment gateways in WooCommerce<\/li>\n<li>Manage failed payments<\/li>\n<li>Process refunds safely<\/li>\n<\/ul>\n<h4>1) Connecting Stripe to WooCommerce<\/h4>\n<p>Stripe is one of the most popular and reliable online payment gateways.<\/p>\n<h5>Installation<\/h5>\n<ol>\n<li>Go to <strong>Plugins \u2192 Add New<\/strong><\/li>\n<li>Search for <strong>&#8220;WooCommerce Stripe Payment Gateway&#8221;<\/strong><\/li>\n<li>Install and activate the plugin<\/li>\n<\/ol>\n<h5>Configuration<\/h5>\n<ol>\n<li>Go to <strong>WooCommerce \u2192 Settings \u2192 Payments \u2192 Stripe<\/strong><\/li>\n<li>Enable Stripe and click <strong>Setup<\/strong> or <strong>Complete Setup<\/strong><\/li>\n<li>Click on Create or connect an account<\/li>\n<li>Sign in to your <strong>Stripe account<\/strong> (or create one)<\/li>\n<li>Copy your <strong>Publishable Key<\/strong> and <strong>Secret Key<\/strong> from your Stripe Dashboard \u2192 Developers \u2192 API Keys<\/li>\n<li>Paste them in WooCommerce and click <strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>Optional:<\/p>\n<ul>\n<li>Enable <strong>Test Mode<\/strong> first to simulate transactions<\/li>\n<li>Configure <strong>Webhook endpoints<\/strong> (provided in the Stripe setup screen) for real-time payment updates<\/li>\n<\/ul>\n<p>Pro tip: Always test Stripe payments in test mode before going live.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-36931\" src=\"https:\/\/thewebops.com\/wp-content\/uploads\/2026\/04\/Woo-4-1-1.gif\" alt=\"\" width=\"1920\" height=\"910\" \/><\/p>\n<h4>2) Setting Up Payment Gateways in WooCommerce<\/h4>\n<p>WooCommerce supports multiple payment methods: manual (e.g., Cash on Delivery, Bank Transfer) and online (e.g., Stripe, Paymob, PayPal, etc.).<\/p>\n<h5>Access Payment Settings<\/h5>\n<ol>\n<li>Go to <strong>WooCommerce \u2192 Settings \u2192 Payments<\/strong><\/li>\n<li>You&#8217;ll see a list of available gateways<\/li>\n<li>Toggle each method <strong>on\/off<\/strong> and click <strong>Manage<\/strong> to configure details<\/li>\n<\/ol>\n<h5>Common Built-in Methods<\/h5>\n<ul>\n<li><strong>Cash on Delivery<\/strong> &#8211; a simple offline option for local deliveries<\/li>\n<li><strong>Direct Bank Transfer (BACS)<\/strong> &#8211; shows bank details for manual payments<\/li>\n<li><strong>Check Payments<\/strong> &#8211; rarely used but still available<\/li>\n<li><strong>PayPal Standard<\/strong> &#8211; quick setup with a PayPal email<\/li>\n<\/ul>\n<p>Tip: Keep at least one online and one offline payment option to offer flexibility.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36934\" src=\"https:\/\/thewebops.com\/wp-content\/uploads\/2026\/04\/Woo-4-2.gif\" alt=\"\" width=\"1920\" height=\"912\" \/><\/p>\n<h4>3) Connecting Paymob to WooCommerce<\/h4>\n<p>Paymob is a popular payment gateway in Egypt and the MENA region.<\/p>\n<h5>Installation<\/h5>\n<ol>\n<li>Go to <strong>Plugins \u2192 Add New<\/strong><\/li>\n<li>Search for <strong>&#8220;Paymob for WooCommerce&#8221;<\/strong> (official plugin or via marketplace)<\/li>\n<li>Install and activate the plugin<\/li>\n<\/ol>\n<h5>Configuration<\/h5>\n<ol>\n<li>Go to <strong>WooCommerce \u2192 Settings \u2192 Payments \u2192 Paymob<\/strong><\/li>\n<li>Enable the gateway and click <strong>Manage<\/strong><\/li>\n<li>Log in to your <strong>Paymob Dashboard<\/strong><\/li>\n<li>Copy the following credentials:\n<ul>\n<li><strong>API Key<\/strong><\/li>\n<li><strong>Integration ID<\/strong><\/li>\n<li><strong>Iframe ID<\/strong><\/li>\n<li><strong>HMAC Secret Key<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Paste them into the WooCommerce Paymob settings and click <strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>Optional:<\/p>\n<ul>\n<li>Enable <strong>test mode<\/strong> for sandbox testing<\/li>\n<li>Choose accepted card types (Visa, MasterCard, Meeza, etc.)<\/li>\n<\/ul>\n<p>Tip: Make sure your store&#8217;s currency matches Paymob&#8217;s supported currencies.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36936\" src=\"https:\/\/thewebops.com\/wp-content\/uploads\/2026\/04\/Woo-4-3.gif\" alt=\"\" width=\"1920\" height=\"912\" \/><\/p>\n<h4>4) Managing Failed Payments<\/h4>\n<p>Payment failures can happen for many reasons &#8212; expired cards, gateway downtime, or configuration errors.<\/p>\n<h5>Common issues &amp; how to fix them:<\/h5>\n<table>\n<tbody>\n<tr>\n<td>Problem<\/td>\n<td>Possible Cause<\/td>\n<td>Fix<\/td>\n<\/tr>\n<tr>\n<td>Payment gateway not showing at checkout<\/td>\n<td>Not enabled or restricted by location<\/td>\n<td>Check <strong>WooCommerce \u2192 Settings \u2192 Payments<\/strong> and <strong>Allowed countries<\/strong><\/td>\n<\/tr>\n<tr>\n<td>&#8220;Payment failed&#8221; error after checkout<\/td>\n<td>Wrong API keys or test mode active<\/td>\n<td>Verify live credentials<\/td>\n<\/tr>\n<tr>\n<td>Payment stuck as &#8220;Pending payment&#8221;<\/td>\n<td>Gateway didn&#8217;t send confirmation<\/td>\n<td>Check webhook configuration<\/td>\n<\/tr>\n<tr>\n<td>Customer charged but order not completed<\/td>\n<td>Webhook delay or timeout<\/td>\n<td>Manually verify in Stripe\/Paymob dashboard and update order status<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Always check the WooCommerce <strong>System Status \u2192 Logs<\/strong> for detailed error messages (WooCommerce \u2192 Status \u2192 Logs).<\/p>\n<h4>5) Processing Refunds in WooCommerce<\/h4>\n<h5>Manual Refund (offline)<\/h5>\n<ol>\n<li>Go to <strong>WooCommerce \u2192 Orders<\/strong><\/li>\n<li>Open the order \u2192 click <strong>Refund<\/strong><\/li>\n<li>Enter refund amount and note<\/li>\n<li>Click <strong>Refund manually<\/strong><\/li>\n<\/ol>\n<h5>Automatic Refund (via Stripe or Paymob)<\/h5>\n<p>If the gateway supports automatic refunds:<\/p>\n<ol>\n<li>Go to the order<\/li>\n<li>Click <strong>Refund via [Gateway Name]<\/strong><\/li>\n<li>The refund is processed automatically through the payment provider<\/li>\n<\/ol>\n<p>Note: Refunds may take several business days to appear on the customer&#8217;s card or account.<\/p>\n<h4>6) Common Troubleshooting &amp; Tips<\/h4>\n<ul>\n<li><strong>Payment gateway not visible:<\/strong> Check enabled methods and currency compatibility<\/li>\n<li><strong>Refund failed:<\/strong> Verify the gateway supports automatic refunds<\/li>\n<li><strong>Payment not updating:<\/strong> Make sure webhooks are configured correctly<\/li>\n<li><strong>Multiple currencies:<\/strong> Use a multi-currency plugin compatible with your payment gateways<\/li>\n<\/ul>\n<h4>7) Short FAQs<\/h4>\n<p><strong>Q: Can I use more than one payment gateway?<\/strong> A: Yes. WooCommerce supports multiple gateways &#8212; users can choose at checkout.<\/p>\n<p><strong>Q: How do I test transactions safely?<\/strong> A: Enable &#8220;Test Mode&#8221; in Stripe or Paymob and use test card numbers.<\/p>\n<p><strong>Q: Do I need SSL for payments?<\/strong> A: Yes. SSL (HTTPS) is required for all live payment processing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u064a\u0642\u062f\u0645 \u0644\u0643 \u0647\u0630\u0627 \u0627\u0644\u0645\u0642\u0627\u0644 \u0625\u0631\u0634\u0627\u062f\u0627\u062a \u062d\u0648\u0644 \u0625\u0639\u062f\u0627\u062f \u0628\u0648\u0627\u0628\u0627\u062a \u0627\u0644\u062f\u0641\u0639 \u0641\u064a WooCommerce\u060c \u0648\u0631\u0628\u0637 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u0645\u062b\u0644 Stripe \u0648Paymob\u060c \u0648\u062d\u0644 \u0645\u0634\u0643\u0644\u0627\u062a \u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u062f\u0641\u0639 \u0627\u0644\u0641\u0627\u0634\u0644\u0629 \u0623\u0648 \u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0633\u062a\u0631\u062f\u0627\u062f \u0627\u0644\u0623\u0645\u0648\u0627\u0644.<\/p>","protected":false},"author":1,"featured_media":38218,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"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":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"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":""},"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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"doc_category":[285],"doc_tag":[],"class_list":["post-38076","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-e-commerce-online-stores"],"acf":[],"year_month":"2026-11","word_count":634,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/thewebops.com\/ar\/author\/admin\/"},"doc_category_info":[{"term_name":"E-commerce &amp; Online Stores","term_url":"https:\/\/thewebops.com\/ar\/help-center\/e-commerce-online-stores\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/docs\/38076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/comments?post=38076"}],"version-history":[{"count":1,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/docs\/38076\/revisions"}],"predecessor-version":[{"id":38264,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/docs\/38076\/revisions\/38264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/media\/38218"}],"wp:attachment":[{"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/media?parent=38076"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/doc_category?post=38076"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/thewebops.com\/ar\/wp-json\/wp\/v2\/doc_tag?post=38076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}