WooCommerce integration guide
Install the Yera Connect WooCommerce plugin, connect with your Merchant ID, Yera API Key, and Security Code, and run a sandbox test.
This guide explains how to connect a WooCommerce store to Yera Connect using the Yera Connect for WooCommerce plugin.
What the plugin does
The plugin lets a merchant:
- Install Yera Connect inside WordPress.
- Connect the store with three values: Merchant ID, Yera API Key, and Security Code.
- Create Yera Checkout sessions from WooCommerce orders.
- Redirect customers to the Yera hosted checkout page.
- Receive payment status updates back in WooCommerce automatically.
- Show clear WooCommerce checkout errors if the store is not connected correctly.
The plugin does not ask the merchant to enter a wallet address, and it never asks for webhook setup. Webhooks are registered automatically when the store connects.
Requirements
Before installing the plugin, confirm:
- WordPress is installed.
- WooCommerce is installed and active.
- The merchant has a Yera Connect account.
- The merchant has an active settlement destination under Wallets & Settlements for the key's environment and selected network.
- The merchant can open
Dashboard -> Developers -> API Credentials.
Live payments also require the merchant account to be approved. Sandbox testing works before approval.
If WooCommerce is not active, the plugin shows this WordPress admin notice:
Yera Connect for WooCommerce requires WooCommerce to be installed and activated.
Download the plugin
Install it in WordPress:
WordPress Admin -> Plugins -> Add New -> Upload Plugin
Upload the ZIP, activate the plugin, then open the Yera Connect menu in the WordPress admin sidebar.
Connect your store
Open Dashboard -> Developers -> API Credentials in Yera Connect and copy:
- Merchant ID
- Yera Live API Key
- Security Code
Paste all three into the plugin's Yera Credentials card and press Save & Connect. New connections accept Live credentials only. Historical Test connections and tokens cannot be reused.
Keep the API key server-side only. It must never be exposed on the storefront, in theme templates, or in browser JavaScript.
Use Test Connection at any time to re-check the connection with the saved credentials.
Fixed plugin host
The plugin uses the Yera Connect app host internally:
https://app.yeraconnect.io
This value is not shown as a merchant setting in the current plugin. Merchants should not configure an API base URL manually during normal setup.
Webhooks are automatic
The plugin exposes this webhook endpoint inside the merchant WordPress site:
https://merchant-store.com/wp-json/yera-connect/v1/webhook
When the store connects, Yera Connect registers this endpoint automatically and the plugin stores the signing secret it needs to verify incoming updates. There is nothing to configure: the URL is shown read-only, and no secret needs to be copied.
When an event is received, the plugin:
- Verifies the signature and rejects invalid requests.
- Finds the matching WooCommerce order.
- Adds an order note.
- Updates the WooCommerce order status.
- Logs the event if debug mode is enabled.
Currency logic
The plugin sends the WooCommerce order currency to Yera Connect.
If the store order is in USD, the checkout session is created in USD. If the store order is in EUR, the checkout session is created in EUR.
The final checkout request follows the actual WooCommerce order currency.
Country detection
The plugin detects the checkout country in this order:
- WooCommerce billing country
- WooCommerce shipping country
- WooCommerce store base country
Country detection is automatic in the current plugin. There is no customer country detection field or fallback country field for merchants to configure.
Settlement readiness
The WooCommerce plugin does not request a wallet address. Yera resolves the active destination under Wallets & Settlements for the API key's environment and checkout network. Checkout fails closed when that exact destination is unavailable.
Checkout flow
The normal WooCommerce payment flow is:
- Customer creates a WooCommerce order.
- Customer chooses Yera Connect at checkout.
- Plugin sends order amount, currency, detected country, order ID, customer email, and metadata to Yera Connect.
- Yera Connect creates a hosted checkout session.
- Plugin redirects the customer to Yera Checkout.
- Customer completes payment.
- Yera Connect receives provider/payment updates.
- Yera Connect sends the normalized status to WooCommerce.
- WooCommerce order status updates automatically.
Status mapping
The plugin maps Yera statuses into WooCommerce order states.
| Yera status | WooCommerce result |
|---|---|
| Pending | Pending payment |
| Confirming / Processing | On hold |
| Paid / Completed | Processing or Completed |
| Failed | Failed |
| Expired | Cancelled |
| Cancelled | Cancelled |
| Refunded | Refunded |
Orders are never marked paid while a payment is still confirming. Physical orders usually stay Processing after payment so the merchant can fulfill the order. Digital or downloadable orders can be completed automatically when configured.
Mock mode
Mock mode is only for visual content testing before live API setup is ready.
When mock mode is enabled, the plugin loads sample:
- Site-wide banner
- Product page widget
- Cart message
- Checkout message
Mock mode is clearly labeled and should not be used for live checkout testing.
Sandbox test checkout
To run a sandbox test:
- Connect the store with your Merchant ID, Sandbox API Key, and Security Code.
- Confirm the connection status shows Connected.
- Confirm an active Test settlement destination exists for the selected asset and network.
- Add a WooCommerce product to cart.
- Choose Yera Connect as the payment method.
- Place the order.
- Confirm the customer is redirected to Yera Checkout.
- Complete or simulate the sandbox payment.
- Confirm WooCommerce receives the status update.
Storefront notifications
If the plugin is not connected correctly, customers should not reach a broken checkout.
The plugin shows a WooCommerce notice when:
- The store is not connected.
- The checkout session cannot be created.
- The API response is invalid.
- WooCommerce is inactive.
Merchants can enable debug mode to see connection attempts, sync attempts, API errors, webhook events, and checkout errors inside WordPress Admin.
Troubleshooting
Checkout does not redirect
Check:
- The Merchant ID, Yera API Key, and Security Code are saved and the status shows Connected.
- You are using the right key for the right mode (Sandbox key for testing, Live key for real payments).
- The merchant account is approved when using a Live key.
- An active settlement destination exists for the key's environment and selected network.
Order status does not update
Check:
- The WordPress webhook URL is reachable over HTTPS.
- Security plugins are not blocking REST API requests.
- "Last webhook received" in the plugin settings updates after a test payment.
- Debug mode shows the webhook event.
- The WooCommerce order has a saved Yera checkout session ID.
If the webhook connection was lost, press Reconnect webhook in the plugin settings.
Wrong currency appears
Confirm the WooCommerce order currency. Yera Connect uses the order currency sent by the plugin.
Wallet error appears
Confirm that an active settlement destination exists under Wallets & Settlements for the key's environment and selected network. The plugin does not manage wallet addresses.
Production checklist
Before going live:
- Disable mock mode.
- Connect with your Live API Key (keys starting with
yera_live_). - Confirm the merchant account is approved for live payments.
- Confirm an active Live settlement destination exists for the selected network.
- Run a low-value live checkout.
- Confirm WooCommerce order status updates.
- Confirm debug logs do not expose API keys.
Production test order
Run the first live order as a controlled low-value payment.
- Disable mock mode in the plugin.
- Confirm the store is connected with the Live API Key.
- Confirm the merchant has live access and an active Live settlement destination for the selected network.
- Confirm the WordPress webhook URL is reachable over HTTPS.
- Place a low-value order with a monitored customer email.
- Complete the live payment.
- Confirm
Admin -> Webhook Logsshows a processed callback withpending=false, matching address, matching ticker, txid values, and sufficient amount. - Confirm
Admin -> Sessions -> Session detailshows the payment status timeline ending in completed. - Confirm WooCommerce received the callback, added an order note, and moved the order to the expected paid status.
- Confirm the merchant email notification arrived.
- Confirm merchant webhook delivery succeeded if the merchant uses a custom webhook endpoint.
Keep these references for launch support:
- WooCommerce order ID
- Yera session ID
- Yera transaction ID
- Provider callback event ID
- Webhook delivery ID