webmenedzser / craft-utanvet-ellenor
Utánvét Ellenőr integration for Craft CMS
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0
- craftcms/commerce: ^3.2.13.2
- webmenedzser/uvb-connector: ^1.3.0
README
Utánvét Ellenőr integration for Craft CMS
Requirements
This plugin requires Craft Commerce 3.2.13.2 or later.
Installation
To install the plugin, follow these instructions.
-
Register to obtain API keys, then set them in the module's settings.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require webmenedzser/craft-utanvet-ellenor
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Utánvét Ellenőr.
-
Configure the plugin:
- Set your API keys.
- Set your preferred threshold.
- Select which order statuses should trigger the feedback to our service.
- Select which payment methods should be hidden if the user's reputation is below the set threshold.
-
Replace
craft.commerce.gateways.allCustomerEnabledGateways
withcraft.utanvetellenor.allCustomerEnabledGateways
in your templates. You can also get the available gateways by sending an AJAX POST request (along withCRAFT_CSRF_TOKEN
) toindex.php?action=craft-utanvet-ellenor/payment-methods
.
Utánvét Ellenőr Overview
Utánvét Ellenőr is a SaaS provided by Dro-IT Ltd from Hungary: a service which will let shop owners filter orders with Cash on Delivery coming from known fraudulent e-mail addresses.
How does it work?
The idea behind the service is the following:
- Someone orders with Cash on Delivery payment method, but later refuses to accept the package from the courier.
- The shop owner flags this order with the
Refused Package
order status. - The module listens for orders entering this status.
- Once an order ends up in this status, the module will hash the e-mail address of the user on the shop server with SHA-256 and sends the hash to our service, accompanied by a
-1
. - If the courier could hand over the package successfully, the shop owner flags the order with the successful order status. In this case the module hashes the e-mail with the same SHA-256 and sends the hash to our service, accompanied by a
+1
. - When someone with the same e-mail address would like to order (from the same or from another shop), this module can disable Cash on Delivery from available payment methods:
- The user enters his e-mail address.
- This value gets hashed with the same SHA-256 algorithm, and the module asks our service about this hash.
- The service will return a JSON array and if the e-mail reputation provided in this payload does not meet the minimum value set by the shop owner in the module settings (
Reputation Threshold
), the module will disable the selected payment methods.
Privacy implications
All inputs are hashed with SHA-256 by the module on your server. This means:
- The entered e-mail address will NEVER leave your system.
- SHA-256 is considered to be safe for hashing.
- On "check requests" we don't receive the e-mail address, just a hash, and we provide only a couple of "numbers" about that hash. There is no way for us to know what was the original string before hashing.
- In order to use our services, you MUST notify your users that "Automated individual decision-making" might be applied during checkout. For more information, please see GDPR Art. 22.
Note: this is not legal advice. Consult your lawyer before using this service in production.
Found a bug?
Check the issues or open a new one!
Brought to you by dr. Ottó Radics