Description
Betloy Booking Code Converter adds a small, theme-friendly form that converts a
booking code from one bookmaker to another. It is powered by the Betloy
business API and is designed for tipping sites, betting blogs and community
forums that already talk about booking codes.
This plugin is developed and maintained by thankgod30 for use with the Betloy
API. Betloy is a trademark of its respective owner.
Features:
- Two bookmaker dropdowns and a single booking-code field.
- Works with a shortcode, a Gutenberg block, or a widget/shortcode block.
- The Betloy API key stays on your server. Visitors only talk to your site.
- Server-side bookmaker cache to keep pages fast.
- Per-visitor and site-wide hourly limits to stop abuse.
- Accent colour, heading, intro text and attribution are configurable.
- Cache-friendly public REST endpoints with per-IP and site-wide hourly limits.
- Accessible markup with labelled fields, live feedback and a copy button.
The plugin does not store booking codes. Each successful conversion is sent to
Betloy, converted, and returned to the visitor.
External services
This plugin connects to the Betloy Business API, operated by Betloy
(https://betloy.com). The connection is required for the plugin’s core feature:
converting a booking code.
Data sent:
- When a visitor submits the form: the booking code, the source bookmaker id,
and the destination bookmaker id. - When an administrator saves settings or clicks “Refresh bookmaker list”: a
request for the bookmaker catalogue. No personal data is sent.
Endpoints:
- https://betloy.com/api/v1/convert
- https://betloy.com/api/v1/bookmakers
The site’s Betloy API key is added server-side. It is never sent to the
browser. The plugin does not send site data, user accounts, email addresses, or
tracking data.
Terms: https://betloy.com/terms-and-conditions
Privacy: https://betloy.com/privacy-policy
Blocks
This plugin provides 1 block.
- Betloy Converter
Installation
- Upload the ZIP through Plugins Add New Upload Plugin. You can also
copy the plugin folder to/wp-content/plugins/. - Activate the plugin.
- Go to Settings Betloy Converter.
- Paste a business API key from https://betloy.com/business/api-keys.
- Add
[betloy_converter]to a page, post or widget, or insert the
Betloy Converter block.
You can also define the key in wp-config.php instead of the database:
define( 'BETLOY_CONVERTER_API_KEY', 'btly_your_key_here' );
FAQ
-
Does the plugin expose my API key?
-
No. The browser calls the plugin’s own REST endpoint, and the plugin adds the
key to the server-to-server request. The key is never printed in HTML or
JavaScript. -
Why does a conversion fail with “run out of conversion credits”?
-
Every successful conversion spends one credit on your Betloy business account.
Check your balance at https://betloy.com/business/api-keys. Failed conversions
are not charged by Betloy. -
Can I use it on a cached site?
-
Yes. The REST endpoints are public by design, so full-page caches and CDNs do
not break the form. Abuse is limited to 30 conversions per IP per hour and
1,000 per site per hour. The API key is only used server-side. -
How do I change the heading or colours?
-
Use Settings Betloy Converter, or override per shortcode:
[betloy_converter title="Swap your slip" from="betika" to="sportpesa"] -
Which bookmakers are listed?
-
The list comes from
GET /api/v1/bookmakerson the Betloy API and is cached
for 60 minutes by default. Use the Refresh bookmaker list button after
Betloy adds a bookmaker. -
Is the booking code stored?
-
The plugin does not store codes. Betloy processes the conversion and returns
the result. Standard Betloy API usage and retention rules apply.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Betloy Booking Code Converter” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Betloy Booking Code Converter” 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.4
- Aligned the text domain and plugin folder with the WordPress.org slug
betloy-booking-code-converter so Plugin Check reports no mismatch. - Kept the public plugin name
Betloy Booking Code Converter. - Clarified the readme short description to satisfy the readme language check.
1.0.3
- Restored the Betloy Booking Code Converter display name.
1.0.2
- Updated the plugin name and text domain for a review naming request.
1.0.1
- Removed the manual textdomain loader; WordPress loads translations automatically.
- Sanitized and unslashed the visitor IP before rate limiting.
- Replaced the refresh query flag with a short-lived transient.
- Limited readme tags to five and corrected contributor and link metadata.
- Added external-service and privacy disclosure.
1.0.0
- Initial release: shortcode, block, settings screen, REST proxy, caching and
rate limits.