Skip to content

Commit

Permalink
fixup! added Convertim payment types
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Dec 10, 2024
1 parent 2484227 commit 2b11a28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/Payment/PaymentTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class PaymentTypeEnum extends AbstractPaymentTypeEnum
public const string TYPE_STRIPE = 'convertim_stripe';
public const string TYPE_COMGATE = 'convertim_comgate';
public const string TYPE_TRUSTPAY = 'convertim_trustpay';
public const string TYPE_PAYPAL = 'convertim_paypal';
public const string TYPE_ESSOX = 'convertim_essox';

/**
* @return array<string, string>
Expand All @@ -27,6 +29,8 @@ public function getAllIndexedByTranslations(): array
t('Stripe (Convertim only)') => self::TYPE_STRIPE,
t('Comgate (Convertim only)') => self::TYPE_COMGATE,
t('TrustPay (Convertim only)') => self::TYPE_TRUSTPAY,
t('PayPal (Convertim only)') => self::TYPE_PAYPAL,
t('Essox (Convertim only)') => self::TYPE_ESSOX,
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ ConvertimPaymentTypeEnumDecorator:
value: '@=constant("Shopsys\\ConvertimBundle\\Model\\Payment\\PaymentTypeEnum::TYPE_COMGATE")'
convertim_trustpay:
value: '@=constant("Shopsys\\ConvertimBundle\\Model\\Payment\\PaymentTypeEnum::TYPE_TRUSTPAY")'
convertim_paypal:
value: '@=constant("Shopsys\\ConvertimBundle\\Model\\Payment\\PaymentTypeEnum::TYPE_PAYPAL")'
convertim_essox:
value: '@=constant("Shopsys\\ConvertimBundle\\Model\\Payment\\PaymentTypeEnum::TYPE_ESSOX")'

0 comments on commit 2b11a28

Please sign in to comment.