forked from mollie/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4543d53
commit 3587541
Showing
37 changed files
with
503 additions
and
49 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
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,81 @@ | ||
<?php | ||
/* | ||
* Copyright Magmodules.eu. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
# Merge the config.php file generated by Magento with our own scopes to create multiple store views. | ||
|
||
$magentoConfig = require('app/etc/config.php'); | ||
$magentoConfig['scopes'] = [ | ||
'websites' => [ | ||
'admin' => [ | ||
'website_id' => '0', | ||
'code' => 'admin', | ||
'name' => 'Admin', | ||
'sort_order' => '0', | ||
'default_group_id' => '0', | ||
'is_default' => '0' | ||
], | ||
'base' => [ | ||
'website_id' => '1', | ||
'code' => 'base', | ||
'name' => 'Main Website', | ||
'sort_order' => '0', | ||
'default_group_id' => '1', | ||
'is_default' => '1' | ||
] | ||
], | ||
'groups' => [ | ||
[ | ||
'group_id' => '0', | ||
'website_id' => '0', | ||
'name' => 'Default', | ||
'root_category_id' => '0', | ||
'default_store_id' => '0', | ||
'code' => 'default' | ||
], | ||
[ | ||
'group_id' => '1', | ||
'website_id' => '1', | ||
'name' => 'Main Website Store', | ||
'root_category_id' => '2', | ||
'default_store_id' => '1', | ||
'code' => 'main_website_store' | ||
] | ||
], | ||
'stores' => [ | ||
'admin' => [ | ||
'store_id' => '0', | ||
'code' => 'admin', | ||
'website_id' => '0', | ||
'group_id' => '0', | ||
'name' => 'Admin', | ||
'sort_order' => '0', | ||
'is_active' => '1' | ||
], | ||
'default' => [ | ||
'store_id' => '1', | ||
'code' => 'default', | ||
'website_id' => '1', | ||
'group_id' => '1', | ||
'name' => 'Default Store View', | ||
'sort_order' => '0', | ||
'is_active' => '1' | ||
], | ||
'ch' => [ | ||
'store_id' => '2', | ||
'code' => 'ch', | ||
'website_id' => '1', | ||
'group_id' => '1', | ||
'name' => 'Swiss', | ||
'sort_order' => '0', | ||
'is_active' => '1' | ||
] | ||
] | ||
]; | ||
|
||
file_put_contents( | ||
'app/etc/config.php', | ||
'<?php return ' . var_export($magentoConfig, true) . ';' . PHP_EOL | ||
); |
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,24 @@ | ||
<?php | ||
/** | ||
* Copyright © 2018 Magmodules.eu. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Mollie\Payment\Model\Methods; | ||
|
||
use Mollie\Payment\Model\Mollie; | ||
|
||
/** | ||
* Class TWINT | ||
* | ||
* @package Mollie\Payment\Model\Methods | ||
*/ | ||
class Twint extends Mollie | ||
{ | ||
/** | ||
* Payment method code | ||
* | ||
* @var string | ||
*/ | ||
const CODE = 'mollie_methods_twint'; | ||
} |
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
15 changes: 15 additions & 0 deletions
15
Test/End-2-end/cypress/fixtures/swiss-shipping-address.json
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,15 @@ | ||
{ | ||
"type": { | ||
"username": "johnsmith@mollie.com", | ||
"firstname": "John", | ||
"lastname": "Smith", | ||
"street[0]": "Bahnhofstrasse 10", | ||
"city": "Zurich", | ||
"postcode": "8001", | ||
"telephone": "0441234567" | ||
}, | ||
"select": { | ||
"country_id": "CH", | ||
"region_id": "Zürich" | ||
} | ||
} |
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,12 @@ | ||
<?php | ||
|
||
namespace Mollie\Payment\Test\Integration\Model\Methods; | ||
|
||
use Mollie\Payment\Model\Methods\Twint; | ||
|
||
class TwintTest extends AbstractMethodTest | ||
{ | ||
protected $instance = Twint::class; | ||
|
||
protected $code = 'twint'; | ||
} |
Oops, something went wrong.