Developers / WooCommerce

WooCommerce plugin

Production gateway in plugins/woocommerce-aurapay/. Creates AuraPay invoices at checkout and marks orders paid on payment.confirmed.

  1. Create an API key in AuraPay → Services → API. Set webhook URL to https://YOUR-STORE.com/wp-json/aurapay/v1/webhook and a webhook secret.
  2. Install the plugin: zip the woocommerce-aurapay folder, upload under WordPress → Plugins → Add New → Upload.
  3. Configure WooCommerce → Settings → Payments → AuraPay: enable, paste API key + secret, choose TON or USDT, API base https://app.aurapayglobal.com.
  4. Test: place an order, complete hosted checkout, confirm the order moves to Processing / Completed after the webhook.

Webhook verification (PHP)

$expected = 'sha256=' . hash_hmac('sha256', $rawBody, $secret);
hash_equals($expected, $_SERVER['HTTP_X_AURAPAY_SIGNATURE'] ?? '');