Skip to content
Docs
FR Create an account

Integrations

WordPress and WooCommerce

One plugin, Tchin. On any WordPress site, a payment button in your pages; with WooCommerce, Tchin at checkout. Your customers pay by Mobile Money or crypto, in the Tchin sheet, without leaving your site. No code.

What the plugin does

  • A payment button in your pages: the “Tchin payment” block or the [tchin] shortcode. A membership fee, a ticket, a donation, a gift card.
  • Tchin at WooCommerce checkout: block and classic checkout, with HPOS storage.
  • Your colours: buttons, accent, panel and logo, with a live preview.
  • Vendor payouts with Dokan or WCFM Marketplace: sellers receive their earnings by Mobile Money or crypto.
  • A payment only counts once Tchin confirms it: signed webhook, or status read from Tchin.
  • One-click updates, signed by Wintg.

Install

  1. Download tchin.zip, then in WordPress: Plugins › Add New › Upload Plugin › Install › Activate. The Tchin menu appears.
  2. Keys: Tchin menu › Settings. Paste your app’s public and secret keys (see API keys).
  3. Test mode: keep “Test”, save, then “Test connection”: the plugin shows what your app accepts.
  4. In your pages: add the “Tchin payment” block. With WooCommerce: the store currency must be the CFA franc (XOF), and “Offer Tchin at checkout” ticked.
  5. A test: tap the button or place an order, then “Simulate payment” in the sheet. The payment turns “Received” on its own.
  6. Live: switch the mode to “Live”. The same keys work in both modes.
Good to know
Nothing to configure for the webhook: its URL (https://your-site/wp-json/tchin/v1/webhook) is sent with each payment. It must be HTTPS and reachable. On a local site, a check every 5 minutes still updates payments.

A payment button in your pages

In the editor, add the Tchin payment block: title, fixed or free amount, limits, button text, message after payment. Without the block editor, use the shortcode:

The shortcode
[tchin montant="5000" titre="Cotisation 2026"]
[tchin libre="oui" min="500" max="100000" titre="Faire un don" bouton="Je donne" merci="Merci pour votre don !"]
SettingWhat it does
titrethe payment name, in the page and in the sheet.
montantthe amount in CFA francs (100 minimum); with a free amount, the suggested one.
libre, min, maxoui: the customer chooses the amount, between min and max.
bouton, mercithe button text; the message once the payment is received.

The title, amount and limits are signed by your site: nobody can change them in the page. Received payments are in Tchin › Payments. The tchin_paiement_recu action fires once per received payment:

add_action( 'tchin_paiement_recu', function ( $paiement ) {
    // $paiement->token, ->montant (F CFA), ->titre, ->page_id, ->mode (test ou live), ->moyen
    if ( 'live' === $paiement->mode ) {
        wp_mail( get_option( 'admin_email' ), 'Paiement reçu', $paiement->titre . ' : ' . $paiement->montant . ' F' );
    }
} );

At checkout

  1. The customer places the order with Tchin; the store creates the payment (the amount, in XOF).
  2. The sheet opens by itself; if they close it, “Pay with Tchin” reopens the same payment.
  3. Tchin notifies the store; it reads the payment back from Tchin (amount and mode must match), then the order is paid, once.
  4. If a webhook is lost, the site re-checks pending payments from the last 48 hours every 5 minutes.
Warning
A confirmed payment is final: WooCommerce’s “Refund” button does not send money back through Tchin.

Vendor payouts (Dokan, WCFM)

  1. Enable “Pay vendor withdrawals with Tchin”: Tchin becomes a withdrawal method.
  2. The vendor requests a withdrawal choosing Tchin; you approve it in Dokan or WCFM.
  3. The plugin creates a Receive link; the vendor gets it by email and in their dashboard, and picks their number or address.

The money leaves your Tchin balance when the vendor receives it. A withdrawal is sent only once per request.

Updates and security

  • New versions show up in Plugins like any other; one click, or automatic updates.
  • Each version is signed by Wintg (Ed25519); a modified archive is rejected.
  • The secret key is stored encrypted in your database and never shown again.
  • Each webhook is verified (signature, under 10 minutes) and each payment is read back from Tchin before it counts.