This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from heidelpay/develop
Release version 1.0.3
- Loading branch information
Showing
29 changed files
with
4,190 additions
and
4,108 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/bower_components | ||
/vendor | ||
|
||
# IDEs and editors | ||
/.idea | ||
/.vscode | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage/* | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
*.log | ||
/plugin-interface | ||
/.phan | ||
plenty.php | ||
|
||
# should be fixed in VM | ||
/ui-backend | ||
|
||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
#System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# ignore builds | ||
*.tar.gz | ||
.branchname | ||
build.properties | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/bower_components | ||
/vendor | ||
|
||
# IDEs and editors | ||
/.idea | ||
/.vscode | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage/* | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
*.log | ||
/plugin-interface | ||
/.phan | ||
plenty.php | ||
|
||
# should be fixed in VM | ||
/ui-backend | ||
|
||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
#System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# ignore builds | ||
*.tar.gz | ||
.branchname | ||
build.properties |
This file contains 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 |
---|---|---|
@@ -1,51 +1,51 @@ | ||
[![PHP 7.1](https://img.shields.io/badge/php-7.1-blue.svg)](http://www.php.net) | ||
[![PHP 7.2](https://img.shields.io/badge/php-7.2-blue.svg)](http://www.php.net) | ||
[![PHP 7.3](https://img.shields.io/badge/php-7.3-blue.svg)](http://www.php.net) | ||
|
||
![Logo](http://dev.heidelpay.com/devHeidelpay_400_180.jpg) | ||
|
||
# Payment extension for Plentymarkets and heidelpay merchant gateway (MGW) | ||
|
||
This extension for Plentymarkets provides a direct integration of the heidelpay payment methods to your Plentymarkets shop. | ||
|
||
Currently supported payment methods are: | ||
* Cards (Credit and Debit) | ||
* Direct Debit (guaranteed) B2C | ||
* FlexiPay direct® | ||
* iDEAL | ||
* Invoice (guaranteed) B2C | ||
* Invoice guaranteed B2B | ||
* PayPal | ||
* Sofort | ||
|
||
## SYSTEM REQUIREMENTS | ||
This extension requires: | ||
- Plentymarkets 7 | ||
- Plugin Ceres version 5.0 or above | ||
- Plugin IO version 5.0 or above | ||
|
||
## LICENSE | ||
Copyright (C) 2020 heidelpay GmbH | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
## User Guide | ||
### English | ||
* [User Guide](meta/documents/user_guide_en.md) | ||
* [Changelog](meta/documents/changelog_en.md) | ||
* [Support Contacts](meta/documents/support_contact_en.md) | ||
|
||
### Deutsch | ||
* [User Guide](meta/documents/user_guide_de.md) | ||
* [Changelog](meta/documents/changelog_de.md) | ||
* [Supportkontakte](meta/documents/support_contact_de.md) | ||
[![PHP 7.1](https://img.shields.io/badge/php-7.1-blue.svg)](http://www.php.net) | ||
[![PHP 7.2](https://img.shields.io/badge/php-7.2-blue.svg)](http://www.php.net) | ||
[![PHP 7.3](https://img.shields.io/badge/php-7.3-blue.svg)](http://www.php.net) | ||
|
||
![Logo](http://dev.heidelpay.com/devHeidelpay_400_180.jpg) | ||
|
||
# Payment extension for Plentymarkets and heidelpay merchant gateway (MGW) | ||
|
||
This extension for Plentymarkets provides a direct integration of the heidelpay payment methods to your Plentymarkets shop. | ||
|
||
Currently supported payment methods are: | ||
* Cards (Credit and Debit) | ||
* Direct Debit (guaranteed) B2C | ||
* FlexiPay direct® | ||
* iDEAL | ||
* Invoice (guaranteed) B2C | ||
* Invoice guaranteed B2B | ||
* PayPal | ||
* Sofort | ||
|
||
## SYSTEM REQUIREMENTS | ||
This extension requires: | ||
- Plentymarkets 7 | ||
- Plugin Ceres version 5.0 or above | ||
- Plugin IO version 5.0 or above | ||
|
||
## LICENSE | ||
Copyright (C) 2020 heidelpay GmbH | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
## User Guide | ||
### English | ||
* [User Guide](meta/documents/user_guide_en.md) | ||
* [Changelog](meta/documents/changelog_en.md) | ||
* [Support Contacts](meta/documents/support_contact_en.md) | ||
|
||
### Deutsch | ||
* [User Guide](meta/documents/user_guide_de.md) | ||
* [Changelog](meta/documents/changelog_de.md) | ||
* [Supportkontakte](meta/documents/support_contact_de.md) |
This file contains 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 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 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 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 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 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 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 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 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 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,58 @@ | ||
<?php | ||
|
||
namespace HeidelpayMGW\Helpers; | ||
|
||
use IO\Services\UrlBuilder\UrlQuery; | ||
|
||
/** | ||
* Returns the API keys | ||
* | ||
* Copyright (C) 2020 heidelpay GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @link https://docs.heidelpay.com/ | ||
* | ||
* @author Rimantas <[email protected]> | ||
* | ||
* @package heidelpayMGW/helpers | ||
*/ | ||
class UrlHelper | ||
{ | ||
/** @var SessionHelper $sessionHelper */ | ||
private $sessionHelper; | ||
|
||
public function __construct(SessionHelper $sessionHelper) | ||
{ | ||
$this->sessionHelper = $sessionHelper; | ||
} | ||
|
||
/** | ||
* Get public API key from settings | ||
* | ||
* @return string Public key | ||
*/ | ||
public function getRedirectUrl(string $url): string | ||
{ | ||
$language = $this->sessionHelper->getValue('frontendLocale'); | ||
|
||
$query = pluginApp(UrlQuery::class, ['path' => $url, 'lang' => $language]); | ||
|
||
$includeLanguage = false; | ||
if ($language != 'de') { | ||
$includeLanguage = true; | ||
} | ||
|
||
return $query->toRelativeUrl($includeLanguage); | ||
} | ||
} |
Oops, something went wrong.