-
Notifications
You must be signed in to change notification settings - Fork 17
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 #24 from logeecom/master
PISYL-247: PISYL-245: Add Riverty and trusty payment methods
- Loading branch information
Showing
13 changed files
with
166 additions
and
9 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
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,32 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
class Version20240627164350 extends AbstractMigration | ||
{ | ||
//table name | ||
private const TABLE_NAME = 'mollie_configuration'; | ||
|
||
public function getDescription(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Delete giropay payment method from mollie configuration table | ||
* | ||
* @param Schema $schema | ||
* @return void | ||
*/ | ||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql('DELETE FROM ' . self::TABLE_NAME . ' WHERE method_id = \'giropay\''); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
} | ||
} |
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,39 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
class Version20240716134351 extends AbstractMigration | ||
{ | ||
private const TABLE_NAME = 'mollie_configuration'; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDescription(): string | ||
{ | ||
return 'Change qr_code_enabled column to allow NULL values and set default to NULL'; | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* | ||
* @return void | ||
*/ | ||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE ' . self::TABLE_NAME . ' MODIFY qr_code_enabled TINYINT(1) DEFAULT NULL'); | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
* | ||
* @return void | ||
*/ | ||
public function down(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE ' . self::TABLE_NAME . ' MODIFY qr_code_enabled TINYINT(1) NOT NULL'); | ||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Payments\Methods; | ||
|
||
use Mollie\Api\Types\PaymentMethod; | ||
|
||
final class Bancomatpay extends AbstractMethod | ||
{ | ||
public function getMethodId(): string | ||
{ | ||
return PaymentMethod::BANCOMATPAY; | ||
} | ||
|
||
public function getPaymentType(): string | ||
{ | ||
return self::PAYMENT_API; | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Payments\Methods; | ||
|
||
use Mollie\Api\Types\PaymentMethod; | ||
|
||
final class Payconiq extends AbstractMethod | ||
{ | ||
public function getMethodId(): string | ||
{ | ||
return PaymentMethod::PAYCONIQ; | ||
} | ||
public function getPaymentType(): string | ||
{ | ||
return self::PAYMENT_API; | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Payments\Methods; | ||
|
||
use Mollie\Api\Types\PaymentMethod; | ||
|
||
final class Riverty extends AbstractMethod | ||
{ | ||
public function getMethodId(): string | ||
{ | ||
return PaymentMethod::RIVERTY; | ||
} | ||
public function getPaymentType(): string | ||
{ | ||
return self::ORDER_API; | ||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace SyliusMolliePlugin\Payments\Methods; | ||
|
||
use Mollie\Api\Types\PaymentMethod; | ||
|
||
class Trustly extends AbstractMethod | ||
{ | ||
public function getMethodId(): string | ||
{ | ||
return 'trustly'; | ||
} | ||
|
||
public function getPaymentType(): string | ||
{ | ||
return self::PAYMENT_API; | ||
} | ||
} |
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