-
Notifications
You must be signed in to change notification settings - Fork 2
Add schufa module, DEV-793 #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iranimij
wants to merge
22
commits into
gh-pages
Choose a base branch
from
DEV-793-add-schufa-module
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2381c4f
Add schufa module, DEV-793
iranimij 6f869d7
Update README
sprankhub da9cfc3
Update packages
sprankhub abd570f
Update sidebar
sprankhub 8dab08f
Write SCHUFA upper case
sprankhub 37eba29
Update copyright
sprankhub 16f6e27
Sort sidebar entries
sprankhub 29a6eda
Unify naming
sprankhub a762e2a
Update README
sprankhub 594805f
Improve docs
sprankhub e205aaa
Improve docs, DEV-793
iranimij 01e291e
Update gemfike, DEV-793
norgeindian 97fe026
Apply suggestions from code review
iranimij 160a868
Improve docs, DEV-793
iranimij 99ebdef
Apply suggestions from code review
iranimij aca9197
Improve docs, DEV-793
iranimij 2f7c2ac
Merge remote-tracking branch 'origin/DEV-793-add-schufa-module' into …
iranimij a9667dd
Remove duplicate config
norgeindian 3cfee57
Merge remote-tracking branch 'origin/gh-pages' into DEV-793-add-schuf…
sprankhub 4af5a63
Update dependencies
sprankhub 6597591
Add more checkouts, SUP-9843
sprankhub 614ca86
Fix config field names, SUP-9843
sprankhub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. | ||
|
||
entries: | ||
- title: Sidebar | ||
levels: one | ||
folders: | ||
|
||
- title: SchufaCreditReport (M2) | ||
output: web | ||
folderitems: | ||
- title: Description | ||
url: "#description" | ||
output: web | ||
- title: Requirements | ||
url: "#requirements" | ||
output: web | ||
- title: Compatibility | ||
url: "#compatibility" | ||
output: web | ||
- title: Installation Instructions | ||
url: "#installation-instructions" | ||
output: web | ||
- title: Configuration | ||
url: "#configuration" | ||
output: web | ||
- title: How to test? | ||
url: "#how-to-test" | ||
output: web | ||
- title: Uninstallation | ||
url: "#uninstallation" | ||
output: web | ||
- title: Support | ||
url: "#support" | ||
output: web | ||
- title: Licence | ||
url: "#licence" | ||
output: web | ||
- title: Copyright | ||
url: "#copyright" | ||
output: web |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
--- | ||
title: SCHUFA Credit Report (Magento 2) | ||
permalink: schufa-credit-report-m2.html | ||
summary: "The SCHUFA Credit Report module for Magento 2 allows you to check the creditworthiness of your customers in order to allow / block certain payment methods." | ||
sidebar: scr_m2_sidebar | ||
toc: false | ||
--- | ||
|
||
## Description | ||
|
||
This module checks the customer's SCHUFA score as soon as a customer tries to place an order with a specific payment | ||
method. Based on the retrieved score from SCHUFA the extension might block the order placement. If the payment | ||
method is blocked, the customer will see an error explaining the reason for blocking the payment method. Also, the | ||
respective payment method will be hidden from this specific customer in future checkouts. For each payment method, the minimum required | ||
SCHUFA score can be configured in the backend configuration, so you can choose it for each payment method individually. | ||
|
||
**The module also works with Hyvä Checkout.** | ||
|
||
## Requirements | ||
|
||
- ext-curl: `*`, | ||
- magento/framework `^103.0` | ||
- magento/module-checkout `^100.4` | ||
- magento/module-payment `^100.4` | ||
- PHP `~8.1.0||~8.2.0||~8.3.0` | ||
|
||
## Compatibility | ||
|
||
- Magento Open Source / Adobe Commerce >= 2.4 | ||
- Luma Checkout | ||
- Hyvä Checkout >= 1.1.23 | ||
- Interested in other checkout integrations? [Contact us](https://www.customgento.com/){:target="_blank"}! | ||
|
||
## Installation Instructions | ||
|
||
The installation procedure highly depends on your setup. In any case, you should use a version control system like git | ||
and test the installation on a development system. | ||
If you are using Composer (you should!) and downloaded the extension from the Marketplace or have set up your own | ||
Composer repository, we recommend installing via Composer. | ||
|
||
### Composer Installation | ||
|
||
1. `composer require customgento/module-schufa-credit-report-m2` | ||
2. `bin/magento module:enable CustomGento_SchufaCreditReport` | ||
3. `bin/magento setup:upgrade` | ||
4. `bin/magento setup:di:compile` | ||
5. `bin/magento cache:flush` | ||
|
||
### Manual Installation | ||
|
||
1. Unzip the downloaded files | ||
2. Create the directory `app/code/CustomGento/SchufaCreditReport/`: | ||
`mkdir -p app/code/CustomGento/SchufaCreditReport/` | ||
3. Copy the unzipped files to the newly created directory `app/code/CustomGento/SchufaCreditReport/` | ||
4. `bin/magento module:enable CustomGento_SchufaCreditReport` | ||
5. `bin/magento setup:upgrade` | ||
6. `bin/magento setup:di:compile` | ||
7. `bin/magento cache:flush` | ||
|
||
## Configuration | ||
|
||
You find the settings under Stores > Configuration > Sales > SCHUFA. There are two configuration groups: "General" and | ||
"Rules". In the "General" group, you can enable the extension and configure the API credentials. In the "Rules" group, | ||
you can set the score threshold for each payment method. | ||
|
||
 | ||
iranimij marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- **Enabled** Whether the extension should be enabled or not. | ||
- **Test/Live Mode** If the extension should use the test or live mode. In test mode, the extension will use the test API URL. | ||
- **Client ID** The SCHUFA client id you get from the SCHUFA support. | ||
- **Client Certificate** The contents of the client certificate file you get from the SCHUFA support. | ||
- **Client Key** The content of the client key file you get from the SCHUFA support. | ||
iranimij marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **Passphrase** The passphrase for the client key file. This one will also be given by the SCHUFA support. | ||
|
||
 | ||
|
||
- **Minimum Order Value** The module just checks the score if the order value is greater than this value. | ||
- **Maximum Number Of Failed Credit Reports** The maximum number of failed credit reports before the customer is blocked. | ||
- **Require Verified Identity** Whether a verified identity of the customer is required. If you enable this setting and the SCHUFA cannot clearly identify the customer, the currently chosen payment method will be blocked. | ||
- **Payment** Define which payment methods should be checked by the module. You can add as many payment methods as you want. If you do not configure a specific payment method there and someone orders with this payment method, no SCHUFA score will be checked at all. | ||
- **Payment Method** The payment method to check. | ||
- **Rating Level/ Risk Ratio** The minimum score to allow the payment method. If the rating level is below this threshold, the payment method will be blocked. For example, like you can see in the image above, if a customer chooses Bank Transfer Payment method and his Rating Level is below 75%, the payment method will be blocked. More information about the rating level can be found [here](https://www.schufa.de/en/scoring-data/scoring-schufa/){:target="_blank"}. | ||
- **Maximum Order Total** The maximum order total to allow the payment method. If the order total is above this threshold, the payment method will be blocked. | ||
iranimij marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## How to test? | ||
When you have installed the extension, you can enable test field and then add a sample configuration to the rules section. Then you can try to place an order with the payment method you have configured in the rules section. In the last step of the checkout you will see, if the payment method is blocked or not. | ||
|
||
## Troubleshooting - I installed the extension, but it does not work | ||
|
||
1. Do you use the latest version of the extension? | ||
2. Do you use Magento >= 2.4? | ||
3. Do you really use the correct SCHUFA API credentials? | ||
4. Are you using the correct certification files? | ||
5. Make sure to test it in incognito mode or clear the cache. | ||
6. Make sure that the extension is **not** disabled under Stores > Configuration > Sales > SCHUFA. | ||
7. Make sure that the SCHUFA Credit Report is enabled in the payment methods configuration. | ||
|
||
## Uninstallation | ||
|
||
The uninstallation procedure depends on your setup: | ||
|
||
### Uninstallation After Composer Installation | ||
|
||
1. `bin/magento module:uninstall CustomGento_SchufaCreditReport` | ||
iranimij marked this conversation as resolved.
Show resolved
Hide resolved
|
||
2. `bin/magento setup:di:compile` | ||
3. `bin/magento cache:flush` | ||
|
||
### Uninstallation After Manual Installation | ||
|
||
1. `bin/magento module:disable CustomGento_SchufaCreditReport` | ||
2. `bin/magento setup:di:compile` | ||
3. `bin/magento cache:flush` | ||
4. `rm -r app/code/CustomGento/SchufaCreditReport` | ||
|
||
## Support | ||
|
||
If you have any issues with this extension, feel free to [contact us](https://www.customgento.com/){:target="_blank"}! | ||
|
||
## Licence | ||
|
||
[CustomGento Commercial Software Licence](https://www.customgento.com/license){:target="_blank"} | ||
|
||
## Copyright | ||
|
||
© 2024 - present CustomGento GmbH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.