diff --git a/examples/payten/_payment_config.php b/examples/payten/_payment_config.php index 75ea372d..29e87b6d 100644 --- a/examples/payten/_payment_config.php +++ b/examples/payten/_payment_config.php @@ -1,7 +1,5 @@ '12', 'cvv' => '000', 'name' => 'John Doe', - 'type' => CreditCardInterface::CARD_TYPE_VISA, ], 'visaZiraat' => [ 'number' => '4546711234567894', @@ -22,7 +19,6 @@ 'month' => '12', 'cvv' => '000', 'name' => 'John Doe', - 'type' => CreditCardInterface::CARD_TYPE_VISA, ], 'masterZiraat' => [ 'number' => '5401341234567891', @@ -30,7 +26,6 @@ 'month' => '12', 'cvv' => '000', 'name' => 'John Doe', - 'type' => CreditCardInterface::CARD_TYPE_MASTERCARD, ], 'visa1' => [ 'number' => '4546711234567894', @@ -38,7 +33,6 @@ 'month' => '12', 'cvv' => '000', 'name' => 'John Doe', - 'type' => CreditCardInterface::CARD_TYPE_VISA, ], 'visa_isbank_imece' => [ /** @@ -52,6 +46,5 @@ 'month' => '10', 'cvv' => '123', 'name' => 'John Doe', - 'type' => CreditCardInterface::CARD_TYPE_VISA, ], ]; diff --git a/src/DataMapper/RequestDataMapper/EstPosRequestDataMapper.php b/src/DataMapper/RequestDataMapper/EstPosRequestDataMapper.php index 17968500..1c58f2a5 100644 --- a/src/DataMapper/RequestDataMapper/EstPosRequestDataMapper.php +++ b/src/DataMapper/RequestDataMapper/EstPosRequestDataMapper.php @@ -38,14 +38,6 @@ class EstPosRequestDataMapper extends AbstractRequestDataMapper PosInterface::TX_TYPE_HISTORY => 'ORDERHISTORY', ]; - /** - * {@inheritdoc} - */ - protected array $cardTypeMapping = [ - CreditCardInterface::CARD_TYPE_VISA => '1', - CreditCardInterface::CARD_TYPE_MASTERCARD => '2', - ]; - /** * {@inheritdoc} */ @@ -286,7 +278,6 @@ protected function create3DFormDataCommon(AbstractPosAccount $posAccount, array ]; if ($creditCard instanceof CreditCardInterface) { - $inputs['cardType'] = $this->cardTypeMapping[$creditCard->getType()]; $inputs['pan'] = $creditCard->getNumber(); $inputs['Ecom_Payment_Card_ExpDate_Month'] = $creditCard->getExpireMonth(self::CREDIT_CARD_EXP_MONTH_FORMAT); $inputs['Ecom_Payment_Card_ExpDate_Year'] = $creditCard->getExpireYear(self::CREDIT_CARD_EXP_YEAR_FORMAT); diff --git a/src/Gateways/EstPos.php b/src/Gateways/EstPos.php index 458b5788..4c9fbc0b 100644 --- a/src/Gateways/EstPos.php +++ b/src/Gateways/EstPos.php @@ -16,8 +16,6 @@ /** * Implementation of Payten Payment Gateway - * todo cardType verisi dokumantasyona gore kontrol edilmesi gerekiyor. - * cardType gondermeden de su an calisiyor. * * @deprecated use Mews\Pos\Gateways\EstV3Pos. * For security reasons this class which uses sha1 hashing algorithm is not recommended to use. diff --git a/tests/Unit/DataMapper/RequestDataMapper/EstPosRequestDataMapperTest.php b/tests/Unit/DataMapper/RequestDataMapper/EstPosRequestDataMapperTest.php index 67ed859c..55460208 100644 --- a/tests/Unit/DataMapper/RequestDataMapper/EstPosRequestDataMapperTest.php +++ b/tests/Unit/DataMapper/RequestDataMapper/EstPosRequestDataMapperTest.php @@ -430,7 +430,6 @@ public static function threeDFormDataProvider(): array 'taksit' => '', 'islemtipi' => 'Auth', 'hash' => 'TN+2/D8lijFd+5zAUar6SH6EiRY=', - 'cardType' => '1', 'pan' => '5555444433332222', 'Ecom_Payment_Card_ExpDate_Month' => '01', 'Ecom_Payment_Card_ExpDate_Year' => '22', diff --git a/tests/Unit/DataMapper/RequestDataMapper/EstV3PosRequestDataMapperTest.php b/tests/Unit/DataMapper/RequestDataMapper/EstV3PosRequestDataMapperTest.php index aa0e300a..06554b12 100644 --- a/tests/Unit/DataMapper/RequestDataMapper/EstV3PosRequestDataMapperTest.php +++ b/tests/Unit/DataMapper/RequestDataMapper/EstV3PosRequestDataMapperTest.php @@ -149,7 +149,6 @@ public static function threeDFormDataProvider(): array 'TranType' => 'Auth', 'hashAlgorithm' => 'ver3', 'hash' => '3fvBzh0HT3UiKUTXis0Ke2NG3mAp9eBOwx26bstv+l6L946GrOF2JklXfqTNc6VBeqUSkuLxo4ErtwCWuPCzYw==', - 'cardType' => '1', 'pan' => '5555444433332222', 'Ecom_Payment_Card_ExpDate_Month' => '01', 'Ecom_Payment_Card_ExpDate_Year' => '22',