{"id":140721,"date":"2026-07-20T13:28:45","date_gmt":"2026-07-20T13:28:45","guid":{"rendered":"https:\/\/docs.daftra.com\/?post_type=tutorial&#038;p=140721"},"modified":"2026-07-20T13:48:03","modified_gmt":"2026-07-20T13:48:03","slug":"setting-up-m-pesa-as-a-payment-method","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/","title":{"rendered":"Setting Up M-PESA as a Payment Method"},"content":{"rendered":"<p>The system allows Kenya-based accounts to enable M-PESA as a payment method for invoices by connecting their Safaricom Daraja credentials. Once configured, M-PESA becomes available as a payment option on invoices going forward.<\/p>\n<blockquote><p><em><strong>Note: M-PESA is available only for accounts where Kenya is configured as the account country. If you do not see the M-PESA card on the Payment Methods page, contact your account administrator.<\/strong><\/em><\/p><\/blockquote>\n<p><strong>Before You Begin<\/strong><\/p>\n<ul>\n<li>You must have the <strong>&#8220;Edit Payment Options&#8221;<\/strong> permission to access the Payment Methods page and all M-PESA settings. Users without this permission will not see the Payment Methods menu item.<\/li>\n<li>Have your Safaricom Daraja credentials ready before starting setup: Consumer Key, Consumer Secret, Business Shortcode, and Passkey. These are obtained from the Daraja portal and from Safaricom directly.<\/li>\n<\/ul>\n","protected":false},"author":23,"featured_media":0,"template":"","categories":[2068],"tags":[],"class_list":["post-140721","tutorial","type-tutorial","status-publish","hentry","category-payment-methods"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setting Up M-PESA as a Payment Method - Daftra Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up M-PESA as a Payment Method - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"The system allows Kenya-based accounts to enable M-PESA as a payment method for invoices by connecting their Safaricom Daraja credentials. Once configured, M-PESA becomes available as a payment option on invoices going forward. Note: M-PESA is available only for accounts where Kenya is configured as the account country. If you do not see the M-PESA [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-20T13:48:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/#website\",\"url\":\"https:\/\/docs.daftra.com\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/\",\"name\":\"Setting Up M-PESA as a Payment Method - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/#website\"},\"datePublished\":\"2026-07-20T13:28:45+00:00\",\"dateModified\":\"2026-07-20T13:48:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up M-PESA as a Payment Method\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting Up M-PESA as a Payment Method - Daftra Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up M-PESA as a Payment Method - Daftra Knowledge Base","og_description":"The system allows Kenya-based accounts to enable M-PESA as a payment method for invoices by connecting their Safaricom Daraja credentials. Once configured, M-PESA becomes available as a payment option on invoices going forward. Note: M-PESA is available only for accounts where Kenya is configured as the account country. If you do not see the M-PESA [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-07-20T13:48:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/#website","url":"https:\/\/docs.daftra.com\/","name":"Daftra Knowledge Base","description":"Daftra","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/","name":"Setting Up M-PESA as a Payment Method - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/#website"},"datePublished":"2026-07-20T13:28:45+00:00","dateModified":"2026-07-20T13:48:03+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-m-pesa-as-a-payment-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Setting Up M-PESA as a Payment Method"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/140721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/23"}],"version-history":[{"count":2,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/140721\/revisions"}],"predecessor-version":[{"id":140730,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/140721\/revisions\/140730"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=140721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=140721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=140721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}