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
- Download tchin.zip, then in WordPress: Plugins › Add New › Upload Plugin › Install › Activate. The Tchin menu appears.
- Keys: Tchin menu › Settings. Paste your app’s public and secret keys (see API keys).
- Test mode: keep “Test”, save, then “Test connection”: the plugin shows what your app accepts.
- 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.
- A test: tap the button or place an order, then “Simulate payment” in the sheet. The payment turns “Received” on its own.
- Live: switch the mode to “Live”. The same keys work in both modes.
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:
[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 !"]| Setting | What it does |
|---|---|
titre | the payment name, in the page and in the sheet. |
montant | the amount in CFA francs (100 minimum); with a free amount, the suggested one. |
libre, min, max | oui: the customer chooses the amount, between min and max. |
bouton, merci | the 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
- The customer places the order with Tchin; the store creates the payment (the amount, in XOF).
- The sheet opens by itself; if they close it, “Pay with Tchin” reopens the same payment.
- Tchin notifies the store; it reads the payment back from Tchin (amount and mode must match), then the order is paid, once.
- If a webhook is lost, the site re-checks pending payments from the last 48 hours every 5 minutes.
Vendor payouts (Dokan, WCFM)
- Enable “Pay vendor withdrawals with Tchin”: Tchin becomes a withdrawal method.
- The vendor requests a withdrawal choosing Tchin; you approve it in Dokan or WCFM.
- 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.