Skip to content

Commit

Permalink
bugfixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKiederle committed Feb 15, 2019
1 parent 03e86fe commit 0813e98
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ not supported by Heidelpay.
## Getting Started

### Installation

```
composer config repositories.techdivision.magento2-heidelpay-mockable vcs https://github.com/LukasKiederle/magento2-heidelpay-mockable.git
composer require techdivision/heidelpay-mockable
```

```
bin/magento setup:upgrade
```

### Configuration

After installing the module you need to configure the endpoints for your PSP mock service by adding following values
Expand All @@ -21,7 +32,7 @@ into your `<project-root>/app/etc/config.php`.
array (
'techdivision_heidelpay_mockable' =>
array (
'psp_mock_url' => 'psp-mock.test',
'psp_mock_url' => 'https://psp-mock.test',
),
),
),
Expand Down
5 changes: 5 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="TechDivision_HeidelpayMockable" setup_version="1.0.0">
</module>
</config>
2 changes: 1 addition & 1 deletion vendor-fixes/PhpPaymentApi/Constants/ApiConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getTestUrl()
{
$config = include (__DIR__ . '/../../../../../../app/etc/config.php');

$sApiUrl = $config['system']['default']['techdivision_heidelpay_mockable']['psp_mock_url'];
$sApiUrl = $config['system']['default']['techdivision_heidelpay_mockable']['psp_mock_url'] . '/ngw/post';

if($sApiUrl != null){
return $sApiUrl;
Expand Down

0 comments on commit 0813e98

Please sign in to comment.