Description
The Datman Payment Gateway plugin integrates your WooCommerce store with the Datman Pay platform.
When a customer checks out, a secure payment link is created via the Datman API and the customer
is redirected to a hosted payment page. On completion, they are returned to your store and the
order status is updated automatically via webhook.
Configuration
API Credentials
All credentials are available in your Datman merchant portal.
- API Token – Your Datman API token
- Merchant Domain – e.g. xyz-business.com
- Merchant ID – Your numeric merchant ID
- Account Email – The email address tied to your Datman account
Payment Settings
- Debug Logging – When enabled, the full API request, response, and webhook payload are written to the WooCommerce order notes. Useful for troubleshooting. Disable in production once everything is working.
Webhook
The webhook URL is automatically included in every payment request sent to Datman. No manual portal configuration is required — Datman receives the callback URL per transaction.
External Services
This plugin connects to the Datman Pay API to generate hosted payment links.
The following data is transmitted when a customer checks out: order amount, customer
name, customer email address, billing phone number, and WooCommerce order ID.
API endpoint: https://payments.datmanpay.com
This service is operated by Datman (https://datman.je).
- Privacy Policy: https://datman.je/privacy-policy/
- Terms of Service: https://datman.je/wp-content/uploads/2024/10/My-Pay-Limited-Terms-Conditions-of-Business-as-per-PP-Manual.pdf
No data is sent to external servers unless a customer completes checkout using this gateway.
Installation
- Upload the plugin folder to /wp-content/plugins/
- Activate the plugin via the WordPress Plugins menu
- Go to WooCommerce Settings Payments and click “Datman Pay”
- Fill in your API Token, Merchant Domain, Merchant ID, and Account Email
- Save changes and enable the gateway
FAQ
-
Do I need a Datman merchant account?
-
Yes. This plugin requires an active Datman Pay merchant account. Visit https://datman.je to get started.
-
Where do I find my API Token and Merchant ID?
-
Both are available in your Datman merchant portal.
-
What happens if the webhook is not received?
-
The order will remain in “Pending payment” status. The thank-you page automatically polls for up to 2 minutes and shows a fallback message if no confirmation arrives. Admins can also update the order status manually from the WooCommerce Orders screen.
-
Is customer payment data stored on my server?
-
No. Customers are redirected to a Datman-hosted payment page. Card details never pass through your WordPress site.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Datman Payment Gateway for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Datman Payment Gateway for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.3
- Security: escape raw API response body before writing to order notes
- Security: webhook debug log now uses a field allowlist (strips unknown fields)
- Fix: restore wp_kses_post on admin notice output
1.0.2
- Fix: Restore Tested up to: 7.0 (current WordPress release)
1.0.1
- Added debug logging checkbox — logs API request, response, and webhook payload to order notes
- Added shopper ID support in payment request
- Hardened SSRF protection on API URL field
- Fixed esc_url_raw usage for URL storage and order notes
- Removed configurable expiry field — payment links now expire 4 hours after checkout
- Updated readme and tested-up-to version
1.0.0
- Initial release
