WooCommerce integration guide
Install the Yera Connect WooCommerce plugin, connect API keys, configure checkout, 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.
- Add a Yera Connect public key and secret key.
- Create Yera Checkout sessions from WooCommerce orders.
- Redirect customers to the Yera hosted checkout page.
- Receive payment status updates back in WooCommerce.
- Show clear WooCommerce checkout errors if the store is not connected correctly.
The plugin does not ask the merchant to enter a wallet address. Settlement wallet setup stays inside the Yera Connect dashboard.
Requirements
Before installing the plugin, confirm:
- WordPress is installed.
- WooCommerce is installed and active.
- The merchant account is approved in Yera Connect.
- The merchant has a verified default wallet in the Yera Connect dashboard.
- The merchant has a public key and secret key for WooCommerce.
- The dashboard wallet is verified for the supported settlement setup.
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
Download the latest ZIP from the dashboard:
Dashboard -> WooCommerce Setup -> Download plugin
The live download route is:
https://yeraconnect.io/downloads/yera-connect-for-woocommerce
Install it in WordPress:
WordPress Admin -> Plugins -> Add New -> Upload Plugin
Upload the ZIP, activate the plugin, then open:
WordPress Admin -> WooCommerce -> Settings -> Payments -> Yera Connect Pay
Add API keys
In the plugin settings, add:
- Yera Connect public key
- Yera Connect secret key
- Webhook secret
Use test keys while running sandbox checkout tests.
Keep the secret key server-side only. It must never be exposed on the storefront, in theme templates, or in browser JavaScript.
API base URL
The API base URL is fixed inside the WooCommerce gateway settings:
https://yeraconnect.io
Merchants should not change this value during normal setup.
Webhook URL
The plugin exposes this webhook endpoint inside the merchant WordPress site:
https://merchant-store.com/wp-json/yera-connect/v1/webhook
Yera Connect uses this endpoint to send normalized payment events back to WooCommerce.
The URL is shown as a read-only field in the WooCommerce gateway settings. The plugin sends it to Yera Connect when a checkout session is created.
Webhook secret
Paste the Yera Connect webhook secret into the WooCommerce gateway settings.
The plugin uses this shared secret to verify signed webhook requests from Yera Connect. If a secret is configured, unsigned or invalid webhook requests are rejected.
When an event is received, the plugin:
- 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
- Manual fallback country
Keep detection on auto for normal merchant stores. Manual mode is only for stores that must force one fallback country.
Dashboard wallet
The merchant wallet is managed in the dashboard. The WooCommerce plugin does not request a wallet address.
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, WordPress webhook URL, webhook secret reference, 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 |
| Processing | Processing |
| Paid | Processing or Completed |
| Failed | Failed |
| Expired | Cancelled |
| Refunded | Refunded |
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:
- Enable test mode in the plugin.
- Confirm the public and secret keys are saved.
- Confirm the API base URL points to Yera Connect.
- Add the webhook secret.
- Confirm customer country detection is set to auto.
- Confirm the merchant has a verified dashboard wallet.
- 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:
- API keys are missing.
- The store is disconnected.
- 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:
- Public key and secret key are saved.
- Test mode matches the key type.
- API base URL is correct.
- Merchant account is approved.
- Default dashboard wallet is verified.
- Webhook secret is saved.
Order status does not update
Check:
- The WordPress webhook URL is reachable over HTTPS.
- Security plugins are not blocking REST API requests.
- Webhook secret matches the Yera Connect dashboard secret.
- Debug mode shows the webhook event.
- The WooCommerce order has a saved Yera checkout session ID.
Wrong currency appears
Confirm the WooCommerce order currency. Yera Connect uses the order currency sent by the plugin.
Wallet error appears
Open the Yera Connect dashboard and verify the merchant wallet. The plugin does not manage wallet addresses.
Production checklist
Before going live:
- Disable mock mode.
- Disable test mode.
- Add live public and secret keys.
- Confirm the live API base URL.
- Confirm the dashboard wallet is verified.
- Confirm the webhook secret is saved.
- Run a low-value live checkout.
- Confirm WooCommerce order status updates.
- Confirm debug logs do not expose secret keys.
Production test order
Run the first live order as a controlled low-value payment.
- Disable mock mode and test mode in WooCommerce.
- Confirm live public and secret keys are saved.
- Confirm the merchant has live access and a verified dashboard wallet.
- 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 -> PayGate Callbacksshows 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
- PayGate callback event ID
- Webhook delivery ID
