WordPress & WooCommerce

Ayiti API Connect for WordPress

Secure Haitian gourde (HTG) payments for WordPress websites through the Ayiti API Connect platform.

Installable archive

The ZIP contains the plugin folder ayiti-api-connect/ with the main file ayiti-api-connect.php, so it installs through the standard WordPress uploader.

Secrets stay on the server

The secret key is stored in WordPress options on the server and used only by server-side requests. It is never printed to a page, never handed to JavaScript and it is masked again the next time you open the settings screen.

Verified payments only

A customer returning from checkout never completes an order. The order is completed only after the platform confirms the payment, with the amount re-checked against the order total and duplicates ignored.

Setup in six steps

  1. 1Download ayiti-api-connect.zip below.
  2. 2WordPress admin → Plugins → Add New Plugin → Upload Plugin → choose the ZIP → Install Now → Activate.
  3. 3WooCommerce → Ayiti API Connect: enter the API base URL, your public key, secret key, environment and the webhook signing secret. Run Test connection.
  4. 4WooCommerce → Settings → Payments: enable Ayiti API Connect and enter your website id.
  5. 5Copy the webhook URL shown on the settings screen into your merchant webhook endpoint.
  6. 6Set the store currency to Haitian gourde (HTG) — the gateway hides itself for any other currency.
Requirements: WordPress 6.0+, PHP 7.4+, WooCommerce 7.1+ for checkout payments, and a public HTTPS store URL. High-Performance Order Storage compatibility is declared in the plugin and it uses WooCommerce order APIs only.

What is inside the package

File
ayiti-api-connect/ayiti-api-connect.php
ayiti-api-connect/includes/class-ayiti-api-client.php
ayiti-api-connect/includes/class-ayiti-settings.php
ayiti-api-connect/includes/class-ayiti-gateway.php
ayiti-api-connect/uninstall.php
ayiti-api-connect/readme.txt
ayiti-api-connect/docs/INSTALLATION.md

Settings screen with nonce protection, sanitisation and capability checks.

Server-side API client using wp_remote_request with the secret key in an Authorization header.

WooCommerce gateway with HTG-only availability and refund support.

Signed webhook endpoint at /wp-json/ayiti-api-connect/v1/webhook.

Configuration values to enter

API base URL

https://ayiti-api-connect.base44.app

Environment

Test, then Live after approval

Currency

HTG only

Webhook signing

Ayiti-Signature, HMAC-SHA256

Tolerance

300 seconds

Support

ayitiapiconnect@gmail.com

The plugin talks to the same contract documented in the API reference. Until the API is reachable over HTTPS and the platform's payment engine is enabled, the gateway reports the failure and leaves the order pending — it never marks an order paid on its own.