Skip to content

WooCommerce Integration

The official Sangho plugin for WooCommerce lets you accept Mobile Money, bank card, and PayPal payments in your WordPress store within minutes.

Installation

  • 1. Download the plugin from WordPress.org or the Sangho marketplace
  • 2. In WordPress: Plugins → Add New → Upload
  • 3. Activate the plugin
  • 4. Go to WooCommerce → Settings → Payments → Sangho

Configuration

  • Enter your publishable key (pk_live_) and secret key (sk_prod_)
  • Enable the desired payment methods
  • Configure the success and cancellation URLs
  • Test in Sandbox mode with your pk_test_ / sk_test_ keys

Features

FeatureAvailable
Mobile Money payment
Card payment
PayPal
Refunds from WooCommerce
Automatic webhooks
Sandbox mode
WooCommerce Subscriptions support

Prerequisites

  • WordPress 5.8+
  • WooCommerce 6.0+
  • PHP 7.4+
  • HTTPS enabled on your store
  • Sangho account with approved KYC

Minimal Configuration

wp-config.php
define('SANGHO_PUBLIC_KEY', 'pk_live_xxxx');
define('SANGHO_SECRET_KEY', 'sk_prod_xxxx');
Attention

Never hardcode your API keys in the source code. Use WooCommerce settings or environment variables.