WooCommerce Integration
Cashless provides a WordPress plugin for accepting mobile money payments through WooCommerce.
Installation
- Download the
cashless-payment-gatewayplugin folder - Upload it to
/wp-content/plugins/on your WordPress site - Activate the plugin in WordPress Admin > Plugins
- Go to WooCommerce > Settings > Payments
- Enable "Cashless Payment Gateway" and click "Set up"
Configuration
In the plugin settings, enter:
| Setting | Description |
|---|---|
| API Key | Your Cashless API key |
| API Secret | Your Cashless API secret |
How it works
- Customer selects "Cashless Payment" at checkout
- The plugin creates a bill via the Cashless API
- Customer is redirected to the WebPay payment page
- After payment, customer returns to the WooCommerce thank-you page
- The plugin verifies payment status and marks the order as "Processing"
Payment verification
When the customer returns to your site, the plugin:
- Reads the
cashless_bill_uuidfrom the URL - Calls the Cashless API to verify the bill status
- If
FULLY_PAID, updates the WooCommerce order to "Processing"
Troubleshooting
Orders not marking as paid
- Check that your API key and secret are correct
- Verify the Cashless server is reachable from your WordPress server
- Check WordPress error logs for API response details
Customer not redirected back
- Ensure your WordPress site URL is accessible from the internet
- Check that the WooCommerce thank-you page is configured correctly