From 2eed5c19111330def8f30431480349e9dc4722b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0emsudin=20Mekani=C4=87?= Date: Sun, 8 Nov 2020 13:42:03 +0100 Subject: [PATCH] Rebranding to Qenta and testing --- README.md | 5 +- composer.json | 4 +- .../QMore/BackendClient.php | 106 ++++----- .../QMore/Config/client.config.php | 14 +- .../QMore/Config/user.config.php | 14 +- .../Exception/ExceptionInterface.php | 20 +- .../Exception/InvalidArgumentException.php | 20 +- .../QMore/DataStorage/Request/Read.php | 48 ++-- .../QMore/DataStorage/Response/Initiation.php | 20 +- .../QMore/DataStorage/Response/Read.php | 20 +- .../QMore/DataStorageClient.php | 72 +++--- .../{WirecardCEE => QentaCEE}/QMore/Error.php | 24 +- .../Exception/BadMethodCallException.php} | 20 +- .../QMore}/Exception/ExceptionInterface.php | 20 +- .../Exception/InvalidArgumentException.php} | 22 +- .../Exception/InvalidParamLengthException.php | 42 ++++ .../Exception/InvalidResponseException.php | 42 ++++ .../QMore/FrontendClient.php | 124 +++++----- .../QMore/Module.php | 20 +- .../QMore/PaymentType.php | 20 +- .../QMore}/Request/Backend/TransferFund.php | 20 +- .../Request/Backend/TransferFund/Existing.php | 22 +- .../Request/Backend/TransferFund/Moneta.php | 22 +- .../Request/Backend/TransferFund/SepaCT.php | 22 +- .../Backend/TransferFund/SkrillWallet.php | 22 +- .../Response/Backend/ApproveReversal.php | 20 +- .../QMore/Response/Backend/Deposit.php | 20 +- .../Response/Backend/DepositReversal.php | 20 +- .../Response/Backend/FinancialObject.php | 20 +- .../Backend/GetFinancialInstitutions.php | 20 +- .../Response/Backend/GetOrderDetails.php | 30 +-- .../QMore/Response/Backend/Order.php | 48 ++-- .../QMore/Response/Backend/Order/Credit.php | 22 +- .../Response/Backend/Order/CreditIterator.php | 20 +- .../Response/Backend/Order/OrderIterator.php | 20 +- .../QMore/Response/Backend/Order/Payment.php | 22 +- .../Response/Backend/Order/Payment/Ideal.php | 20 +- .../Response/Backend/Order/Payment/Paypal.php | 20 +- .../Order/Payment/Sofortueberweisung.php | 20 +- .../Backend/Order/PaymentIterator.php | 20 +- .../QMore/Response/Backend/RecurPayment.php | 20 +- .../QMore/Response/Backend/Refund.php} | 20 +- .../QMore/Response/Backend/RefundReversal.php | 20 +- .../Response/Backend/ResponseAbstract.php | 20 +- .../QMore/Response/Backend/TransferFund.php} | 20 +- .../QMore/Response/Initiation.php | 20 +- .../QMore/Response/ResponseAbstract.php | 24 +- .../QPay => QentaCEE/QMore}/Return/Cancel.php | 20 +- .../QMore/Return/Failure.php | 22 +- .../QMore/Return/Pending.php | 22 +- .../QMore/Return/Success.php | 22 +- .../QMore/Return/Success/CreditCard.php | 22 +- .../QMore/Return/Success/Ideal.php | 22 +- .../QMore/Return/Success/PayPal.php | 22 +- .../QMore/Return/Success/SepaDD.php | 22 +- .../Return/Success/Sofortueberweisung.php | 46 ++++ library/QentaCEE/QMore/ReturnFactory.php | 141 ++++++++++++ .../QPay/Config/client.config.php | 14 +- .../QPay/Config/user.config.php | 14 +- .../{WirecardCEE => QentaCEE}/QPay/Error.php | 22 +- .../QPay/Exception/BadMethodCallException.php | 42 ++++ .../QPay}/Exception/ExceptionInterface.php | 20 +- .../Exception/InvalidArgumentException.php} | 22 +- .../Exception/InvalidParamLengthException.php | 42 ++++ .../Exception/InvalidResponseException.php | 42 ++++ .../QPay/FrontendClient.php | 138 ++++++------ .../QPay/MobileDetect.php | 16 +- .../{WirecardCEE => QentaCEE}/QPay/Module.php | 20 +- .../QPay/PaymentType.php | 20 +- .../QPay}/Request/Backend/TransferFund.php | 20 +- .../Request/Backend/TransferFund/Existing.php | 22 +- .../Request/Backend/TransferFund/Moneta.php | 22 +- .../Request/Backend/TransferFund/SepaCT.php | 20 +- .../Backend/TransferFund/SkrillWallet.php | 22 +- .../QPay/Response/Initiation.php | 22 +- .../QPay/Response/ResponseAbstract.php | 24 +- .../QPay/Response/Toolkit/ApproveReversal.php | 20 +- .../QPay/Response/Toolkit/Deposit.php | 20 +- .../QPay/Response/Toolkit/DepositReversal.php | 20 +- .../QPay/Response/Toolkit/FinancialObject.php | 20 +- .../QPay/Response/Toolkit/GetOrderDetails.php | 28 +-- .../QPay/Response/Toolkit/Order.php | 44 ++-- .../QPay/Response/Toolkit/Order/Credit.php | 22 +- .../Response/Toolkit/Order/CreditIterator.php | 20 +- .../Response/Toolkit/Order/OrderIterator.php | 20 +- .../QPay/Response/Toolkit/Order/Payment.php | 22 +- .../Response/Toolkit/Order/Payment/Ideal.php | 20 +- .../Response/Toolkit/Order/Payment/Paypal.php | 20 +- .../Order/Payment/Sofortueberweisung.php | 20 +- .../Toolkit/Order/PaymentIterator.php | 20 +- .../QPay/Response/Toolkit/RecurPayment.php | 20 +- .../QPay/Response/Toolkit/Refund.php} | 22 +- .../QPay/Response/Toolkit/RefundReversal.php | 20 +- .../Response/Toolkit/ResponseAbstract.php | 20 +- .../QPay/Response/Toolkit/TransferFund.php} | 22 +- .../QMore => QentaCEE/QPay}/Return/Cancel.php | 20 +- .../QPay/Return/Failure.php | 24 +- .../QPay/Return/Pending.php | 20 +- .../QPay/Return/Success.php | 20 +- .../QPay/Return/Success/CreditCard.php | 20 +- .../QPay/Return/Success/Ideal.php | 20 +- .../QPay/Return/Success/PayPal.php | 20 +- .../Return/Success/Sofortueberweisung.php | 20 +- library/QentaCEE/QPay/ReturnFactory.php | 138 ++++++++++++ .../QPay/ToolkitClient.php | 104 ++++----- .../Stdlib/Basket.php | 44 ++-- .../Stdlib/Basket/Item.php | 36 +-- .../Stdlib/Client/ClientAbstract.php | 74 +++--- .../Client/Exception/ExceptionInterface.php | 20 +- .../Exception/InvalidResponseException.php | 20 +- .../Stdlib/Config.php | 26 +-- .../Stdlib/Config/client.config.php | 14 +- .../Stdlib/ConsumerData.php | 50 ++-- .../Stdlib/ConsumerData/Address.php | 42 ++-- .../Stdlib/Error.php | 24 +- .../Stdlib/Exception/ExceptionInterface.php | 20 +- .../Exception/InvalidArgumentException.php} | 20 +- .../Exception/InvalidFormatException.php | 42 ++++ .../Exception/InvalidResponseException.php | 42 ++++ .../Stdlib/Exception/InvalidTypeException.php | 42 ++++ .../Exception/InvalidValueException.php} | 20 +- .../Exception/UnexpectedValueException.php | 42 ++++ .../Stdlib/Fingerprint.php | 32 +-- .../Stdlib/FingerprintOrder.php | 26 +-- .../Stdlib/Module.php | 20 +- .../Stdlib/Module/ModuleAbstract.php | 20 +- .../Stdlib/Module/ModuleInterface.php | 20 +- .../Stdlib/PaymentTypeAbstract.php | 20 +- .../Stdlib/Response/ResponseAbstract.php | 26 +-- .../Stdlib/Return/Cancel.php | 20 +- .../Stdlib/Return/Failure.php | 20 +- .../Stdlib/Return/Pending.php | 28 +-- .../Stdlib/Return/ReturnAbstract.php | 30 +-- .../Stdlib/Return/Success.php | 28 +-- .../Stdlib/Return/Success/CreditCard.php | 20 +- .../Stdlib/Return/Success/Ideal.php | 20 +- .../Stdlib/Return/Success/PayPal.php | 20 +- .../Stdlib/Return/Success/SepaDD.php | 20 +- .../Return/Success/Sofortueberweisung.php | 20 +- .../Stdlib/ReturnFactoryAbstract.php | 20 +- .../Stdlib/SerialApi.php | 28 +-- .../Stdlib/Validate/Exception.php | 14 +- .../Stdlib/Validate/Fingerprint.php | 60 ++--- .../Stdlib/Validate/Interface.php | 16 +- .../Stdlib/Validate/ValidateAbstract.php | 28 +-- .../Exception/InvalidArgumentException.php | 42 ---- .../Exception/InvalidParamLengthException.php | 42 ---- .../Exception/InvalidResponseException.php | 42 ---- .../Return/Success/Sofortueberweisung.php | 46 ---- library/WirecardCEE/QMore/ReturnFactory.php | 141 ------------ .../Exception/InvalidArgumentException.php | 42 ---- .../Exception/InvalidResponseException.php | 42 ---- library/WirecardCEE/QPay/ReturnFactory.php | 138 ------------ .../Exception/InvalidArgumentException.php | 42 ---- .../Exception/InvalidResponseException.php | 42 ---- .../Exception/InvalidValueException.php | 42 ---- .../Exception/UnexpectedValueException.php | 42 ---- .../QMore/BackendClientTest.php | 88 ++++---- .../InvalidArgumentExceptionTest.php} | 37 +-- .../QMore/DataStorage/Request/ReadTest.php | 42 ++-- .../DataStorage/Response/InitiationTest.php | 28 +-- .../QMore/DataStorage/Response/ReadTest.php | 22 +- .../QMore/DataStorageClientTest.php | 70 +++--- .../QMore/FrontendClientTest.php | 146 ++++++------ .../QMore/ModuleTest.php | 30 +-- .../QMore}/PaymentTypeTest.php | 42 ++-- .../Response/Backend/ApproveReversalTest.php | 22 +- .../Response/Backend/DepositReversalTest.php | 20 +- .../QMore/Response/Backend/DepositTest.php | 28 +-- .../Response/Backend/GetOrderDetailsTest.php | 22 +- .../Response/Backend/Order/CreditTest.php | 20 +- .../Response/Backend/Order/IteratorTest.php | 22 +- .../Backend/Order/Payment/IdealTest.php | 20 +- .../Backend/Order/Payment/PaypalTest.php | 20 +- .../Order/Payment/SofortueberweisungTest.php | 20 +- .../Response/Backend/Order/PaymentTest.php | 22 +- .../QMore/Response/Backend/OrderTest.php | 20 +- .../QMore/Response/Backend/OrderTest1.php | 20 +- .../Response/Backend/RecurPaymentTest.php | 22 +- .../Response/Backend/RefundReversalTest.php | 22 +- .../QMore/Response/Backend/RefundTest.php | 28 +-- .../QMore/Response/InitiationTest.php | 26 +-- .../QMore/Return/CancelTest.php | 20 +- .../QMore/Return/FailureTest.php | 16 +- .../QMore/Return/ReturnAbstractTest.php | 24 +- .../QMore/Return/Success/CreditCardTest.php | 20 +- .../QMore}/Return/Success/IdealTest.php | 22 +- .../QMore/Return/Success/PaypalTest.php | 20 +- .../Return/Success/SofortueberweisungTest.php | 20 +- .../QMore/Return/SuccessTest.php | 32 +-- tests/QentaCEE/QMore/ReturnFactoryTest.php | 213 ++++++++++++++++++ .../QPay/ErrorTest.php | 22 +- .../Exception/BadMethodCallExceptionTest.php | 99 ++++++++ .../InvalidArgumentExceptionTest.php | 32 +-- .../InvalidParamLengthExceptionTest.php} | 32 +-- .../InvalidResponseExceptionTest.php | 99 ++++++++ .../QPay/FrontendClientTest.php | 144 ++++++------ .../QPay/MobileDetectTest.php | 16 +- .../QPay/ModuleTest.php | 30 +-- .../QPay}/PaymentTypeTest.php | 42 ++-- .../QPay/Response/InitiationTest.php | 26 +-- .../QPay/Response/ResponseAbstractTest.php | 20 +- .../Response/Toolkit/ApproveReversalTest.php | 22 +- .../Response/Toolkit/DepositReversalTest.php | 22 +- .../QPay/Response/Toolkit/DepositTest.php | 28 +-- .../Response/Toolkit/GetOrderDetailsTest.php | 20 +- .../Response/Toolkit/Order/CreditTest.php | 20 +- .../Response/Toolkit/Order/IteratorTest.php | 22 +- .../Toolkit/Order/Payment/IdealTest.php | 20 +- .../Toolkit/Order/Payment/PaypalTest.php | 20 +- .../Order/Payment/SofortueberweisungTest.php | 20 +- .../Response/Toolkit/Order/PaymentTest.php | 20 +- .../QPay/Response/Toolkit/OrderTest.php | 20 +- .../QPay/Response/Toolkit/OrderTest1.php | 20 +- .../Response/Toolkit/RecurPaymentTest.php | 18 +- .../Response/Toolkit/RefundReversalTest.php | 18 +- .../QPay/Response/Toolkit/RefundTest.php | 24 +- .../QPay/Return/CancelTest.php | 20 +- .../QPay/Return/FailureTest.php | 18 +- .../QPay/Return/PendingTest.php | 20 +- .../QPay/Return/ReturnAbstractTest.php | 24 +- .../QPay/Return/Success/CreditCardTest.php | 20 +- .../QPay}/Return/Success/IdealTest.php | 22 +- .../QPay/Return/Success/PaypalTest.php | 20 +- .../Return/Success/SofortueberweisungTest.php | 20 +- .../QPay/Return/SuccessTest.php | 32 +-- tests/QentaCEE/QPay/ReturnFactoryTest.php | 213 ++++++++++++++++++ .../QPay/ToolkitClientTest.php | 70 +++--- .../Stdlib/Basket/ItemTest.php | 18 +- .../Stdlib/BasketTest.php | 26 +-- .../Stdlib/Client/ClientAbstractTest.php | 20 +- .../InvalidResponseExceptionTest.php | 30 +-- .../Stdlib/ConsumerData/AddressTest.php | 20 +- .../Stdlib/ConsumerDataTest.php | 22 +- .../Stdlib/ErrorTest.php | 20 +- .../InvalidArgumentExceptionTest.php | 99 ++++++++ .../Exception/InvalidFormatExceptionTest.php | 32 +-- .../UnexpectedValueExceptionTest.php | 99 ++++++++ .../Stdlib/FingerprintOrderTest.php | 24 +- .../Stdlib/FingerprintTest.php | 56 ++--- .../Stdlib/Module/ModuleAbstractTest.php | 20 +- .../Stdlib/ModuleTest.php | 18 +- .../Stdlib/PaymentTypeAbstractTest.php | 48 ++-- .../Stdlib/SerialApiTest.php | 38 ++-- .../Stdlib/Validate/FingerprintTest.php | 54 ++--- .../InvalidArgumentExceptionTest.php | 100 -------- tests/WirecardCEE/QMore/ReturnFactoryTest.php | 213 ------------------ .../InvalidParamLengthExceptionTest.php | 99 -------- tests/WirecardCEE/QPay/ReturnFactoryTest.php | 213 ------------------ .../InvalidArgumentExceptionTest.php | 99 -------- .../UnexpectedValueExceptionTest.php | 99 -------- tests/bootstrap.php | 12 +- tests/configuration.xml | 36 +-- tests/confirm.php | 12 +- 254 files changed, 4493 insertions(+), 4494 deletions(-) rename library/{WirecardCEE => QentaCEE}/QMore/BackendClient.php (76%) rename library/{WirecardCEE => QentaCEE}/QMore/Config/client.config.php (69%) rename library/{WirecardCEE => QentaCEE}/QMore/Config/user.config.php (68%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorage/Exception/ExceptionInterface.php (58%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorage/Exception/InvalidArgumentException.php (55%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorage/Request/Read.php (64%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorage/Response/Initiation.php (73%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorage/Response/Read.php (87%) rename library/{WirecardCEE => QentaCEE}/QMore/DataStorageClient.php (80%) rename library/{WirecardCEE => QentaCEE}/QMore/Error.php (71%) rename library/{WirecardCEE/Stdlib/Exception/InvalidTypeException.php => QentaCEE/QMore/Exception/BadMethodCallException.php} (56%) rename library/{WirecardCEE/QPay => QentaCEE/QMore}/Exception/ExceptionInterface.php (58%) rename library/{WirecardCEE/QPay/Exception/BadMethodCallException.php => QentaCEE/QMore/Exception/InvalidArgumentException.php} (56%) create mode 100644 library/QentaCEE/QMore/Exception/InvalidParamLengthException.php create mode 100644 library/QentaCEE/QMore/Exception/InvalidResponseException.php rename library/{WirecardCEE => QentaCEE}/QMore/FrontendClient.php (81%) rename library/{WirecardCEE => QentaCEE}/QMore/Module.php (67%) rename library/{WirecardCEE => QentaCEE}/QMore/PaymentType.php (58%) rename library/{WirecardCEE/QPay => QentaCEE/QMore}/Request/Backend/TransferFund.php (77%) rename library/{WirecardCEE => QentaCEE}/QMore/Request/Backend/TransferFund/Existing.php (72%) rename library/{WirecardCEE => QentaCEE}/QMore/Request/Backend/TransferFund/Moneta.php (73%) rename library/{WirecardCEE => QentaCEE}/QMore/Request/Backend/TransferFund/SepaCT.php (75%) rename library/{WirecardCEE => QentaCEE}/QMore/Request/Backend/TransferFund/SkrillWallet.php (73%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/ApproveReversal.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Deposit.php (64%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/DepositReversal.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/FinancialObject.php (70%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/GetFinancialInstitutions.php (59%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/GetOrderDetails.php (68%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order.php (81%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Credit.php (85%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/CreditIterator.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/OrderIterator.php (75%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment.php (87%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/Ideal.php (72%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/Paypal.php (88%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php (82%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/PaymentIterator.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/RecurPayment.php (63%) rename library/{WirecardCEE/QPay/Response/Toolkit/TransferFund.php => QentaCEE/QMore/Response/Backend/Refund.php} (63%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/RefundReversal.php (57%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Backend/ResponseAbstract.php (63%) rename library/{WirecardCEE/QMore/Response/Backend/Refund.php => QentaCEE/QMore/Response/Backend/TransferFund.php} (66%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/Initiation.php (63%) rename library/{WirecardCEE => QentaCEE}/QMore/Response/ResponseAbstract.php (77%) rename library/{WirecardCEE/QPay => QentaCEE/QMore}/Return/Cancel.php (58%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Failure.php (71%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Pending.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Success.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Success/CreditCard.php (55%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Success/Ideal.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Success/PayPal.php (56%) rename library/{WirecardCEE => QentaCEE}/QMore/Return/Success/SepaDD.php (56%) create mode 100644 library/QentaCEE/QMore/Return/Success/Sofortueberweisung.php create mode 100644 library/QentaCEE/QMore/ReturnFactory.php rename library/{WirecardCEE => QentaCEE}/QPay/Config/client.config.php (67%) rename library/{WirecardCEE => QentaCEE}/QPay/Config/user.config.php (68%) rename library/{WirecardCEE => QentaCEE}/QPay/Error.php (60%) create mode 100644 library/QentaCEE/QPay/Exception/BadMethodCallException.php rename library/{WirecardCEE/QMore => QentaCEE/QPay}/Exception/ExceptionInterface.php (58%) rename library/{WirecardCEE/QPay/Exception/InvalidParamLengthException.php => QentaCEE/QPay/Exception/InvalidArgumentException.php} (56%) create mode 100644 library/QentaCEE/QPay/Exception/InvalidParamLengthException.php create mode 100644 library/QentaCEE/QPay/Exception/InvalidResponseException.php rename library/{WirecardCEE => QentaCEE}/QPay/FrontendClient.php (82%) rename library/{WirecardCEE => QentaCEE}/QPay/MobileDetect.php (70%) rename library/{WirecardCEE => QentaCEE}/QPay/Module.php (66%) rename library/{WirecardCEE => QentaCEE}/QPay/PaymentType.php (59%) rename library/{WirecardCEE/QMore => QentaCEE/QPay}/Request/Backend/TransferFund.php (77%) rename library/{WirecardCEE => QentaCEE}/QPay/Request/Backend/TransferFund/Existing.php (72%) rename library/{WirecardCEE => QentaCEE}/QPay/Request/Backend/TransferFund/Moneta.php (73%) rename library/{WirecardCEE => QentaCEE}/QPay/Request/Backend/TransferFund/SepaCT.php (76%) rename library/{WirecardCEE => QentaCEE}/QPay/Request/Backend/TransferFund/SkrillWallet.php (73%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Initiation.php (61%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/ResponseAbstract.php (64%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/ApproveReversal.php (57%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Deposit.php (64%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/DepositReversal.php (57%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/FinancialObject.php (67%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/GetOrderDetails.php (69%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order.php (83%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Credit.php (85%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/CreditIterator.php (57%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/OrderIterator.php (74%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment.php (87%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/Ideal.php (72%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/Paypal.php (88%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php (82%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/PaymentIterator.php (56%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/RecurPayment.php (63%) rename library/{WirecardCEE/QMore/Response/Backend/TransferFund.php => QentaCEE/QPay/Response/Toolkit/Refund.php} (62%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/RefundReversal.php (57%) rename library/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/ResponseAbstract.php (67%) rename library/{WirecardCEE/QPay/Response/Toolkit/Refund.php => QentaCEE/QPay/Response/Toolkit/TransferFund.php} (64%) rename library/{WirecardCEE/QMore => QentaCEE/QPay}/Return/Cancel.php (58%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Failure.php (61%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Pending.php (58%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Success.php (58%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Success/CreditCard.php (57%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Success/Ideal.php (58%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Success/PayPal.php (58%) rename library/{WirecardCEE => QentaCEE}/QPay/Return/Success/Sofortueberweisung.php (56%) create mode 100644 library/QentaCEE/QPay/ReturnFactory.php rename library/{WirecardCEE => QentaCEE}/QPay/ToolkitClient.php (75%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Basket.php (72%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Basket/Item.php (85%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Client/ClientAbstract.php (77%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Client/Exception/ExceptionInterface.php (56%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Client/Exception/InvalidResponseException.php (55%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Config.php (83%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Config/client.config.php (66%) rename library/{WirecardCEE => QentaCEE}/Stdlib/ConsumerData.php (81%) rename library/{WirecardCEE => QentaCEE}/Stdlib/ConsumerData/Address.php (81%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Error.php (72%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Exception/ExceptionInterface.php (58%) rename library/{WirecardCEE/QMore/Exception/BadMethodCallException.php => QentaCEE/Stdlib/Exception/InvalidArgumentException.php} (56%) create mode 100644 library/QentaCEE/Stdlib/Exception/InvalidFormatException.php create mode 100644 library/QentaCEE/Stdlib/Exception/InvalidResponseException.php create mode 100644 library/QentaCEE/Stdlib/Exception/InvalidTypeException.php rename library/{WirecardCEE/Stdlib/Exception/InvalidFormatException.php => QentaCEE/Stdlib/Exception/InvalidValueException.php} (56%) create mode 100644 library/QentaCEE/Stdlib/Exception/UnexpectedValueException.php rename library/{WirecardCEE => QentaCEE}/Stdlib/Fingerprint.php (72%) rename library/{WirecardCEE => QentaCEE}/Stdlib/FingerprintOrder.php (82%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Module.php (62%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Module/ModuleAbstract.php (65%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Module/ModuleInterface.php (66%) rename library/{WirecardCEE => QentaCEE}/Stdlib/PaymentTypeAbstract.php (89%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Response/ResponseAbstract.php (75%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Cancel.php (60%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Failure.php (71%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Pending.php (66%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/ReturnAbstract.php (77%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success.php (78%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success/CreditCard.php (72%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success/Ideal.php (69%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success/PayPal.php (81%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success/SepaDD.php (70%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Return/Success/Sofortueberweisung.php (76%) rename library/{WirecardCEE => QentaCEE}/Stdlib/ReturnFactoryAbstract.php (77%) rename library/{WirecardCEE => QentaCEE}/Stdlib/SerialApi.php (86%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Validate/Exception.php (61%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Validate/Fingerprint.php (75%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Validate/Interface.php (72%) rename library/{WirecardCEE => QentaCEE}/Stdlib/Validate/ValidateAbstract.php (85%) delete mode 100644 library/WirecardCEE/QMore/Exception/InvalidArgumentException.php delete mode 100644 library/WirecardCEE/QMore/Exception/InvalidParamLengthException.php delete mode 100644 library/WirecardCEE/QMore/Exception/InvalidResponseException.php delete mode 100644 library/WirecardCEE/QMore/Return/Success/Sofortueberweisung.php delete mode 100644 library/WirecardCEE/QMore/ReturnFactory.php delete mode 100644 library/WirecardCEE/QPay/Exception/InvalidArgumentException.php delete mode 100644 library/WirecardCEE/QPay/Exception/InvalidResponseException.php delete mode 100644 library/WirecardCEE/QPay/ReturnFactory.php delete mode 100644 library/WirecardCEE/Stdlib/Exception/InvalidArgumentException.php delete mode 100644 library/WirecardCEE/Stdlib/Exception/InvalidResponseException.php delete mode 100644 library/WirecardCEE/Stdlib/Exception/InvalidValueException.php delete mode 100644 library/WirecardCEE/Stdlib/Exception/UnexpectedValueException.php rename tests/{WirecardCEE => QentaCEE}/QMore/BackendClientTest.php (63%) rename tests/{WirecardCEE/QPay/Exception/BadMethodCallExceptionTest.php => QentaCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php} (64%) rename tests/{WirecardCEE => QentaCEE}/QMore/DataStorage/Request/ReadTest.php (63%) rename tests/{WirecardCEE => QentaCEE}/QMore/DataStorage/Response/InitiationTest.php (70%) rename tests/{WirecardCEE => QentaCEE}/QMore/DataStorage/Response/ReadTest.php (71%) rename tests/{WirecardCEE => QentaCEE}/QMore/DataStorageClientTest.php (69%) rename tests/{WirecardCEE => QentaCEE}/QMore/FrontendClientTest.php (65%) rename tests/{WirecardCEE => QentaCEE}/QMore/ModuleTest.php (54%) rename tests/{WirecardCEE/QPay => QentaCEE/QMore}/PaymentTypeTest.php (54%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/ApproveReversalTest.php (74%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/DepositReversalTest.php (76%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/DepositTest.php (77%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/GetOrderDetailsTest.php (73%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/CreditTest.php (82%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/IteratorTest.php (70%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/IdealTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/PaypalTest.php (83%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php (79%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/Order/PaymentTest.php (81%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/OrderTest.php (85%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/OrderTest1.php (85%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/RecurPaymentTest.php (77%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/RefundReversalTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/Backend/RefundTest.php (78%) rename tests/{WirecardCEE => QentaCEE}/QMore/Response/InitiationTest.php (65%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/CancelTest.php (70%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/FailureTest.php (76%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/ReturnAbstractTest.php (72%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/Success/CreditCardTest.php (80%) rename tests/{WirecardCEE/QPay => QentaCEE/QMore}/Return/Success/IdealTest.php (80%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/Success/PaypalTest.php (85%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/Success/SofortueberweisungTest.php (82%) rename tests/{WirecardCEE => QentaCEE}/QMore/Return/SuccessTest.php (80%) create mode 100644 tests/QentaCEE/QMore/ReturnFactoryTest.php rename tests/{WirecardCEE => QentaCEE}/QPay/ErrorTest.php (58%) create mode 100644 tests/QentaCEE/QPay/Exception/BadMethodCallExceptionTest.php rename tests/{WirecardCEE => QentaCEE}/QPay/Exception/InvalidArgumentExceptionTest.php (63%) rename tests/{WirecardCEE/QPay/Exception/InvalidResponseExceptionTest.php => QentaCEE/QPay/Exception/InvalidParamLengthExceptionTest.php} (66%) create mode 100644 tests/QentaCEE/QPay/Exception/InvalidResponseExceptionTest.php rename tests/{WirecardCEE => QentaCEE}/QPay/FrontendClientTest.php (65%) rename tests/{WirecardCEE => QentaCEE}/QPay/MobileDetectTest.php (76%) rename tests/{WirecardCEE => QentaCEE}/QPay/ModuleTest.php (55%) rename tests/{WirecardCEE/QMore => QentaCEE/QPay}/PaymentTypeTest.php (52%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/InitiationTest.php (65%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/ResponseAbstractTest.php (61%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/ApproveReversalTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/DepositReversalTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/DepositTest.php (77%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/GetOrderDetailsTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/CreditTest.php (82%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/IteratorTest.php (70%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/IdealTest.php (76%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/PaypalTest.php (83%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php (79%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/Order/PaymentTest.php (83%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/OrderTest.php (85%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/OrderTest1.php (85%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/RecurPaymentTest.php (80%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/RefundReversalTest.php (78%) rename tests/{WirecardCEE => QentaCEE}/QPay/Response/Toolkit/RefundTest.php (80%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/CancelTest.php (71%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/FailureTest.php (71%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/PendingTest.php (78%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/ReturnAbstractTest.php (72%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/Success/CreditCardTest.php (80%) rename tests/{WirecardCEE/QMore => QentaCEE/QPay}/Return/Success/IdealTest.php (80%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/Success/PaypalTest.php (85%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/Success/SofortueberweisungTest.php (82%) rename tests/{WirecardCEE => QentaCEE}/QPay/Return/SuccessTest.php (81%) create mode 100644 tests/QentaCEE/QPay/ReturnFactoryTest.php rename tests/{WirecardCEE => QentaCEE}/QPay/ToolkitClientTest.php (71%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/Basket/ItemTest.php (73%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/BasketTest.php (75%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/Client/ClientAbstractTest.php (76%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/Client/Exception/InvalidResponseExceptionTest.php (63%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/ConsumerData/AddressTest.php (84%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/ConsumerDataTest.php (84%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/ErrorTest.php (70%) create mode 100644 tests/QentaCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php rename tests/{WirecardCEE => QentaCEE}/Stdlib/Exception/InvalidFormatExceptionTest.php (62%) create mode 100644 tests/QentaCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php rename tests/{WirecardCEE => QentaCEE}/Stdlib/FingerprintOrderTest.php (72%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/FingerprintTest.php (61%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/Module/ModuleAbstractTest.php (65%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/ModuleTest.php (61%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/PaymentTypeAbstractTest.php (50%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/SerialApiTest.php (86%) rename tests/{WirecardCEE => QentaCEE}/Stdlib/Validate/FingerprintTest.php (71%) delete mode 100644 tests/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php delete mode 100644 tests/WirecardCEE/QMore/ReturnFactoryTest.php delete mode 100644 tests/WirecardCEE/QPay/Exception/InvalidParamLengthExceptionTest.php delete mode 100644 tests/WirecardCEE/QPay/ReturnFactoryTest.php delete mode 100644 tests/WirecardCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php delete mode 100644 tests/WirecardCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php diff --git a/README.md b/README.md index 89d4900..8ca7467 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# ClientLibrary +# checkout-client-library -[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/wirecard/ClientLibrary/master/LICENSE) +[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/qenta-cee/checkout-client-library/master/LICENSE) [![PHP v7.2](https://img.shields.io/badge/php-v7.2-green.svg)](http://www.php.net) [![PHP v7.3](https://img.shields.io/badge/php-v7.3-green.svg)](http://www.php.net) [![PHP v7.4](https://img.shields.io/badge/php-v7.4-green.svg)](http://www.php.net) Client library used by QENTA Checkout Page and Seamless plugins for payment processing. - diff --git a/composer.json b/composer.json index 310383e..ec68cdb 100755 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "homepage": "https://www.qenta-cee.at", "support": { "email": "support@qenta.com", - "docs": "https://guides.wirecard.com" + "docs": "https://guides.qenta.com" }, "require": { "php": "~7.2.5|~7.3.0|~7.4.0", @@ -19,7 +19,7 @@ }, "autoload": { "psr-0": { - "WirecardCEE": "library" + "QentaCEE": "library" } }, "prefer-stable" : true diff --git a/library/WirecardCEE/QMore/BackendClient.php b/library/QentaCEE/QMore/BackendClient.php similarity index 76% rename from library/WirecardCEE/QMore/BackendClient.php rename to library/QentaCEE/QMore/BackendClient.php index 469d921..1c3337c 100644 --- a/library/WirecardCEE/QMore/BackendClient.php +++ b/library/QentaCEE/QMore/BackendClient.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * @name WirecardCEE_QMore_BackendClient - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_BackendClient + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAbstract +class QentaCEE_QMore_BackendClient extends QentaCEE_Stdlib_Client_ClientAbstract { /** * Password @@ -247,27 +247,27 @@ class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAb protected $_fingerprintOrderType = 1; /** - * Creates an instance of an WirecardCEE_QMore_BackendClient object. + * Creates an instance of an QentaCEE_QMore_BackendClient object. * - * @param array|WirecardCEE_Stdlib_Config $config + * @param array|QentaCEE_Stdlib_Config $config */ public function __construct($config = null) { - $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); //if no config was sent fallback to default config file if (is_null($config)) { - $config = WirecardCEE_QMore_Module::getConfig(); + $config = QentaCEE_QMore_Module::getConfig(); } - if (is_array($config) && isset( $config['WirecardCEEQMoreConfig'] )) { - // we only need the WirecardCEEQMoreConfig here - $config = $config['WirecardCEEQMoreConfig']; + if (is_array($config) && isset( $config['QentaCEEQMoreConfig'] )) { + // we only need the QentaCEEQMoreConfig here + $config = $config['QentaCEEQMoreConfig']; } // let's store configuration details in internal objects - $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig()); + $this->oUserConfig = is_object($config) ? $config : new QentaCEE_Stdlib_Config($config); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QMore_Module::getClientConfig()); // now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET // exist in $this->oUserConfig object that we created from config array @@ -279,22 +279,22 @@ public function __construct($config = null) // If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || is_null($sCustomerId)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || is_null($sLanguage)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || is_null($sSecret)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } if (empty( $sPassword ) || is_null($sPassword)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.', __METHOD__)); } @@ -333,14 +333,14 @@ public function getFinancialInstitutions($paymentType, $bankCountry = null, $tra $this->_fingerprintOrder->setOrder($order); - return new WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send()); + return new QentaCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send()); } /** * Refund * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_Refund + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_Refund */ public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null) { @@ -363,14 +363,14 @@ public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null) )); $this->_appendBasketFingerprintOrder($basket); - return new WirecardCEE_QMore_Response_Backend_Refund($this->_send()); + return new QentaCEE_QMore_Response_Backend_Refund($this->_send()); } /** * Refund reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_RefundReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_RefundReversal */ public function refundReversal($iOrderNumber, $iCreditNumber) { @@ -389,14 +389,14 @@ public function refundReversal($iOrderNumber, $iCreditNumber) self::CREDIT_NUMBER )); - return new WirecardCEE_QMore_Response_Backend_RefundReversal($this->_send()); + return new QentaCEE_QMore_Response_Backend_RefundReversal($this->_send()); } /** * Recur payment * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_RecurPayment + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_RecurPayment */ public function recurPayment( $iSourceOrderNumber, @@ -436,7 +436,7 @@ public function recurPayment( self::CURRENCY )); - return new WirecardCEE_QMore_Response_Backend_RecurPayment($this->_send()); + return new QentaCEE_QMore_Response_Backend_RecurPayment($this->_send()); } /** @@ -444,8 +444,8 @@ public function recurPayment( * * @param int $iOrderNumber * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_GetOrderDetails */ public function getOrderDetails($iOrderNumber) { @@ -461,14 +461,14 @@ public function getOrderDetails($iOrderNumber) self::ORDER_NUMBER )); - return new WirecardCEE_QMore_Response_Backend_GetOrderDetails($this->_send()); + return new QentaCEE_QMore_Response_Backend_GetOrderDetails($this->_send()); } /** * Approve reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_ApproveReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_ApproveReversal */ public function approveReversal($iOrderNumber) { @@ -484,14 +484,14 @@ public function approveReversal($iOrderNumber) self::ORDER_NUMBER )); - return new WirecardCEE_QMore_Response_Backend_ApproveReversal($this->_send()); + return new QentaCEE_QMore_Response_Backend_ApproveReversal($this->_send()); } /** * Deposit * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_Deposit + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_Deposit */ public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null) { @@ -514,14 +514,14 @@ public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null) )); $this->_appendBasketFingerprintOrder($basket); - return new WirecardCEE_QMore_Response_Backend_Deposit($this->_send()); + return new QentaCEE_QMore_Response_Backend_Deposit($this->_send()); } /** * Deposit reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QMore_Response_Backend_DepositReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QMore_Response_Backend_DepositReversal */ public function depositReversal($iOrderNumber, $iPaymentNumber) { @@ -540,37 +540,37 @@ public function depositReversal($iOrderNumber, $iPaymentNumber) self::PAYMENT_NUMBER )); - return new WirecardCEE_QMore_Response_Backend_DepositReversal($this->_send()); + return new QentaCEE_QMore_Response_Backend_DepositReversal($this->_send()); } /** * TransferFund * - * @throws WirecardCEE_Stdlib_Exception_InvalidTypeException - * @return WirecardCEE_QMore_Request_Backend_TransferFund + * @throws QentaCEE_Stdlib_Exception_InvalidTypeException + * @return QentaCEE_QMore_Request_Backend_TransferFund */ public function transferFund($fundTransferType) { switch ($fundTransferType) { case self::$TRANSFER_FUND_TYPE_EXISTING: - $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig); + $client = new QentaCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_SKIRLLWALLET: - $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig); + $client = new QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_MONETA: - $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig); + $client = new QentaCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_SEPACT: - $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig); + $client = new QentaCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig); break; default: - throw new WirecardCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType'); + throw new QentaCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType'); } $client->setType($fundTransferType); @@ -587,7 +587,7 @@ public function transferFund($fundTransferType) /** * Backend URL for POST-Requests * - * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() * @return string */ protected function _getRequestUrl() diff --git a/library/WirecardCEE/QMore/Config/client.config.php b/library/QentaCEE/QMore/Config/client.config.php similarity index 69% rename from library/WirecardCEE/QMore/Config/client.config.php rename to library/QentaCEE/QMore/Config/client.config.php index 596d775..9578743 100644 --- a/library/WirecardCEE/QMore/Config/client.config.php +++ b/library/QentaCEE/QMore/Config/client.config.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,7 +34,7 @@ 'DATA_STORAGE_URL' => 'https://checkout.wirecard.com/seamless/dataStorage', 'FRONTEND_URL' => 'https://checkout.wirecard.com/seamless/frontend', 'BACKEND_URL' => 'https://checkout.wirecard.com/seamless/backend', - 'MODULE_NAME' => 'WirecardCEE_QMore', + 'MODULE_NAME' => 'QentaCEE_QMore', 'MODULE_VERSION' => '3.3.0', 'DEPENDENCIES' => array(), 'USE_DEBUG' => false diff --git a/library/WirecardCEE/QMore/Config/user.config.php b/library/QentaCEE/QMore/Config/user.config.php similarity index 68% rename from library/WirecardCEE/QMore/Config/user.config.php rename to library/QentaCEE/QMore/Config/user.config.php index abb49eb..f1677ce 100644 --- a/library/WirecardCEE/QMore/Config/user.config.php +++ b/library/QentaCEE/QMore/Config/user.config.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -36,7 +36,7 @@ * Please input your details */ return Array( - 'WirecardCEEQMoreConfig' => Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'qmore', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/library/WirecardCEE/QMore/DataStorage/Exception/ExceptionInterface.php b/library/QentaCEE/QMore/DataStorage/Exception/ExceptionInterface.php similarity index 58% rename from library/WirecardCEE/QMore/DataStorage/Exception/ExceptionInterface.php rename to library/QentaCEE/QMore/DataStorage/Exception/ExceptionInterface.php index c676d04..b0a91ae 100644 --- a/library/WirecardCEE/QMore/DataStorage/Exception/ExceptionInterface.php +++ b/library/QentaCEE/QMore/DataStorage/Exception/ExceptionInterface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorage_Exception_ExceptionInterface + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage DataStorage_Exception */ -interface WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface +interface QentaCEE_QMore_DataStorage_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentException.php b/library/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentException.php similarity index 55% rename from library/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentException.php rename to library/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentException.php index 27a8c89..aa7a615 100644 --- a/library/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentException.php +++ b/library/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentException.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage DataStorage_Exception */ -class WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException extends InvalidArgumentException implements WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface +class QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException extends InvalidArgumentException implements QentaCEE_QMore_DataStorage_Exception_ExceptionInterface { } diff --git a/library/WirecardCEE/QMore/DataStorage/Request/Read.php b/library/QentaCEE/QMore/DataStorage/Request/Read.php similarity index 64% rename from library/WirecardCEE/QMore/DataStorage/Request/Read.php rename to library/QentaCEE/QMore/DataStorage/Request/Read.php index e480345..a1e7c5f 100644 --- a/library/WirecardCEE/QMore/DataStorage/Request/Read.php +++ b/library/QentaCEE/QMore/DataStorage/Request/Read.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,12 +31,12 @@ */ /** - * @name WirecardCEE_QMore_DataStorage_Request_Read - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorage_Request_Read + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage DataStorage_Request */ -class WirecardCEE_QMore_DataStorage_Request_Read extends WirecardCEE_Stdlib_Client_ClientAbstract +class QentaCEE_QMore_DataStorage_Request_Read extends QentaCEE_Stdlib_Client_ClientAbstract { /** * Storage ID field name @@ -56,25 +56,25 @@ class WirecardCEE_QMore_DataStorage_Request_Read extends WirecardCEE_Stdlib_Clie * * @param array $aConfig * - * @throws WirecardCEE_QMore_Exception_InvalidArgumentException + * @throws QentaCEE_QMore_Exception_InvalidArgumentException */ public function __construct($aConfig = null) { - $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); //if no config was sent fallback to default config file if (is_null($aConfig)) { - $aConfig = WirecardCEE_QMore_Module::getConfig(); + $aConfig = QentaCEE_QMore_Module::getConfig(); } - if (isset( $aConfig['WirecardCEEQMoreConfig'] )) { - //we only need the WirecardCEEQMoreConfig here - $aConfig = $aConfig['WirecardCEEQMoreConfig']; + if (isset( $aConfig['QentaCEEQMoreConfig'] )) { + //we only need the QentaCEEQMoreConfig here + $aConfig = $aConfig['QentaCEEQMoreConfig']; } //let's store configuration details in internal objects - $this->oUserConfig = new WirecardCEE_Stdlib_Config($aConfig); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig()); + $this->oUserConfig = new QentaCEE_Stdlib_Config($aConfig); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QMore_Module::getClientConfig()); //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we created from config array $sCustomerId = isset( $this->oUserConfig->CUSTOMER_ID ) ? trim($this->oUserConfig->CUSTOMER_ID) : null; @@ -85,17 +85,17 @@ public function __construct($aConfig = null) //If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || is_null($sCustomerId)) { - throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || is_null($sLanguage)) { - throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || is_null($sSecret)) { - throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } @@ -110,7 +110,7 @@ public function __construct($aConfig = null) * * @param mixed $storageId * - * @return WirecardCEE_QMore_DataStorage_Response_Read + * @return QentaCEE_QMore_DataStorage_Response_Read */ public function read($storageId) { @@ -123,11 +123,11 @@ public function read($storageId) self::SECRET )); - return new WirecardCEE_QMore_DataStorage_Response_Read($this->_send()); + return new QentaCEE_QMore_DataStorage_Response_Read($this->_send()); } /** - * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() * @return string */ protected function _getRequestUrl() diff --git a/library/WirecardCEE/QMore/DataStorage/Response/Initiation.php b/library/QentaCEE/QMore/DataStorage/Response/Initiation.php similarity index 73% rename from library/WirecardCEE/QMore/DataStorage/Response/Initiation.php rename to library/QentaCEE/QMore/DataStorage/Response/Initiation.php index 63d322d..b660ea4 100644 --- a/library/WirecardCEE/QMore/DataStorage/Response/Initiation.php +++ b/library/QentaCEE/QMore/DataStorage/Response/Initiation.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_DataStorage_Response_Initiation - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorage_Response_Initiation + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage DataStorage_Response */ -class WirecardCEE_QMore_DataStorage_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract +class QentaCEE_QMore_DataStorage_Response_Initiation extends QentaCEE_QMore_Response_ResponseAbstract { /** * Storage id diff --git a/library/WirecardCEE/QMore/DataStorage/Response/Read.php b/library/QentaCEE/QMore/DataStorage/Response/Read.php similarity index 87% rename from library/WirecardCEE/QMore/DataStorage/Response/Read.php rename to library/QentaCEE/QMore/DataStorage/Response/Read.php index 539b098..e145aa2 100644 --- a/library/WirecardCEE/QMore/DataStorage/Response/Read.php +++ b/library/QentaCEE/QMore/DataStorage/Response/Read.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_DataStorage_Response_Read - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorage_Response_Read + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage DataStorage_Response */ -class WirecardCEE_QMore_DataStorage_Response_Read extends WirecardCEE_QMore_Response_ResponseAbstract +class QentaCEE_QMore_DataStorage_Response_Read extends QentaCEE_QMore_Response_ResponseAbstract { /** * Const: state - existing diff --git a/library/WirecardCEE/QMore/DataStorageClient.php b/library/QentaCEE/QMore/DataStorageClient.php similarity index 80% rename from library/WirecardCEE/QMore/DataStorageClient.php rename to library/QentaCEE/QMore/DataStorageClient.php index 3c20460..e23ae94 100644 --- a/library/WirecardCEE/QMore/DataStorageClient.php +++ b/library/QentaCEE/QMore/DataStorageClient.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,24 +32,24 @@ /** - * @name WirecardCEE_QMore_DataStorageClient - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_DataStorageClient + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_DataStorageClient extends WirecardCEE_Stdlib_Client_ClientAbstract +class QentaCEE_QMore_DataStorageClient extends QentaCEE_Stdlib_Client_ClientAbstract { /** * Response holder * - * @var WirecardCEE_QMore_DataStorage_Response_Initiation + * @var QentaCEE_QMore_DataStorage_Response_Initiation */ protected $oInitResponse; /** * Read response holder * - * @var WirecardCEE_QMore_DataStorage_Request_Read + * @var QentaCEE_QMore_DataStorage_Request_Read */ protected $oDataStorageReadResponse; @@ -171,24 +171,24 @@ class WirecardCEE_QMore_DataStorageClient extends WirecardCEE_Stdlib_Client_Clie * * @param array|Object $config * - * @throws WirecardCEE_QMore_Exception_InvalidArgumentException + * @throws QentaCEE_QMore_Exception_InvalidArgumentException */ public function __construct($config = null) { - $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); //if no config was sent fallback to default config file if (is_null($config)) { - $config = WirecardCEE_QMore_Module::getConfig(); + $config = QentaCEE_QMore_Module::getConfig(); } - if (isset( $config['WirecardCEEQMoreConfig'] )) { - //we only need WirecardCEEQMoreConfig here - $config = $config['WirecardCEEQMoreConfig']; + if (isset( $config['QentaCEEQMoreConfig'] )) { + //we only need QentaCEEQMoreConfig here + $config = $config['QentaCEEQMoreConfig']; } - $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig()); + $this->oUserConfig = is_object($config) ? $config : new QentaCEE_Stdlib_Config($config); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QMore_Module::getClientConfig()); //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in config array $sCustomerId = isset( $this->oUserConfig->CUSTOMER_ID ) ? trim($this->oUserConfig->CUSTOMER_ID) : null; @@ -198,17 +198,17 @@ public function __construct($config = null) //If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || is_null($sCustomerId)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || is_null($sLanguage)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || is_null($sSecret)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } @@ -220,7 +220,7 @@ public function __construct($config = null) /** * - * @return WirecardCEE_QMore_DataStorage_Response_Initiation + * @return QentaCEE_QMore_DataStorage_Response_Initiation */ public function initiate() { @@ -245,7 +245,7 @@ public function initiate() //Are there any errors in the $aMissingFields object? //If so throw the InvalidArgumentException and print all the fields that are missing! if ($aMissingFields->count()) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage! Missing mandatory field(s): %s; thrown in %s", + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array) $aMissingFields), __METHOD__)); } @@ -263,14 +263,14 @@ public function initiate() self::SECRET )); - $this->oInitResponse = new WirecardCEE_QMore_DataStorage_Response_Initiation($this->_send()); + $this->oInitResponse = new QentaCEE_QMore_DataStorage_Response_Initiation($this->_send()); return $this->oInitResponse; } /** * - * @throws WirecardCEE_QMore_Exception_InvalidArgumentException + * @throws QentaCEE_QMore_Exception_InvalidArgumentException */ public function read() { @@ -283,8 +283,8 @@ public function read() // check if storageId has been set from outside. If not fallback to // response and see if response can give us storageId if (!$this->_isFieldSet(self::STORAGE_ID)) { - if (!$this->oInitResponse instanceof WirecardCEE_QMore_DataStorage_Response_Initiation) { - throw new WirecardCEE_QMore_Exception_BadMethodCallException(sprintf("StorageId hasn't been found. Use 'initiate()' or 'setStorageId()'! Thrown in %s", + if (!$this->oInitResponse instanceof QentaCEE_QMore_DataStorage_Response_Initiation) { + throw new QentaCEE_QMore_Exception_BadMethodCallException(sprintf("StorageId hasn't been found. Use 'initiate()' or 'setStorageId()'! Thrown in %s", __METHOD__)); } @@ -300,11 +300,11 @@ public function read() //Are there any errors in the $aMissingFields object? //If so throw the InvalidArgumentException and print all the fields that are missing! if ($aMissingFields->count()) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage Read! Missing mandatory field(s): %s; thrown in %s", + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage Read! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array) $aMissingFields), __METHOD__)); } - $_dataStorageRead = new WirecardCEE_QMore_DataStorage_Request_Read($this->oUserConfig->toArray()); + $_dataStorageRead = new QentaCEE_QMore_DataStorage_Request_Read($this->oUserConfig->toArray()); $this->oDataStorageReadResponse = $_dataStorageRead->read($this->_requestData[self::STORAGE_ID]); return $this->oDataStorageReadResponse; @@ -316,7 +316,7 @@ public function read() * * @param string $javascriptScriptVersion * - * @return WirecardCEE_QMore_DataStorageClient + * @return QentaCEE_QMore_DataStorageClient */ public function setJavascriptScriptVersion($javascriptScriptVersion) { @@ -330,7 +330,7 @@ public function setJavascriptScriptVersion($javascriptScriptVersion) * * @param string $sUrl * - * @return WirecardCEE_QMore_DataStorageClient + * @return QentaCEE_QMore_DataStorageClient */ public function setReturnUrl($sUrl) { @@ -345,7 +345,7 @@ public function setReturnUrl($sUrl) * * @param string $sOrderIdent * - * @return WirecardCEE_QMore_DataStorageClient + * @return QentaCEE_QMore_DataStorageClient */ public function setOrderIdent($sOrderIdent) { @@ -358,7 +358,7 @@ public function setOrderIdent($sOrderIdent) * * @param string $sStorageId * - * @return WirecardCEE_QMore_DataStorageClient + * @return QentaCEE_QMore_DataStorageClient */ public function setStorageId($sStorageId) { @@ -484,7 +484,7 @@ public function setCreditCardShowIssueDatePlaceholder($showPlaceholder) */ /** - * @see WirecardCEE_Stdlib_Client_Request_Abstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_Request_Abstract::_getRequestUrl() * @return string */ protected function _getRequestUrl() diff --git a/library/WirecardCEE/QMore/Error.php b/library/QentaCEE/QMore/Error.php similarity index 71% rename from library/WirecardCEE/QMore/Error.php rename to library/QentaCEE/QMore/Error.php index 5428139..0f31dc6 100644 --- a/library/WirecardCEE/QMore/Error.php +++ b/library/QentaCEE/QMore/Error.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Error - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Error + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Error extends WirecardCEE_Stdlib_Error +class QentaCEE_QMore_Error extends QentaCEE_Stdlib_Error { /** * Error code @@ -53,7 +53,7 @@ class WirecardCEE_QMore_Error extends WirecardCEE_Stdlib_Error protected $_paySysMessage = null; /** - * WirecardCEE_QMore_Error contructor + * QentaCEE_QMore_Error contructor * * @param int $errorCode * @param string $message @@ -79,7 +79,7 @@ public function getErrorCode() * * @param string $paySysMessage * - * @return WirecardCEE_QMore_Error + * @return QentaCEE_QMore_Error */ public function setPaySysMessage($paySysMessage) { diff --git a/library/WirecardCEE/Stdlib/Exception/InvalidTypeException.php b/library/QentaCEE/QMore/Exception/BadMethodCallException.php similarity index 56% rename from library/WirecardCEE/Stdlib/Exception/InvalidTypeException.php rename to library/QentaCEE/QMore/Exception/BadMethodCallException.php index 1855b7c..16f4247 100644 --- a/library/WirecardCEE/Stdlib/Exception/InvalidTypeException.php +++ b/library/QentaCEE/QMore/Exception/BadMethodCallException.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_Stdlib_Exception_InvalidResponseException - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_QMore_Exception_BadMethodCallException + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Exception */ -class WirecardCEE_Stdlib_Exception_InvalidTypeException extends Exception implements WirecardCEE_Stdlib_Client_Exception_ExceptionInterface +class QentaCEE_QMore_Exception_BadMethodCallException extends BadMethodCallException implements QentaCEE_QMore_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Exception/ExceptionInterface.php b/library/QentaCEE/QMore/Exception/ExceptionInterface.php similarity index 58% rename from library/WirecardCEE/QPay/Exception/ExceptionInterface.php rename to library/QentaCEE/QMore/Exception/ExceptionInterface.php index 3559f53..d4700cd 100644 --- a/library/WirecardCEE/QPay/Exception/ExceptionInterface.php +++ b/library/QentaCEE/QMore/Exception/ExceptionInterface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Exception_ExceptionInterface - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QMore_Exception_ExceptionInterface + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Exception */ -interface WirecardCEE_QPay_Exception_ExceptionInterface +interface QentaCEE_QMore_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Exception/BadMethodCallException.php b/library/QentaCEE/QMore/Exception/InvalidArgumentException.php similarity index 56% rename from library/WirecardCEE/QPay/Exception/BadMethodCallException.php rename to library/QentaCEE/QMore/Exception/InvalidArgumentException.php index 85cd533..3cf861b 100644 --- a/library/WirecardCEE/QPay/Exception/BadMethodCallException.php +++ b/library/QentaCEE/QMore/Exception/InvalidArgumentException.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Exception_BadMethodCallException - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QMore_Exception_InvalidArgumentException + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Exception */ -class WirecardCEE_QPay_Exception_BadMethodCallException extends BadMethodCallException implements WirecardCEE_QPay_Exception_ExceptionInterface +class QentaCEE_QMore_Exception_InvalidArgumentException extends InvalidArgumentException implements QentaCEE_QMore_Exception_ExceptionInterface { -} \ No newline at end of file +} diff --git a/library/QentaCEE/QMore/Exception/InvalidParamLengthException.php b/library/QentaCEE/QMore/Exception/InvalidParamLengthException.php new file mode 100644 index 0000000..832c28e --- /dev/null +++ b/library/QentaCEE/QMore/Exception/InvalidParamLengthException.php @@ -0,0 +1,42 @@ +_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); //if no config was sent fallback to default config file if (is_null($config)) { - $config = WirecardCEE_QMore_Module::getConfig(); + $config = QentaCEE_QMore_Module::getConfig(); } - if (isset( $config['WirecardCEEQMoreConfig'] )) { - //we only need the WirecardCEEQMoreConfig here - $config = $config['WirecardCEEQMoreConfig']; + if (isset( $config['QentaCEEQMoreConfig'] )) { + //we only need the QentaCEEQMoreConfig here + $config = $config['QentaCEEQMoreConfig']; } //let's store configuration details in internal objects - $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig()); + $this->oUserConfig = is_object($config) ? $config : new QentaCEE_Stdlib_Config($config); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QMore_Module::getClientConfig()); //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we've created from config array $sCustomerId = isset( $this->oUserConfig->CUSTOMER_ID ) ? trim($this->oUserConfig->CUSTOMER_ID) : null; @@ -225,17 +225,17 @@ public function __construct($config = null) //If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || !isset($sCustomerId)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || !isset($sLanguage)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || !isset($sSecret)) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } @@ -248,7 +248,7 @@ public function __construct($config = null) /** * - * @throws WirecardCEE_QMore_Exception_InvalidArgumentException + * @throws QentaCEE_QMore_Exception_InvalidArgumentException */ public function initiate() { @@ -294,7 +294,7 @@ public function initiate() //Are there any errors in the $aMissingFields object? //If so throw the InvalidArgumentException and print all the fields that are missing! if ($aMissingFields->count()) { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf( + throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf( "Could not initiate QMore! Missing mandatory field(s): %s; thrown in %s; Please use the appropriate setter functions to set the missing fields!", implode(", ", (array) $aMissingFields), __METHOD__)); } @@ -302,10 +302,10 @@ public function initiate() //this is where the magic happens! We send our data to response object and hopefully get back the response object with 'redirectUrl'. //Reponse object is also the one who will, if anything goes wrong, return the errors in an array! try { - $this->oResponse = new WirecardCEE_QMore_Response_Initiation($this->_send()); + $this->oResponse = new QentaCEE_QMore_Response_Initiation($this->_send()); return $this->oResponse; - } catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) { + } catch (QentaCEE_Stdlib_Client_Exception_InvalidResponseException $e) { throw $e; } } @@ -315,7 +315,7 @@ public function initiate() * * @param int|float $amount * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setAmount($amount) { @@ -329,7 +329,7 @@ public function setAmount($amount) * * @param string $sCurrency * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setCurrency($sCurrency) { @@ -343,7 +343,7 @@ public function setCurrency($sCurrency) * * @param string $sPaymentType * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setPaymentType($sPaymentType) { @@ -357,7 +357,7 @@ public function setPaymentType($sPaymentType) * * @param string $sDesc * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setOrderDescription($sDesc) { @@ -371,7 +371,7 @@ public function setOrderDescription($sDesc) * * @param string $sUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setSuccessUrl($sUrl) { @@ -385,7 +385,7 @@ public function setSuccessUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setCancelUrl($sUrl) { @@ -399,7 +399,7 @@ public function setCancelUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setFailureUrl($sUrl) { @@ -413,7 +413,7 @@ public function setFailureUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setServiceUrl($sUrl) { @@ -427,7 +427,7 @@ public function setServiceUrl($sUrl) * * @param string $financialInstitution * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setFinancialInstitution($financialInstitution) { @@ -441,7 +441,7 @@ public function setFinancialInstitution($financialInstitution) * * @param string $confirmUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setConfirmUrl($confirmUrl) { @@ -455,7 +455,7 @@ public function setConfirmUrl($confirmUrl) * * @param string $pendingUrl * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setPendingUrl($pendingUrl) { @@ -469,7 +469,7 @@ public function setPendingUrl($pendingUrl) * * @param string $windowName * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setWindowName($windowName) { @@ -483,7 +483,7 @@ public function setWindowName($windowName) * * @param bool $duplicateRequestCheck * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setDuplicateRequestCheck($duplicateRequestCheck) { @@ -499,7 +499,7 @@ public function setDuplicateRequestCheck($duplicateRequestCheck) * * @param string $sTxIdent * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setTransactionIdentifier($sTxIdent) { @@ -561,7 +561,7 @@ public function getCustomerStatement() * * @param string $orderReference * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setOrderReference($orderReference) { @@ -575,7 +575,7 @@ public function setOrderReference($orderReference) * * @param string $autoDeposit * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setAutoDeposit($autoDeposit) { @@ -591,7 +591,7 @@ public function setAutoDeposit($autoDeposit) * * @param string $orderNumber * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setOrderNumber($orderNumber) { @@ -605,7 +605,7 @@ public function setOrderNumber($orderNumber) * * @param string $confirmMail * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setConfirmMail($confirmMail) { @@ -617,11 +617,11 @@ public function setConfirmMail($confirmMail) /** * adds given consumerData to QMore request * - * @param WirecardCEE_Stdlib_ConsumerData $consumerData + * @param QentaCEE_Stdlib_ConsumerData $consumerData * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ - public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) + public function setConsumerData(QentaCEE_Stdlib_ConsumerData $consumerData) { $this->oConsumerData = $consumerData; foreach ($consumerData->getData() as $key => $value) { @@ -632,10 +632,10 @@ public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) } /** - * @param WirecardCEE_Stdlib_Basket $basket + * @param QentaCEE_Stdlib_Basket $basket * @return $this */ - public function setBasket(WirecardCEE_Stdlib_Basket $basket) { + public function setBasket(QentaCEE_Stdlib_Basket $basket) { $this->oBasket = $basket; foreach($basket->getData() AS $key => $value) { $this->_setField($key, $value); @@ -649,7 +649,7 @@ public function setBasket(WirecardCEE_Stdlib_Basket $basket) { * @param string $orderIdent * @param string $storageId * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setStorageReference($orderIdent, $storageId) { @@ -663,7 +663,7 @@ public function setStorageReference($orderIdent, $storageId) * * @param string $sStorageId * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setStorageId($sStorageId) { @@ -677,7 +677,7 @@ public function setStorageId($sStorageId) * * @param string $sOrderIdent * - * @return WirecardCEE_QMore_FrontendClient + * @return QentaCEE_QMore_FrontendClient */ public function setOrderIdent($sOrderIdent) { @@ -713,12 +713,12 @@ public function createConsumerMerchantCrmId($userEmail) /** * Getter for response object * - * @return WirecardCEE_QMore_Response_Initiation + * @return QentaCEE_QMore_Response_Initiation * @throws Exception */ public function getResponse() { - if (!$this->oResponse instanceof WirecardCEE_QMore_Response_Initiation) { + if (!$this->oResponse instanceof QentaCEE_QMore_Response_Initiation) { throw new Exception(sprintf("%s should be called after the initiate() function!", __METHOD__)); } @@ -780,15 +780,15 @@ public static function generatePluginVersion( */ protected function _isConsumerDataValid() { - // if consumer data is not an instance of WirecardCEE_Stdlib_ConsumerData + // if consumer data is not an instance of QentaCEE_Stdlib_ConsumerData // or if it's empty don't even bother with any checkings... - if (empty( $this->oConsumerData ) || !$this->oConsumerData instanceof WirecardCEE_Stdlib_ConsumerData) { + if (empty( $this->oConsumerData ) || !$this->oConsumerData instanceof QentaCEE_Stdlib_ConsumerData) { return false; } - // @see WirecardCEE_QMore_Request_Initiation_ConsumerData - $sConsumerIpAddressField = WirecardCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName(); - $sConsumerUserAgentField = WirecardCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName(); + // @see QentaCEE_QMore_Request_Initiation_ConsumerData + $sConsumerIpAddressField = QentaCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName(); + $sConsumerUserAgentField = QentaCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName(); // get all the consumer data in an array // @todo when 5.4 becomes available on our server we coulde use eg. $this->oConsumerData->getData()[$sConsumerIpAddressField] @@ -811,7 +811,7 @@ protected static function _getQMoreClientVersionString() } /** - * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() */ protected function _getRequestUrl() { diff --git a/library/WirecardCEE/QMore/Module.php b/library/QentaCEE/QMore/Module.php similarity index 67% rename from library/WirecardCEE/QMore/Module.php rename to library/QentaCEE/QMore/Module.php index 02705d8..52ad30e 100644 --- a/library/WirecardCEE/QMore/Module.php +++ b/library/QentaCEE/QMore/Module.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Module - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Module + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Module */ -class WirecardCEE_QMore_Module extends WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface +class QentaCEE_QMore_Module extends QentaCEE_Stdlib_Module_ModuleAbstract implements QentaCEE_Stdlib_Module_ModuleInterface { /** diff --git a/library/WirecardCEE/QMore/PaymentType.php b/library/QentaCEE/QMore/PaymentType.php similarity index 58% rename from library/WirecardCEE/QMore/PaymentType.php rename to library/QentaCEE/QMore/PaymentType.php index 78d9cb6..ba210be 100644 --- a/library/WirecardCEE/QMore/PaymentType.php +++ b/library/QentaCEE/QMore/PaymentType.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,10 +32,10 @@ /** - * @name WirecardCEE_QMore_PaymentType - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_PaymentType + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_PaymentType extends WirecardCEE_Stdlib_PaymentTypeAbstract +class QentaCEE_QMore_PaymentType extends QentaCEE_Stdlib_PaymentTypeAbstract { } diff --git a/library/WirecardCEE/QPay/Request/Backend/TransferFund.php b/library/QentaCEE/QMore/Request/Backend/TransferFund.php similarity index 77% rename from library/WirecardCEE/QPay/Request/Backend/TransferFund.php rename to library/QentaCEE/QMore/Request/Backend/TransferFund.php index 42c5bfa..0e07f0a 100644 --- a/library/WirecardCEE/QPay/Request/Backend/TransferFund.php +++ b/library/QentaCEE/QMore/Request/Backend/TransferFund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Existing + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QPay_Request_Backend_TransferFund extends WirecardCEE_QPay_ToolkitClient +class QentaCEE_QMore_Request_Backend_TransferFund extends QentaCEE_QMore_BackendClient { /** diff --git a/library/WirecardCEE/QMore/Request/Backend/TransferFund/Existing.php b/library/QentaCEE/QMore/Request/Backend/TransferFund/Existing.php similarity index 72% rename from library/WirecardCEE/QMore/Request/Backend/TransferFund/Existing.php rename to library/QentaCEE/QMore/Request/Backend/TransferFund/Existing.php index ced8583..a1aa810 100644 --- a/library/WirecardCEE/QMore/Request/Backend/TransferFund/Existing.php +++ b/library/QentaCEE/QMore/Request/Backend/TransferFund/Existing.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Existing + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Request_Backend_TransferFund_Existing extends WirecardCEE_QMore_Request_Backend_TransferFund +class QentaCEE_QMore_Request_Backend_TransferFund_Existing extends QentaCEE_QMore_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $sourceOrderNumber) @@ -78,6 +78,6 @@ public function send($amount, $currency, $orderDescription, $sourceOrderNumber) $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray)); - return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send()); + return new QentaCEE_QMore_Response_Backend_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Request/Backend/TransferFund/Moneta.php b/library/QentaCEE/QMore/Request/Backend/TransferFund/Moneta.php similarity index 73% rename from library/WirecardCEE/QMore/Request/Backend/TransferFund/Moneta.php rename to library/QentaCEE/QMore/Request/Backend/TransferFund/Moneta.php index 84f4c4f..385369f 100644 --- a/library/WirecardCEE/QMore/Request/Backend/TransferFund/Moneta.php +++ b/library/QentaCEE/QMore/Request/Backend/TransferFund/Moneta.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Moneta - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Moneta + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Request_Backend_TransferFund_Moneta extends WirecardCEE_QMore_Request_Backend_TransferFund +class QentaCEE_QMore_Request_Backend_TransferFund_Moneta extends QentaCEE_QMore_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $customerStatement, $consumerWalletId) @@ -79,6 +79,6 @@ public function send($amount, $currency, $orderDescription, $customerStatement, $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray)); - return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send()); + return new QentaCEE_QMore_Response_Backend_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Request/Backend/TransferFund/SepaCT.php b/library/QentaCEE/QMore/Request/Backend/TransferFund/SepaCT.php similarity index 75% rename from library/WirecardCEE/QMore/Request/Backend/TransferFund/SepaCT.php rename to library/QentaCEE/QMore/Request/Backend/TransferFund/SepaCT.php index dc109ce..af20769 100644 --- a/library/WirecardCEE/QMore/Request/Backend/TransferFund/SepaCT.php +++ b/library/QentaCEE/QMore/Request/Backend/TransferFund/SepaCT.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT extends WirecardCEE_QMore_Request_Backend_TransferFund +class QentaCEE_QMore_Request_Backend_TransferFund_SepaCT extends QentaCEE_QMore_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $bankAccountOwner, $bankBic, $bankAccountIban) @@ -85,6 +85,6 @@ public function send($amount, $currency, $orderDescription, $bankAccountOwner, $ $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray)); - return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send()); + return new QentaCEE_QMore_Response_Backend_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php b/library/QentaCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php similarity index 73% rename from library/WirecardCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php rename to library/QentaCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php index 1e1f04c..9ce330b 100644 --- a/library/WirecardCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php +++ b/library/QentaCEE/QMore/Request/Backend/TransferFund/SkrillWallet.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet extends WirecardCEE_QMore_Request_Backend_TransferFund +class QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet extends QentaCEE_QMore_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $customerStatement, $consumerEmail) @@ -79,6 +79,6 @@ public function send($amount, $currency, $orderDescription, $customerStatement, $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray)); - return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send()); + return new QentaCEE_QMore_Response_Backend_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/ApproveReversal.php b/library/QentaCEE/QMore/Response/Backend/ApproveReversal.php similarity index 56% rename from library/WirecardCEE/QMore/Response/Backend/ApproveReversal.php rename to library/QentaCEE/QMore/Response/Backend/ApproveReversal.php index 98b93a2..702f053 100644 --- a/library/WirecardCEE/QMore/Response/Backend/ApproveReversal.php +++ b/library/QentaCEE/QMore/Response/Backend/ApproveReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Response_Backend_ApproveReversal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_ApproveReversal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_ApproveReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_ApproveReversal extends QentaCEE_QMore_Response_Backend_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/Deposit.php b/library/QentaCEE/QMore/Response/Backend/Deposit.php similarity index 64% rename from library/WirecardCEE/QMore/Response/Backend/Deposit.php rename to library/QentaCEE/QMore/Response/Backend/Deposit.php index 0279839..9ab7af6 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Deposit.php +++ b/library/QentaCEE/QMore/Response/Backend/Deposit.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Deposit - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Deposit + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_Deposit extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_Deposit extends QentaCEE_QMore_Response_Backend_ResponseAbstract { /** * Payment number diff --git a/library/WirecardCEE/QMore/Response/Backend/DepositReversal.php b/library/QentaCEE/QMore/Response/Backend/DepositReversal.php similarity index 56% rename from library/WirecardCEE/QMore/Response/Backend/DepositReversal.php rename to library/QentaCEE/QMore/Response/Backend/DepositReversal.php index 1f27042..385c1fa 100644 --- a/library/WirecardCEE/QMore/Response/Backend/DepositReversal.php +++ b/library/QentaCEE/QMore/Response/Backend/DepositReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Response_Backend_DepositReversal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_DepositReversal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_DepositReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_DepositReversal extends QentaCEE_QMore_Response_Backend_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/FinancialObject.php b/library/QentaCEE/QMore/Response/Backend/FinancialObject.php similarity index 70% rename from library/WirecardCEE/QMore/Response/Backend/FinancialObject.php rename to library/QentaCEE/QMore/Response/Backend/FinancialObject.php index b89246e..1f95a29 100644 --- a/library/WirecardCEE/QMore/Response/Backend/FinancialObject.php +++ b/library/QentaCEE/QMore/Response/Backend/FinancialObject.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QMore_Response_Backend_FinancialObject - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_FinancialObject + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend * @abstract */ -abstract class WirecardCEE_QMore_Response_Backend_FinancialObject +abstract class QentaCEE_QMore_Response_Backend_FinancialObject { /** * Internal data holder diff --git a/library/WirecardCEE/QMore/Response/Backend/GetFinancialInstitutions.php b/library/QentaCEE/QMore/Response/Backend/GetFinancialInstitutions.php similarity index 59% rename from library/WirecardCEE/QMore/Response/Backend/GetFinancialInstitutions.php rename to library/QentaCEE/QMore/Response/Backend/GetFinancialInstitutions.php index 1659508..7ce5c14 100644 --- a/library/WirecardCEE/QMore/Response/Backend/GetFinancialInstitutions.php +++ b/library/QentaCEE/QMore/Response/Backend/GetFinancialInstitutions.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_GetFinancialInstitutions + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_GetFinancialInstitutions extends QentaCEE_QMore_Response_Backend_ResponseAbstract { public function getFinancialInstitutions() diff --git a/library/WirecardCEE/QMore/Response/Backend/GetOrderDetails.php b/library/QentaCEE/QMore/Response/Backend/GetOrderDetails.php similarity index 68% rename from library/WirecardCEE/QMore/Response/Backend/GetOrderDetails.php rename to library/QentaCEE/QMore/Response/Backend/GetOrderDetails.php index dd9f63f..c149f0a 100644 --- a/library/WirecardCEE/QMore/Response/Backend/GetOrderDetails.php +++ b/library/QentaCEE/QMore/Response/Backend/GetOrderDetails.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,17 +32,17 @@ /** - * @name WirecardCEE_QMore_Response_Backend_GetOrderDetails - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_GetOrderDetails + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_GetOrderDetails extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_GetOrderDetails extends QentaCEE_QMore_Response_Backend_ResponseAbstract { /** - * Internal WirecardCEE_QMore_Response_Backend_Order holder + * Internal QentaCEE_QMore_Response_Backend_Order holder * - * @var WirecardCEE_QMore_Response_Backend_Order + * @var QentaCEE_QMore_Response_Backend_Order */ private $_order; @@ -72,7 +72,7 @@ class WirecardCEE_QMore_Response_Backend_GetOrderDetails extends WirecardCEE_QMo /** * - * @see WirecardCEE_QMore_Response_Backend_ResponseAbstract + * @see QentaCEE_QMore_Response_Backend_ResponseAbstract * * @param ResponseInterface $result */ @@ -96,13 +96,13 @@ public function __construct($result) $order['paymentData'] = isset($payments[0]) ? $payments[0] : Array(); $order['creditData'] = isset($credits[0]) ? $credits[0] : Array(); - $this->_order = new WirecardCEE_QMore_Response_Backend_Order($order); + $this->_order = new QentaCEE_QMore_Response_Backend_Order($order); } /** * getter for the returned order object * - * @return WirecardCEE_QMore_Response_Backend_Order + * @return QentaCEE_QMore_Response_Backend_Order */ public function getOrder() { diff --git a/library/WirecardCEE/QMore/Response/Backend/Order.php b/library/QentaCEE/QMore/Response/Backend/Order.php similarity index 81% rename from library/WirecardCEE/QMore/Response/Backend/Order.php rename to library/QentaCEE/QMore/Response/Backend/Order.php index 2affdc6..8b97954 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order.php +++ b/library/QentaCEE/QMore/Response/Backend/Order.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,24 +32,24 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_Order extends WirecardCEE_QMore_Response_Backend_FinancialObject +class QentaCEE_QMore_Response_Backend_Order extends QentaCEE_QMore_Response_Backend_FinancialObject { /** - * Internal WirecardCEE_QMore_Response_Backend_Order_CreditIterator holder + * Internal QentaCEE_QMore_Response_Backend_Order_CreditIterator holder * - * @var WirecardCEE_QMore_Response_Backend_Order_CreditIterator + * @var QentaCEE_QMore_Response_Backend_Order_CreditIterator */ private $_credits; /** - * internal WirecardCEE_QMore_Response_Backend_Order_PaymentIterator holder + * internal QentaCEE_QMore_Response_Backend_Order_PaymentIterator holder * - * @var WirecardCEE_QMore_Response_Backend_Order_PaymentIterator + * @var QentaCEE_QMore_Response_Backend_Order_PaymentIterator */ private $_payments; @@ -214,7 +214,7 @@ class WirecardCEE_QMore_Response_Backend_Order extends WirecardCEE_QMore_Respons private static $PAYMENTTYPE_IDEAL = 'IDL'; /** - * creates an instance of the WirecardCEE_QMore_Response_Backend_Order object + * creates an instance of the QentaCEE_QMore_Response_Backend_Order object * * @param string[] $orderData */ @@ -404,7 +404,7 @@ public function getSourceOrderNumber() /** * getter for corresponding payment objects * - * @return WirecardCEE_QMore_Response_Backend_Order_PaymentIterator + * @return QentaCEE_QMore_Response_Backend_Order_PaymentIterator */ public function getPayments() { @@ -414,7 +414,7 @@ public function getPayments() /** * getter for corresponding credit objects * - * @return WirecardCEE_QMore_Response_Backend_Order_CreditIterator + * @return QentaCEE_QMore_Response_Backend_Order_CreditIterator */ public function getCredits() { @@ -432,20 +432,20 @@ protected function _setPayments($paymentEntries) foreach ($paymentEntries as $paymentEntry) { switch ($paymentEntry['paymentType']) { case self::$PAYMENTTYPE_PAYPAL: - $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal($paymentEntry); + $payments[] = new QentaCEE_QMore_Response_Backend_Order_Payment_Paypal($paymentEntry); break; case self::$PAYMENTTYPE_SOFORTUEBERWEISUNG: - $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung($paymentEntry); + $payments[] = new QentaCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung($paymentEntry); break; case self::$PAYMENTTYPE_IDEAL: - $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal($paymentEntry); + $payments[] = new QentaCEE_QMore_Response_Backend_Order_Payment_Ideal($paymentEntry); break; default: - $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment($paymentEntry); + $payments[] = new QentaCEE_QMore_Response_Backend_Order_Payment($paymentEntry); break; } } - $this->_payments = new WirecardCEE_QMore_Response_Backend_Order_PaymentIterator($payments); + $this->_payments = new QentaCEE_QMore_Response_Backend_Order_PaymentIterator($payments); } /** @@ -457,9 +457,9 @@ protected function _setCredits($creditEntries) { $credits = Array(); foreach ($creditEntries as $creditEntry) { - $credits[] = new WirecardCEE_QMore_Response_Backend_Order_Credit($creditEntry); + $credits[] = new QentaCEE_QMore_Response_Backend_Order_Credit($creditEntry); } - $this->_credits = new WirecardCEE_QMore_Response_Backend_Order_CreditIterator($credits); + $this->_credits = new QentaCEE_QMore_Response_Backend_Order_CreditIterator($credits); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/Credit.php b/library/QentaCEE/QMore/Response/Backend/Order/Credit.php similarity index 85% rename from library/WirecardCEE/QMore/Response/Backend/Order/Credit.php rename to library/QentaCEE/QMore/Response/Backend/Order/Credit.php index 1db359d..f56e30c 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/Credit.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/Credit.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_Credit - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_Credit + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order */ -class WirecardCEE_QMore_Response_Backend_Order_Credit extends WirecardCEE_QMore_Response_Backend_FinancialObject +class QentaCEE_QMore_Response_Backend_Order_Credit extends QentaCEE_QMore_Response_Backend_FinancialObject { /** * Merchant number @@ -129,7 +129,7 @@ class WirecardCEE_QMore_Response_Backend_Order_Credit extends WirecardCEE_QMore_ /** * creates an instance of an {@link - * WirecardCEE_QMore_Response_Backend_Order_Credit} object + * QentaCEE_QMore_Response_Backend_Order_Credit} object * * @param string[] $creditData */ diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/CreditIterator.php b/library/QentaCEE/QMore/Response/Backend/Order/CreditIterator.php similarity index 56% rename from library/WirecardCEE/QMore/Response/Backend/Order/CreditIterator.php rename to library/QentaCEE/QMore/Response/Backend/Order/CreditIterator.php index 5053dbc..43a820d 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/CreditIterator.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/CreditIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_CreditIterator - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_CreditIterator + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order */ -class WirecardCEE_QMore_Response_Backend_Order_CreditIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator +class QentaCEE_QMore_Response_Backend_Order_CreditIterator extends QentaCEE_QMore_Response_Backend_Order_OrderIterator { } diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/OrderIterator.php b/library/QentaCEE/QMore/Response/Backend/Order/OrderIterator.php similarity index 75% rename from library/WirecardCEE/QMore/Response/Backend/Order/OrderIterator.php rename to library/QentaCEE/QMore/Response/Backend/Order/OrderIterator.php index f1c50c3..f36a628 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/OrderIterator.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/OrderIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_OrderIterator - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_OrderIterator + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order * @abstract */ -abstract class WirecardCEE_QMore_Response_Backend_Order_OrderIterator implements Iterator +abstract class QentaCEE_QMore_Response_Backend_Order_OrderIterator implements Iterator { /** * Internal position holder diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/Payment.php b/library/QentaCEE/QMore/Response/Backend/Order/Payment.php similarity index 87% rename from library/WirecardCEE/QMore/Response/Backend/Order/Payment.php rename to library/QentaCEE/QMore/Response/Backend/Order/Payment.php index ded8151..7bdca14 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/Payment.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/Payment.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_Payment - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_Payment + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order */ -class WirecardCEE_QMore_Response_Backend_Order_Payment extends WirecardCEE_QMore_Response_Backend_FinancialObject +class QentaCEE_QMore_Response_Backend_Order_Payment extends QentaCEE_QMore_Response_Backend_FinancialObject { /** * Merchant number @@ -153,7 +153,7 @@ class WirecardCEE_QMore_Response_Backend_Order_Payment extends WirecardCEE_QMore /** * creates an instance of an {@link - * WirecardCEE_QMore_Response_Backend_Order_Payment} object + * QentaCEE_QMore_Response_Backend_Order_Payment} object * * @param string[] $paymentData */ diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Ideal.php b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Ideal.php similarity index 72% rename from library/WirecardCEE/QMore/Response/Backend/Order/Payment/Ideal.php rename to library/QentaCEE/QMore/Response/Backend/Order/Payment/Ideal.php index e56a69f..7579081 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Ideal.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Ideal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_Payment_Ideal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order_Payment */ -class WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal extends WirecardCEE_QMore_Response_Backend_Order_Payment +class QentaCEE_QMore_Response_Backend_Order_Payment_Ideal extends QentaCEE_QMore_Response_Backend_Order_Payment { /** * iDEAL consumer name diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Paypal.php b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Paypal.php similarity index 88% rename from library/WirecardCEE/QMore/Response/Backend/Order/Payment/Paypal.php rename to library/QentaCEE/QMore/Response/Backend/Order/Payment/Paypal.php index 5ddaa14..4048d16 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Paypal.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Paypal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_Payment_Paypal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order_Payment */ -class WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal extends WirecardCEE_QMore_Response_Backend_Order_Payment +class QentaCEE_QMore_Response_Backend_Order_Payment_Paypal extends QentaCEE_QMore_Response_Backend_Order_Payment { /** * Paypal payer ID diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php similarity index 82% rename from library/WirecardCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php rename to library/QentaCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php index 489090b..bd72081 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order_Payment */ -class WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung extends WirecardCEE_QMore_Response_Backend_Order_Payment +class QentaCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung extends QentaCEE_QMore_Response_Backend_Order_Payment { /** * Sender account owner diff --git a/library/WirecardCEE/QMore/Response/Backend/Order/PaymentIterator.php b/library/QentaCEE/QMore/Response/Backend/Order/PaymentIterator.php similarity index 56% rename from library/WirecardCEE/QMore/Response/Backend/Order/PaymentIterator.php rename to library/QentaCEE/QMore/Response/Backend/Order/PaymentIterator.php index b21438a..3e81f3a 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Order/PaymentIterator.php +++ b/library/QentaCEE/QMore/Response/Backend/Order/PaymentIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Order_PaymentIterator - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Order_PaymentIterator + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend_Order */ -class WirecardCEE_QMore_Response_Backend_Order_PaymentIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator +class QentaCEE_QMore_Response_Backend_Order_PaymentIterator extends QentaCEE_QMore_Response_Backend_Order_OrderIterator { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/RecurPayment.php b/library/QentaCEE/QMore/Response/Backend/RecurPayment.php similarity index 63% rename from library/WirecardCEE/QMore/Response/Backend/RecurPayment.php rename to library/QentaCEE/QMore/Response/Backend/RecurPayment.php index 68c7697..8315c17 100644 --- a/library/WirecardCEE/QMore/Response/Backend/RecurPayment.php +++ b/library/QentaCEE/QMore/Response/Backend/RecurPayment.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_RecurPayment - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_RecurPayment + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_RecurPayment extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_RecurPayment extends QentaCEE_QMore_Response_Backend_ResponseAbstract { /** * Order number diff --git a/library/WirecardCEE/QPay/Response/Toolkit/TransferFund.php b/library/QentaCEE/QMore/Response/Backend/Refund.php similarity index 63% rename from library/WirecardCEE/QPay/Response/Toolkit/TransferFund.php rename to library/QentaCEE/QMore/Response/Backend/Refund.php index aefe14b..66b80c5 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/TransferFund.php +++ b/library/QentaCEE/QMore/Response/Backend/Refund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_TransferFund - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_Refund + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QPay_Response_Toolkit_TransferFund extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QMore_Response_Backend_Refund extends QentaCEE_QMore_Response_Backend_ResponseAbstract { /** * Credit number diff --git a/library/WirecardCEE/QMore/Response/Backend/RefundReversal.php b/library/QentaCEE/QMore/Response/Backend/RefundReversal.php similarity index 57% rename from library/WirecardCEE/QMore/Response/Backend/RefundReversal.php rename to library/QentaCEE/QMore/Response/Backend/RefundReversal.php index 5e4bc5b..9425f6f 100644 --- a/library/WirecardCEE/QMore/Response/Backend/RefundReversal.php +++ b/library/QentaCEE/QMore/Response/Backend/RefundReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Response_Backend_RefundReversal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_RefundReversal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_RefundReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_RefundReversal extends QentaCEE_QMore_Response_Backend_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Response/Backend/ResponseAbstract.php b/library/QentaCEE/QMore/Response/Backend/ResponseAbstract.php similarity index 63% rename from library/WirecardCEE/QMore/Response/Backend/ResponseAbstract.php rename to library/QentaCEE/QMore/Response/Backend/ResponseAbstract.php index 5475145..3121461 100644 --- a/library/WirecardCEE/QMore/Response/Backend/ResponseAbstract.php +++ b/library/QentaCEE/QMore/Response/Backend/ResponseAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QMore_Response_Backend_ResponseAbstract - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_ResponseAbstract + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend * @abstract */ -abstract class WirecardCEE_QMore_Response_Backend_ResponseAbstract extends WirecardCEE_QMore_Response_ResponseAbstract +abstract class QentaCEE_QMore_Response_Backend_ResponseAbstract extends QentaCEE_QMore_Response_ResponseAbstract { /** * Status diff --git a/library/WirecardCEE/QMore/Response/Backend/Refund.php b/library/QentaCEE/QMore/Response/Backend/TransferFund.php similarity index 66% rename from library/WirecardCEE/QMore/Response/Backend/Refund.php rename to library/QentaCEE/QMore/Response/Backend/TransferFund.php index 6d361a7..20241d9 100644 --- a/library/WirecardCEE/QMore/Response/Backend/Refund.php +++ b/library/QentaCEE/QMore/Response/Backend/TransferFund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_Refund - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Backend_TransferFund + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response_Backend */ -class WirecardCEE_QMore_Response_Backend_Refund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QMore_Response_Backend_TransferFund extends QentaCEE_QMore_Response_Backend_ResponseAbstract { /** * Credit number diff --git a/library/WirecardCEE/QMore/Response/Initiation.php b/library/QentaCEE/QMore/Response/Initiation.php similarity index 63% rename from library/WirecardCEE/QMore/Response/Initiation.php rename to library/QentaCEE/QMore/Response/Initiation.php index 2793e6a..b4ae98e 100644 --- a/library/WirecardCEE/QMore/Response/Initiation.php +++ b/library/QentaCEE/QMore/Response/Initiation.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Initiation - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_Initiation + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response */ -class WirecardCEE_QMore_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract +class QentaCEE_QMore_Response_Initiation extends QentaCEE_QMore_Response_ResponseAbstract { /** diff --git a/library/WirecardCEE/QMore/Response/ResponseAbstract.php b/library/QentaCEE/QMore/Response/ResponseAbstract.php similarity index 77% rename from library/WirecardCEE/QMore/Response/ResponseAbstract.php rename to library/QentaCEE/QMore/Response/ResponseAbstract.php index 5ccc1dd..13031e0 100644 --- a/library/WirecardCEE/QMore/Response/ResponseAbstract.php +++ b/library/QentaCEE/QMore/Response/ResponseAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QMore_Response_ResponseAbstract - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Response_ResponseAbstract + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Response * @abstract */ -abstract class WirecardCEE_QMore_Response_ResponseAbstract extends WirecardCEE_Stdlib_Response_ResponseAbstract +abstract class QentaCEE_QMore_Response_ResponseAbstract extends QentaCEE_Stdlib_Response_ResponseAbstract { /** * Errors @@ -95,7 +95,7 @@ public function getNumberOfErrors() /** * getter for list of errors that occured * - * @return WirecardCEE_QMore_Error[] + * @return QentaCEE_QMore_Error[] */ public function getErrors() { @@ -108,7 +108,7 @@ public function getErrors() $consumerMessage = isset( $error[self::$ERROR_CONSUMER_MESSAGE] ) ? $error[self::$ERROR_CONSUMER_MESSAGE] : ''; $paySysMessage = isset( $error[self::$ERROR_PAYSYS_MESSAGE] ) ? $error[self::$ERROR_PAYSYS_MESSAGE] : ''; - $error = new WirecardCEE_QMore_Error($errorCode, $message); + $error = new QentaCEE_QMore_Error($errorCode, $message); $error->setConsumerMessage($consumerMessage); $error->setPaySysMessage($paySysMessage); diff --git a/library/WirecardCEE/QPay/Return/Cancel.php b/library/QentaCEE/QMore/Return/Cancel.php similarity index 58% rename from library/WirecardCEE/QPay/Return/Cancel.php rename to library/QentaCEE/QMore/Return/Cancel.php index 4875118..2800ef7 100644 --- a/library/WirecardCEE/QPay/Return/Cancel.php +++ b/library/QentaCEE/QMore/Return/Cancel.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Cancel - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QMore_Return_Cancel + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return */ -class WirecardCEE_QPay_Return_Cancel extends WirecardCEE_Stdlib_Return_Cancel +class QentaCEE_QMore_Return_Cancel extends QentaCEE_Stdlib_Return_Cancel { } diff --git a/library/WirecardCEE/QMore/Return/Failure.php b/library/QentaCEE/QMore/Return/Failure.php similarity index 71% rename from library/WirecardCEE/QMore/Return/Failure.php rename to library/QentaCEE/QMore/Return/Failure.php index f65ff38..543b1b6 100644 --- a/library/WirecardCEE/QMore/Return/Failure.php +++ b/library/QentaCEE/QMore/Return/Failure.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Return_Failure - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Failure + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return */ -class WirecardCEE_QMore_Return_Failure extends WirecardCEE_Stdlib_Return_Failure +class QentaCEE_QMore_Return_Failure extends QentaCEE_Stdlib_Return_Failure { /** @@ -65,7 +65,7 @@ public function getErrors() $consumerMessage = $error[self::$ERROR_CONSUMER_MESSAGE]; $paySysMessage = $error[self::$ERROR_PAY_SYS_MESSAGE]; - $errorObject = new WirecardCEE_QMore_Error($errorCode, $message); + $errorObject = new QentaCEE_QMore_Error($errorCode, $message); $errorObject->setPaySysMessage($paySysMessage); $errorObject->setConsumerMessage($consumerMessage); diff --git a/library/WirecardCEE/QMore/Return/Pending.php b/library/QentaCEE/QMore/Return/Pending.php similarity index 56% rename from library/WirecardCEE/QMore/Return/Pending.php rename to library/QentaCEE/QMore/Return/Pending.php index b67cb7a..e500a44 100644 --- a/library/WirecardCEE/QMore/Return/Pending.php +++ b/library/QentaCEE/QMore/Return/Pending.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Pending - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Pending + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return */ -class WirecardCEE_QMore_Return_Pending extends WirecardCEE_Stdlib_Return_Pending +class QentaCEE_QMore_Return_Pending extends QentaCEE_Stdlib_Return_Pending { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Return/Success.php b/library/QentaCEE/QMore/Return/Success.php similarity index 56% rename from library/WirecardCEE/QMore/Return/Success.php rename to library/QentaCEE/QMore/Return/Success.php index 395d629..d2a25af 100644 --- a/library/WirecardCEE/QMore/Return/Success.php +++ b/library/QentaCEE/QMore/Return/Success.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Success - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Success + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return */ -class WirecardCEE_QMore_Return_Success extends WirecardCEE_Stdlib_Return_Success +class QentaCEE_QMore_Return_Success extends QentaCEE_Stdlib_Return_Success { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Return/Success/CreditCard.php b/library/QentaCEE/QMore/Return/Success/CreditCard.php similarity index 55% rename from library/WirecardCEE/QMore/Return/Success/CreditCard.php rename to library/QentaCEE/QMore/Return/Success/CreditCard.php index 8185f9b..c300b46 100644 --- a/library/WirecardCEE/QMore/Return/Success/CreditCard.php +++ b/library/QentaCEE/QMore/Return/Success/CreditCard.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Success_CreditCard - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Success_CreditCard + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return_Success */ -class WirecardCEE_QMore_Return_Success_CreditCard extends WirecardCEE_Stdlib_Return_Success_CreditCard +class QentaCEE_QMore_Return_Success_CreditCard extends QentaCEE_Stdlib_Return_Success_CreditCard { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Return/Success/Ideal.php b/library/QentaCEE/QMore/Return/Success/Ideal.php similarity index 56% rename from library/WirecardCEE/QMore/Return/Success/Ideal.php rename to library/QentaCEE/QMore/Return/Success/Ideal.php index 4b19683..d8dad79 100644 --- a/library/WirecardCEE/QMore/Return/Success/Ideal.php +++ b/library/QentaCEE/QMore/Return/Success/Ideal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Success_Ideal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Success_Ideal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return_Success */ -class WirecardCEE_QMore_Return_Success_Ideal extends WirecardCEE_Stdlib_Return_Success_Ideal +class QentaCEE_QMore_Return_Success_Ideal extends QentaCEE_Stdlib_Return_Success_Ideal { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Return/Success/PayPal.php b/library/QentaCEE/QMore/Return/Success/PayPal.php similarity index 56% rename from library/WirecardCEE/QMore/Return/Success/PayPal.php rename to library/QentaCEE/QMore/Return/Success/PayPal.php index c864601..39ce398 100644 --- a/library/WirecardCEE/QMore/Return/Success/PayPal.php +++ b/library/QentaCEE/QMore/Return/Success/PayPal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Success_PayPal - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Success_PayPal + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return_Success */ -class WirecardCEE_QMore_Return_Success_PayPal extends WirecardCEE_Stdlib_Return_Success_PayPal +class QentaCEE_QMore_Return_Success_PayPal extends QentaCEE_Stdlib_Return_Success_PayPal { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Return/Success/SepaDD.php b/library/QentaCEE/QMore/Return/Success/SepaDD.php similarity index 56% rename from library/WirecardCEE/QMore/Return/Success/SepaDD.php rename to library/QentaCEE/QMore/Return/Success/SepaDD.php index f6362f3..2f7d961 100644 --- a/library/WirecardCEE/QMore/Return/Success/SepaDD.php +++ b/library/QentaCEE/QMore/Return/Success/SepaDD.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * @name WirecardCEE_QMore_Return_Success_SepaDD - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Return_Success_SepaDD + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return_Success */ -class WirecardCEE_QMore_Return_Success_SepaDD extends WirecardCEE_Stdlib_Return_Success_SepaDD +class QentaCEE_QMore_Return_Success_SepaDD extends QentaCEE_Stdlib_Return_Success_SepaDD { public function __construct($returnData, $secret) { - parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + parent::__construct($returnData, $secret, QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); } } \ No newline at end of file diff --git a/library/QentaCEE/QMore/Return/Success/Sofortueberweisung.php b/library/QentaCEE/QMore/Return/Success/Sofortueberweisung.php new file mode 100644 index 0000000..551af5d --- /dev/null +++ b/library/QentaCEE/QMore/Return/Success/Sofortueberweisung.php @@ -0,0 +1,46 @@ + 'https://checkout.wirecard.com/page/init-server.php', 'TOOLKIT_URL' => 'https://checkout.wirecard.com/page/toolkit.php', - 'MODULE_NAME' => 'WirecardCEE_QPay', + 'MODULE_NAME' => 'QentaCEE_QPay', 'MODULE_VERSION' => '3.3.0', 'DEPENDENCIES' => Array(), 'USE_DEBUG' => false diff --git a/library/WirecardCEE/QPay/Config/user.config.php b/library/QentaCEE/QPay/Config/user.config.php similarity index 68% rename from library/WirecardCEE/QPay/Config/user.config.php rename to library/QentaCEE/QPay/Config/user.config.php index cf337e2..bfcae7d 100644 --- a/library/WirecardCEE/QPay/Config/user.config.php +++ b/library/QentaCEE/QPay/Config/user.config.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -37,7 +37,7 @@ * Please input your details */ return Array( - 'WirecardCEEQPayConfig' => Array( + 'QentaCEEQPayConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => '', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/library/WirecardCEE/QPay/Error.php b/library/QentaCEE/QPay/Error.php similarity index 60% rename from library/WirecardCEE/QPay/Error.php rename to library/QentaCEE/QPay/Error.php index 8ee20fe..46a462e 100644 --- a/library/WirecardCEE/QPay/Error.php +++ b/library/QentaCEE/QPay/Error.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,15 +32,15 @@ /** - * @name WirecardCEE_QPay_Error - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Error + * @category QentaCEE + * @package QentaCEE_QPay */ -class WirecardCEE_QPay_Error extends WirecardCEE_Stdlib_Error +class QentaCEE_QPay_Error extends QentaCEE_Stdlib_Error { /** - * WirecardCEE_QPay_Error contructor + * QentaCEE_QPay_Error contructor * * @param string $message */ diff --git a/library/QentaCEE/QPay/Exception/BadMethodCallException.php b/library/QentaCEE/QPay/Exception/BadMethodCallException.php new file mode 100644 index 0000000..2ee98a2 --- /dev/null +++ b/library/QentaCEE/QPay/Exception/BadMethodCallException.php @@ -0,0 +1,42 @@ +_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); //if no config was sent fallback to default config file if (is_null($aConfig)) { - $aConfig = WirecardCEE_QPay_Module::getConfig(); + $aConfig = QentaCEE_QPay_Module::getConfig(); } - if (isset( $aConfig['WirecardCEEQPayConfig'] )) { - //we only need the WirecardCEEQPayConfig here - $aConfig = $aConfig['WirecardCEEQPayConfig']; + if (isset( $aConfig['QentaCEEQPayConfig'] )) { + //we only need the QentaCEEQPayConfig here + $aConfig = $aConfig['QentaCEEQPayConfig']; } //let's store configuration details in internal objects - $this->oUserConfig = new WirecardCEE_Stdlib_Config($aConfig); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QPay_Module::getClientConfig()); + $this->oUserConfig = new QentaCEE_Stdlib_Config($aConfig); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QPay_Module::getClientConfig()); //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we created from config array $sCustomerId = isset( $this->oUserConfig->CUSTOMER_ID ) ? trim($this->oUserConfig->CUSTOMER_ID) : null; @@ -284,22 +284,22 @@ public function __construct($aConfig = null) //If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || is_null($sCustomerId)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || is_null($sLanguage)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || is_null($sSecret)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } // we're using hmac sha512 for hash-ing - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); //everything ok! let's set the fields $this->_setField(self::CUSTOMER_ID, $sCustomerId); @@ -313,8 +313,8 @@ public function __construct($aConfig = null) * This function should be called AFTER you've set all the mandatory fields * (for a list of mandatory fields please consult the integration manual) * - * @throws WirecardCEE_QPay_Exception_InvalidArgumentException - * @return WirecardCEE_QPay_Response_Initiation + * @throws QentaCEE_QPay_Exception_InvalidArgumentException + * @return QentaCEE_QPay_Response_Initiation */ public function initiate() { @@ -355,14 +355,14 @@ public function initiate() //Are there any errors in the $aMissingFields object? //If so throw the InvalidArgumentException and print all the fields that are missing! if ($aMissingFields->count()) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf( + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf( "Could not initiate QPay! Missing mandatory field(s): %s; thrown in %s; Please use the appropriate setter functions to set missing fields.", implode(", ", (array) $aMissingFields), __METHOD__)); } //this is where the magic happens! We send our data to response object and hopefully get back the response object with 'redirectUrl'. //Reponse object is also the one who will, if anything goes wrong, return the errors in an array! - $this->oResponse = new WirecardCEE_QPay_Response_Initiation($this->_send()); + $this->oResponse = new QentaCEE_QPay_Response_Initiation($this->_send()); //and return the Response object return $this->oResponse; @@ -373,7 +373,7 @@ public function initiate() * * @param int|float $amount * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient * @formatter:on */ public function setAmount($amount) @@ -388,7 +388,7 @@ public function setAmount($amount) * * @param string $sCurrency * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setCurrency($sCurrency) { @@ -402,7 +402,7 @@ public function setCurrency($sCurrency) * * @param string $sPaymentType * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setPaymentType($sPaymentType) { @@ -416,7 +416,7 @@ public function setPaymentType($sPaymentType) * * @param string $sDesc * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setOrderDescription($sDesc) { @@ -430,7 +430,7 @@ public function setOrderDescription($sDesc) * * @param string $sUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setSuccessUrl($sUrl) { @@ -444,7 +444,7 @@ public function setSuccessUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setCancelUrl($sUrl) { @@ -458,7 +458,7 @@ public function setCancelUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setFailureUrl($sUrl) { @@ -472,7 +472,7 @@ public function setFailureUrl($sUrl) * * @param string $sUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setServiceUrl($sUrl) { @@ -486,7 +486,7 @@ public function setServiceUrl($sUrl) * * @param string $pendingUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setPendingUrl($pendingUrl) { @@ -501,7 +501,7 @@ public function setPendingUrl($pendingUrl) * * @param string $financialInstitution * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setFinancialInstitution($financialInstitution) { @@ -515,7 +515,7 @@ public function setFinancialInstitution($financialInstitution) * * @param string $displayText * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setDisplayText($displayText) { @@ -529,7 +529,7 @@ public function setDisplayText($displayText) * * @param string $confirmUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setConfirmUrl($confirmUrl) { @@ -543,7 +543,7 @@ public function setConfirmUrl($confirmUrl) * * @param string $imageUrl * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setImageUrl($imageUrl) { @@ -557,7 +557,7 @@ public function setImageUrl($imageUrl) * * @param string $windowName * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setWindowName($windowName) { @@ -571,7 +571,7 @@ public function setWindowName($windowName) * * @param bool $duplicateRequestCheck * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setDuplicateRequestCheck($duplicateRequestCheck) { @@ -601,7 +601,7 @@ public function setCustomerStatement($customerStatement) * * @param string $sTxIdent * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setTransactionIdentifier($sTxIdent) { @@ -615,7 +615,7 @@ public function setTransactionIdentifier($sTxIdent) * * @param array $paymentTypes * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setPaymenttypeSortOrder($paymentTypes) { @@ -664,7 +664,7 @@ public function getCustomerStatement() * * @param string $orderReference * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setOrderReference($orderReference) { @@ -678,7 +678,7 @@ public function setOrderReference($orderReference) * * @param string $bBool * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setAutoDeposit($bBool) { @@ -692,7 +692,7 @@ public function setAutoDeposit($bBool) * * @param string $maxRetries * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setMaxRetries($maxRetries) { @@ -723,7 +723,7 @@ public function createConsumerMerchantCrmId($userEmail) * * @param int $orderNumber * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setOrderNumber($orderNumber) { @@ -737,7 +737,7 @@ public function setOrderNumber($orderNumber) * * @param string $confirmMail * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setConfirmMail($confirmMail) { @@ -751,7 +751,7 @@ public function setConfirmMail($confirmMail) * * @param string $backgroundColor * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setBackgroundColor($backgroundColor) { @@ -765,7 +765,7 @@ public function setBackgroundColor($backgroundColor) * * @param string $layout * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setLayout($layout) { @@ -777,11 +777,11 @@ public function setLayout($layout) /** * adds given consumerData to qpay request * - * @param WirecardCEE_Stdlib_ConsumerData $consumerData + * @param QentaCEE_Stdlib_ConsumerData $consumerData * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ - public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) + public function setConsumerData(QentaCEE_Stdlib_ConsumerData $consumerData) { $this->oConsumerData = $consumerData; foreach ($consumerData->getData() as $key => $value) { @@ -792,10 +792,10 @@ public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) } /** - * @param WirecardCEE_Stdlib_Basket $basket + * @param QentaCEE_Stdlib_Basket $basket * @return $this */ - public function setBasket(WirecardCEE_Stdlib_Basket $basket) { + public function setBasket(QentaCEE_Stdlib_Basket $basket) { $this->oBasket = $basket; foreach($basket->getData() AS $key => $value) { $this->_setField($key, $value); @@ -807,7 +807,7 @@ public function setBasket(WirecardCEE_Stdlib_Basket $basket) { * * @param string $sPluginVersion * - * @return WirecardCEE_QPay_FrontendClient + * @return QentaCEE_QPay_FrontendClient */ public function setPluginVersion($sPluginVersion) { @@ -824,12 +824,12 @@ public function setShippingProfile($shippingProfile) /** * Getter for response object * - * @return WirecardCEE_QPay_Response_Initiation + * @return QentaCEE_QPay_Response_Initiation * @throws Exception */ public function getResponse() { - if (!$this->oResponse instanceof WirecardCEE_QPay_Response_Initiation) { + if (!$this->oResponse instanceof QentaCEE_QPay_Response_Initiation) { throw new Exception(sprintf("%s should be called after the initiate() function!", __METHOD__)); } @@ -892,15 +892,15 @@ public static function generatePluginVersion( */ protected function _isConsumerDataValid() { - // if consumer data is not an instance of WirecardCEE_Stdlib_ConsumerData + // if consumer data is not an instance of QentaCEE_Stdlib_ConsumerData // or if it's empty don't even bother with any checkings... - if (empty( $this->oConsumerData ) || !$this->oConsumerData instanceof WirecardCEE_Stdlib_ConsumerData) { + if (empty( $this->oConsumerData ) || !$this->oConsumerData instanceof QentaCEE_Stdlib_ConsumerData) { return false; } - // @see WirecardCEE_QPay_Request_Initiation_ConsumerData - $sConsumerIpAddressField = WirecardCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName(); - $sConsumerUserAgentField = WirecardCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName(); + // @see QentaCEE_QPay_Request_Initiation_ConsumerData + $sConsumerIpAddressField = QentaCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName(); + $sConsumerUserAgentField = QentaCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName(); // get all the consumer data in an array // @todo when 5.4 becomes available on our server we coulde use eg. @@ -915,7 +915,7 @@ protected function _isConsumerDataValid() /** * Returns the requestUrl * - * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() * @return string */ protected function _getRequestUrl() diff --git a/library/WirecardCEE/QPay/MobileDetect.php b/library/QentaCEE/QPay/MobileDetect.php similarity index 70% rename from library/WirecardCEE/QPay/MobileDetect.php rename to library/QentaCEE/QPay/MobileDetect.php index 08b7d77..e80bb06 100644 --- a/library/WirecardCEE/QPay/MobileDetect.php +++ b/library/QentaCEE/QPay/MobileDetect.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ */ /** - * Class WirecardCEE_QPay_MobileDetect + * Class QentaCEE_QPay_MobileDetect * * @method bool isTablet() isTablet($userAgent = null, $httpHeaders = null) * @method bool isMobile() isMobile($userAgent = null, $httpHeaders = null) */ -class WirecardCEE_QPay_MobileDetect +class QentaCEE_QPay_MobileDetect { public function __construct( array $headers = null, diff --git a/library/WirecardCEE/QPay/Module.php b/library/QentaCEE/QPay/Module.php similarity index 66% rename from library/WirecardCEE/QPay/Module.php rename to library/QentaCEE/QPay/Module.php index 1d69e7d..ed26bf5 100644 --- a/library/WirecardCEE/QPay/Module.php +++ b/library/QentaCEE/QPay/Module.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Module - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Module + * @category QentaCEE + * @package QentaCEE_QPay */ -class WirecardCEE_QPay_Module extends WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface +class QentaCEE_QPay_Module extends QentaCEE_Stdlib_Module_ModuleAbstract implements QentaCEE_Stdlib_Module_ModuleInterface { /** diff --git a/library/WirecardCEE/QPay/PaymentType.php b/library/QentaCEE/QPay/PaymentType.php similarity index 59% rename from library/WirecardCEE/QPay/PaymentType.php rename to library/QentaCEE/QPay/PaymentType.php index ffac0ad..bdd6f77 100644 --- a/library/WirecardCEE/QPay/PaymentType.php +++ b/library/QentaCEE/QPay/PaymentType.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_PaymentType - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_PaymentType + * @category QentaCEE + * @package QentaCEE_QPay */ -class WirecardCEE_QPay_PaymentType extends WirecardCEE_Stdlib_PaymentTypeAbstract +class QentaCEE_QPay_PaymentType extends QentaCEE_Stdlib_PaymentTypeAbstract { /** * diff --git a/library/WirecardCEE/QMore/Request/Backend/TransferFund.php b/library/QentaCEE/QPay/Request/Backend/TransferFund.php similarity index 77% rename from library/WirecardCEE/QMore/Request/Backend/TransferFund.php rename to library/QentaCEE/QPay/Request/Backend/TransferFund.php index 9fd584d..3387284 100644 --- a/library/WirecardCEE/QMore/Request/Backend/TransferFund.php +++ b/library/QentaCEE/QPay/Request/Backend/TransferFund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Existing + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QMore_Request_Backend_TransferFund extends WirecardCEE_QMore_BackendClient +class QentaCEE_QPay_Request_Backend_TransferFund extends QentaCEE_QPay_ToolkitClient { /** diff --git a/library/WirecardCEE/QPay/Request/Backend/TransferFund/Existing.php b/library/QentaCEE/QPay/Request/Backend/TransferFund/Existing.php similarity index 72% rename from library/WirecardCEE/QPay/Request/Backend/TransferFund/Existing.php rename to library/QentaCEE/QPay/Request/Backend/TransferFund/Existing.php index 62c1510..89bcfbd 100644 --- a/library/WirecardCEE/QPay/Request/Backend/TransferFund/Existing.php +++ b/library/QentaCEE/QPay/Request/Backend/TransferFund/Existing.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Existing + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QPay_Request_Backend_TransferFund_Existing extends WirecardCEE_QPay_Request_Backend_TransferFund +class QentaCEE_QPay_Request_Backend_TransferFund_Existing extends QentaCEE_QPay_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $sourceOrderNumber) @@ -79,6 +79,6 @@ public function send($amount, $currency, $orderDescription, $sourceOrderNumber) $this->_fingerprintOrder->setOrder($orderArray); - return new WirecardCEE_QPay_Response_Toolkit_TransferFund($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Request/Backend/TransferFund/Moneta.php b/library/QentaCEE/QPay/Request/Backend/TransferFund/Moneta.php similarity index 73% rename from library/WirecardCEE/QPay/Request/Backend/TransferFund/Moneta.php rename to library/QentaCEE/QPay/Request/Backend/TransferFund/Moneta.php index d666916..b43ef87 100644 --- a/library/WirecardCEE/QPay/Request/Backend/TransferFund/Moneta.php +++ b/library/QentaCEE/QPay/Request/Backend/TransferFund/Moneta.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_Moneta - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_Moneta + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QPay_Request_Backend_TransferFund_Moneta extends WirecardCEE_QPay_Request_Backend_TransferFund +class QentaCEE_QPay_Request_Backend_TransferFund_Moneta extends QentaCEE_QPay_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $customerStatement, $consumerWalletId) @@ -80,6 +80,6 @@ public function send($amount, $currency, $orderDescription, $customerStatement, $this->_fingerprintOrder->setOrder($orderArray); - return new WirecardCEE_QPay_Response_Toolkit_TransferFund($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Request/Backend/TransferFund/SepaCT.php b/library/QentaCEE/QPay/Request/Backend/TransferFund/SepaCT.php similarity index 76% rename from library/WirecardCEE/QPay/Request/Backend/TransferFund/SepaCT.php rename to library/QentaCEE/QPay/Request/Backend/TransferFund/SepaCT.php index 3a4dfd6..3b5b1d8 100644 --- a/library/WirecardCEE/QPay/Request/Backend/TransferFund/SepaCT.php +++ b/library/QentaCEE/QPay/Request/Backend/TransferFund/SepaCT.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,10 +32,10 @@ /** - * @name WirecardCEE_QPay_Request_Backend_TransferFund_SkrillWallet - * @category WirecardCEE + * @name QentaCEE_QPay_Request_Backend_TransferFund_SkrillWallet + * @category QentaCEE */ -class WirecardCEE_QPay_Request_Backend_TransferFund_SepaCT extends WirecardCEE_QPay_Request_Backend_TransferFund +class QentaCEE_QPay_Request_Backend_TransferFund_SepaCT extends QentaCEE_QPay_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $bankAccountOwner, $bankBic, $bankAccountIban) @@ -85,6 +85,6 @@ public function send($amount, $currency, $orderDescription, $bankAccountOwner, $ $this->_fingerprintOrder->setOrder($orderArray); - return new WirecardCEE_QPay_Response_Toolkit_TransferFund($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php b/library/QentaCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php similarity index 73% rename from library/WirecardCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php rename to library/QentaCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php index 4ac9b25..46c9d0d 100644 --- a/library/WirecardCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php +++ b/library/QentaCEE/QPay/Request/Backend/TransferFund/SkrillWallet.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet + * @category QentaCEE + * @package QentaCEE_QMore */ -class WirecardCEE_QPay_Request_Backend_TransferFund_SkrillWallet extends WirecardCEE_QPay_Request_Backend_TransferFund +class QentaCEE_QPay_Request_Backend_TransferFund_SkrillWallet extends QentaCEE_QPay_Request_Backend_TransferFund { public function send($amount, $currency, $orderDescription, $customerStatement, $consumerEmail) @@ -80,6 +80,6 @@ public function send($amount, $currency, $orderDescription, $customerStatement, $this->_fingerprintOrder->setOrder($orderArray); - return new WirecardCEE_QPay_Response_Toolkit_TransferFund($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_TransferFund($this->_send()); } } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Response/Initiation.php b/library/QentaCEE/QPay/Response/Initiation.php similarity index 61% rename from library/WirecardCEE/QPay/Response/Initiation.php rename to library/QentaCEE/QPay/Response/Initiation.php index 458fea6..ad2c346 100644 --- a/library/WirecardCEE/QPay/Response/Initiation.php +++ b/library/QentaCEE/QPay/Response/Initiation.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,15 +32,15 @@ /** - * @name WirecardCEE_QPay_Response_Initiation - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Initiation + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response */ -class WirecardCEE_QPay_Response_Initiation extends WirecardCEE_QPay_Response_ResponseAbstract +class QentaCEE_QPay_Response_Initiation extends QentaCEE_QPay_Response_ResponseAbstract { /** - * @see WirecardCEE_QPay_Response_ResponseAbstract::getStatus() + * @see QentaCEE_QPay_Response_ResponseAbstract::getStatus() * if we have got a redirectUrl the initiation has been successful * @return int */ diff --git a/library/WirecardCEE/QPay/Response/ResponseAbstract.php b/library/QentaCEE/QPay/Response/ResponseAbstract.php similarity index 64% rename from library/WirecardCEE/QPay/Response/ResponseAbstract.php rename to library/QentaCEE/QPay/Response/ResponseAbstract.php index 667db54..d3ad300 100644 --- a/library/WirecardCEE/QPay/Response/ResponseAbstract.php +++ b/library/QentaCEE/QPay/Response/ResponseAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QPay_Response_ResponseAbstract - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_ResponseAbstract + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response * @abstract */ -abstract class WirecardCEE_QPay_Response_ResponseAbstract extends WirecardCEE_Stdlib_Response_ResponseAbstract +abstract class QentaCEE_QPay_Response_ResponseAbstract extends QentaCEE_Stdlib_Response_ResponseAbstract { /** * getter for the Response status @@ -53,14 +53,14 @@ abstract public function getStatus(); /** * getter for list of errors that occured * - * @return WirecardCEE_QPay_Error + * @return QentaCEE_QPay_Error */ public function getError() { $oError = false; if (isset( $this->_response[self::$ERROR_MESSAGE] )) { - $oError = new WirecardCEE_QPay_Error($this->_response[self::$ERROR_MESSAGE]); + $oError = new QentaCEE_QPay_Error($this->_response[self::$ERROR_MESSAGE]); if (isset( $this->_response[self::$ERROR_CONSUMER_MESSAGE] )) { $oError->setConsumerMessage($this->_response[self::$ERROR_CONSUMER_MESSAGE]); diff --git a/library/WirecardCEE/QPay/Response/Toolkit/ApproveReversal.php b/library/QentaCEE/QPay/Response/Toolkit/ApproveReversal.php similarity index 57% rename from library/WirecardCEE/QPay/Response/Toolkit/ApproveReversal.php rename to library/QentaCEE/QPay/Response/Toolkit/ApproveReversal.php index 28bc78f..44b18de 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/ApproveReversal.php +++ b/library/QentaCEE/QPay/Response/Toolkit/ApproveReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_ApproveReversal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_ApproveReversal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_ApproveReversal extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_ApproveReversal extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Deposit.php b/library/QentaCEE/QPay/Response/Toolkit/Deposit.php similarity index 64% rename from library/WirecardCEE/QPay/Response/Toolkit/Deposit.php rename to library/QentaCEE/QPay/Response/Toolkit/Deposit.php index 94f9d21..92b3ec4 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Deposit.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Deposit.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Deposit - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Deposit + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_Deposit extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_Deposit extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { /** * Payment number diff --git a/library/WirecardCEE/QPay/Response/Toolkit/DepositReversal.php b/library/QentaCEE/QPay/Response/Toolkit/DepositReversal.php similarity index 57% rename from library/WirecardCEE/QPay/Response/Toolkit/DepositReversal.php rename to library/QentaCEE/QPay/Response/Toolkit/DepositReversal.php index daa9919..dc7b492 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/DepositReversal.php +++ b/library/QentaCEE/QPay/Response/Toolkit/DepositReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_DepositReversal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_DepositReversal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_DepositReversal extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_DepositReversal extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Response/Toolkit/FinancialObject.php b/library/QentaCEE/QPay/Response/Toolkit/FinancialObject.php similarity index 67% rename from library/WirecardCEE/QPay/Response/Toolkit/FinancialObject.php rename to library/QentaCEE/QPay/Response/Toolkit/FinancialObject.php index c8fdd06..a3abb40 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/FinancialObject.php +++ b/library/QentaCEE/QPay/Response/Toolkit/FinancialObject.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_FinancialObject - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_FinancialObject + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit * @abstract */ -abstract class WirecardCEE_QPay_Response_Toolkit_FinancialObject +abstract class QentaCEE_QPay_Response_Toolkit_FinancialObject { /** * Internal data holder diff --git a/library/WirecardCEE/QPay/Response/Toolkit/GetOrderDetails.php b/library/QentaCEE/QPay/Response/Toolkit/GetOrderDetails.php similarity index 69% rename from library/WirecardCEE/QPay/Response/Toolkit/GetOrderDetails.php rename to library/QentaCEE/QPay/Response/Toolkit/GetOrderDetails.php index 887c277..e2a14ef 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/GetOrderDetails.php +++ b/library/QentaCEE/QPay/Response/Toolkit/GetOrderDetails.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,17 +32,17 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_GetOrderDetails - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_GetOrderDetails + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_GetOrderDetails extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_GetOrderDetails extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { /** * Internal order holder * - * @var WirecardCEE_QPay_Response_Toolkit_Order + * @var QentaCEE_QPay_Response_Toolkit_Order */ private $_order; @@ -69,7 +69,7 @@ class WirecardCEE_QPay_Response_Toolkit_GetOrderDetails extends WirecardCEE_QPay /** * - * @see WirecardCEE_QPay_Response_Toolkit_Abstract + * @see QentaCEE_QPay_Response_Toolkit_Abstract * * @param array $result */ @@ -94,14 +94,14 @@ public function __construct($result) $order['paymentData'] = isset($payments[0]) ? $payments[0] : Array(); $order['creditData'] = isset($credits[0]) ? $credits[0] : Array(); - $this->_order = new WirecardCEE_QPay_Response_Toolkit_Order($order); + $this->_order = new QentaCEE_QPay_Response_Toolkit_Order($order); } /** * getter for the returned order object * - * @return WirecardCEE_QPay_Response_Toolkit_Order + * @return QentaCEE_QPay_Response_Toolkit_Order */ public function getOrder() { diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order.php b/library/QentaCEE/QPay/Response/Toolkit/Order.php similarity index 83% rename from library/WirecardCEE/QPay/Response/Toolkit/Order.php rename to library/QentaCEE/QPay/Response/Toolkit/Order.php index d02099f..5df7c32 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,17 +32,17 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_Order extends WirecardCEE_QPay_Response_Toolkit_FinancialObject +class QentaCEE_QPay_Response_Toolkit_Order extends QentaCEE_QPay_Response_Toolkit_FinancialObject { /** * CreditIterator object holder * - * @var WirecardCEE_QPay_Response_Toolkit_Order_CreditIterator + * @var QentaCEE_QPay_Response_Toolkit_Order_CreditIterator * @internal */ private $_credits; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Response_Toolkit_Order extends WirecardCEE_QPay_Response_ /** * PaymentIterator object holder * - * @var WirecardCEE_QPay_Response_Toolkit_Order_PaymentIterator + * @var QentaCEE_QPay_Response_Toolkit_Order_PaymentIterator * @internal */ private $_payments; @@ -217,7 +217,7 @@ class WirecardCEE_QPay_Response_Toolkit_Order extends WirecardCEE_QPay_Response_ /** * creates an instance of the {@link - * WirecardCEE_QPay_Response_Toolkit_Order} object + * QentaCEE_QPay_Response_Toolkit_Order} object * * @param string[] $orderData */ @@ -245,20 +245,20 @@ private function _setPayments($paymentEntries) foreach ($paymentEntries as $paymentEntry) { switch ($paymentEntry['paymentType']) { case self::$PAYMENTTYPE_PAYPAL: - $payments[] = new WirecardCEE_QPay_Response_Toolkit_Order_Payment_Paypal($paymentEntry); + $payments[] = new QentaCEE_QPay_Response_Toolkit_Order_Payment_Paypal($paymentEntry); break; case self::$PAYMENTTYPE_SOFORTUEBERWEISUNG: - $payments[] = new WirecardCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung($paymentEntry); + $payments[] = new QentaCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung($paymentEntry); break; case self::$PAYMENTTYPE_IDEAL: - $payments[] = new WirecardCEE_QPay_Response_Toolkit_Order_Payment_Ideal($paymentEntry); + $payments[] = new QentaCEE_QPay_Response_Toolkit_Order_Payment_Ideal($paymentEntry); break; default: - $payments[] = new WirecardCEE_QPay_Response_Toolkit_Order_Payment($paymentEntry); + $payments[] = new QentaCEE_QPay_Response_Toolkit_Order_Payment($paymentEntry); break; } } - $this->_payments = new WirecardCEE_QPay_Response_Toolkit_Order_PaymentIterator($payments); + $this->_payments = new QentaCEE_QPay_Response_Toolkit_Order_PaymentIterator($payments); } /** @@ -272,9 +272,9 @@ private function _setCredits($creditEntries) { $credits = Array(); foreach ($creditEntries as $creditEntry) { - $credits[] = new WirecardCEE_QPay_Response_Toolkit_Order_Credit($creditEntry); + $credits[] = new QentaCEE_QPay_Response_Toolkit_Order_Credit($creditEntry); } - $this->_credits = new WirecardCEE_QPay_Response_Toolkit_Order_CreditIterator($credits); + $this->_credits = new QentaCEE_QPay_Response_Toolkit_Order_CreditIterator($credits); } /** @@ -454,7 +454,7 @@ public function getSourceOrderNumber() /** * getter for corresponding payment objects * - * @return WirecardCEE_QPay_Response_Toolkit_Order_PaymentIterator + * @return QentaCEE_QPay_Response_Toolkit_Order_PaymentIterator */ public function getPayments() { @@ -464,7 +464,7 @@ public function getPayments() /** * getter for corresponding credit objects * - * @return WirecardCEE_QPay_Response_Toolkit_Order_CreditIterator + * @return QentaCEE_QPay_Response_Toolkit_Order_CreditIterator */ public function getCredits() { diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/Credit.php b/library/QentaCEE/QPay/Response/Toolkit/Order/Credit.php similarity index 85% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/Credit.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/Credit.php index c6667f1..46b398d 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/Credit.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/Credit.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_Credit - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_Credit + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order * @abstract */ -class WirecardCEE_QPay_Response_Toolkit_Order_Credit extends WirecardCEE_QPay_Response_Toolkit_FinancialObject +class QentaCEE_QPay_Response_Toolkit_Order_Credit extends QentaCEE_QPay_Response_Toolkit_FinancialObject { /** * Merchant number @@ -130,7 +130,7 @@ class WirecardCEE_QPay_Response_Toolkit_Order_Credit extends WirecardCEE_QPay_Re /** * creates an instance of an {@link - * WirecardCEE_QPay_Response_Toolkit_Order_Credit} object + * QentaCEE_QPay_Response_Toolkit_Order_Credit} object * * @param string[] $creditData */ diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/CreditIterator.php b/library/QentaCEE/QPay/Response/Toolkit/Order/CreditIterator.php similarity index 57% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/CreditIterator.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/CreditIterator.php index 30c98d7..4375d7b 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/CreditIterator.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/CreditIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_CreditIterator - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_CreditIterator + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order * @abstract */ -class WirecardCEE_QPay_Response_Toolkit_Order_CreditIterator extends WirecardCEE_QPay_Response_Toolkit_Order_OrderIterator +class QentaCEE_QPay_Response_Toolkit_Order_CreditIterator extends QentaCEE_QPay_Response_Toolkit_Order_OrderIterator { } diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/OrderIterator.php b/library/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php similarity index 74% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/OrderIterator.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php index bff2958..5d67ccf 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/OrderIterator.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/OrderIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,14 +32,14 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_OrderIterator - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_OrderIterator + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order * @abstract * @see Iterator */ -abstract class WirecardCEE_QPay_Response_Toolkit_Order_OrderIterator implements Iterator +abstract class QentaCEE_QPay_Response_Toolkit_Order_OrderIterator implements Iterator { /** diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment.php b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment.php similarity index 87% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/Payment.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/Payment.php index 1eed5b6..8c55d3e 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_Payment - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_Payment + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order */ -class WirecardCEE_QPay_Response_Toolkit_Order_Payment extends WirecardCEE_QPay_Response_Toolkit_FinancialObject +class QentaCEE_QPay_Response_Toolkit_Order_Payment extends QentaCEE_QPay_Response_Toolkit_FinancialObject { /** * Merchant number @@ -153,7 +153,7 @@ class WirecardCEE_QPay_Response_Toolkit_Order_Payment extends WirecardCEE_QPay_R /** * creates an instance of an {@link - * WirecardCEE_QPay_Response_Toolkit_Order_Payment} object + * QentaCEE_QPay_Response_Toolkit_Order_Payment} object * * @param string[] $paymentData */ diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php similarity index 72% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php index afd6f75..736c379 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Ideal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_Payment_Ideal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_Payment_Ideal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order_Payment */ -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_Ideal extends WirecardCEE_QPay_Response_Toolkit_Order_Payment +class QentaCEE_QPay_Response_Toolkit_Order_Payment_Ideal extends QentaCEE_QPay_Response_Toolkit_Order_Payment { /** * iDEAL consumer name diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php similarity index 88% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php index 9ebc4ed..7bc750f 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Paypal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_Payment_Paypal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_Payment_Paypal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order_Payment */ -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_Paypal extends WirecardCEE_QPay_Response_Toolkit_Order_Payment +class QentaCEE_QPay_Response_Toolkit_Order_Payment_Paypal extends QentaCEE_QPay_Response_Toolkit_Order_Payment { /** * PayPal - payer ID diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php similarity index 82% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php index 6abb97f..2f2259f 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/Payment/Sofortueberweisung.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order_Payment */ -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung extends WirecardCEE_QPay_Response_Toolkit_Order_Payment +class QentaCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung extends QentaCEE_QPay_Response_Toolkit_Order_Payment { /** * Sender - account owner diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Order/PaymentIterator.php b/library/QentaCEE/QPay/Response/Toolkit/Order/PaymentIterator.php similarity index 56% rename from library/WirecardCEE/QPay/Response/Toolkit/Order/PaymentIterator.php rename to library/QentaCEE/QPay/Response/Toolkit/Order/PaymentIterator.php index 6c15e29..682313d 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Order/PaymentIterator.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Order/PaymentIterator.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Order_PaymentIterator - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_Order_PaymentIterator + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit_Order */ -class WirecardCEE_QPay_Response_Toolkit_Order_PaymentIterator extends WirecardCEE_QPay_Response_Toolkit_Order_OrderIterator +class QentaCEE_QPay_Response_Toolkit_Order_PaymentIterator extends QentaCEE_QPay_Response_Toolkit_Order_OrderIterator { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Response/Toolkit/RecurPayment.php b/library/QentaCEE/QPay/Response/Toolkit/RecurPayment.php similarity index 63% rename from library/WirecardCEE/QPay/Response/Toolkit/RecurPayment.php rename to library/QentaCEE/QPay/Response/Toolkit/RecurPayment.php index d7efb64..3a84bb1 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/RecurPayment.php +++ b/library/QentaCEE/QPay/Response/Toolkit/RecurPayment.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_RecurPayment - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_RecurPayment + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_RecurPayment extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_RecurPayment extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { /** * Order number diff --git a/library/WirecardCEE/QMore/Response/Backend/TransferFund.php b/library/QentaCEE/QPay/Response/Toolkit/Refund.php similarity index 62% rename from library/WirecardCEE/QMore/Response/Backend/TransferFund.php rename to library/QentaCEE/QPay/Response/Toolkit/Refund.php index bf38a3b..90d3bbc 100644 --- a/library/WirecardCEE/QMore/Response/Backend/TransferFund.php +++ b/library/QentaCEE/QPay/Response/Toolkit/Refund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QMore_Response_Backend_TransferFund - * @category WirecardCEE - * @package WirecardCEE_QMore - * @subpackage Response_Backend + * @name QentaCEE_QPay_Response_Toolkit_Refund + * @category QentaCEE + * @package QentaCEE_QPay + * @subpackage Response_Toolkit */ -class WirecardCEE_QMore_Response_Backend_TransferFund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_Refund extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { /** * Credit number diff --git a/library/WirecardCEE/QPay/Response/Toolkit/RefundReversal.php b/library/QentaCEE/QPay/Response/Toolkit/RefundReversal.php similarity index 57% rename from library/WirecardCEE/QPay/Response/Toolkit/RefundReversal.php rename to library/QentaCEE/QPay/Response/Toolkit/RefundReversal.php index 3b90bc9..5c26414 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/RefundReversal.php +++ b/library/QentaCEE/QPay/Response/Toolkit/RefundReversal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_RefundReversal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_RefundReversal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit */ -class WirecardCEE_QPay_Response_Toolkit_RefundReversal extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_RefundReversal extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Response/Toolkit/ResponseAbstract.php b/library/QentaCEE/QPay/Response/Toolkit/ResponseAbstract.php similarity index 67% rename from library/WirecardCEE/QPay/Response/Toolkit/ResponseAbstract.php rename to library/QentaCEE/QPay/Response/Toolkit/ResponseAbstract.php index 12547c1..bf643f3 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/ResponseAbstract.php +++ b/library/QentaCEE/QPay/Response/Toolkit/ResponseAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_ResponseAbstract - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Response_Toolkit_ResponseAbstract + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Response_Toolkit * @abstract */ -abstract class WirecardCEE_QPay_Response_Toolkit_ResponseAbstract extends WirecardCEE_QPay_Response_ResponseAbstract +abstract class QentaCEE_QPay_Response_Toolkit_ResponseAbstract extends QentaCEE_QPay_Response_ResponseAbstract { /** * Status diff --git a/library/WirecardCEE/QPay/Response/Toolkit/Refund.php b/library/QentaCEE/QPay/Response/Toolkit/TransferFund.php similarity index 64% rename from library/WirecardCEE/QPay/Response/Toolkit/Refund.php rename to library/QentaCEE/QPay/Response/Toolkit/TransferFund.php index 988093b..a38632c 100644 --- a/library/WirecardCEE/QPay/Response/Toolkit/Refund.php +++ b/library/QentaCEE/QPay/Response/Toolkit/TransferFund.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_QPay_Response_Toolkit_Refund - * @category WirecardCEE - * @package WirecardCEE_QPay - * @subpackage Response_Toolkit + * @name QentaCEE_QPay_Response_Toolkit_TransferFund + * @category QentaCEE + * @package QentaCEE_QMore + * @subpackage Response_Backend */ -class WirecardCEE_QPay_Response_Toolkit_Refund extends WirecardCEE_QPay_Response_Toolkit_ResponseAbstract +class QentaCEE_QPay_Response_Toolkit_TransferFund extends QentaCEE_QPay_Response_Toolkit_ResponseAbstract { /** * Credit number diff --git a/library/WirecardCEE/QMore/Return/Cancel.php b/library/QentaCEE/QPay/Return/Cancel.php similarity index 58% rename from library/WirecardCEE/QMore/Return/Cancel.php rename to library/QentaCEE/QPay/Return/Cancel.php index 278de99..cde1db4 100644 --- a/library/WirecardCEE/QMore/Return/Cancel.php +++ b/library/QentaCEE/QPay/Return/Cancel.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Return_Cancel - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_QPay_Return_Cancel + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return */ -class WirecardCEE_QMore_Return_Cancel extends WirecardCEE_Stdlib_Return_Cancel +class QentaCEE_QPay_Return_Cancel extends QentaCEE_Stdlib_Return_Cancel { } diff --git a/library/WirecardCEE/QPay/Return/Failure.php b/library/QentaCEE/QPay/Return/Failure.php similarity index 61% rename from library/WirecardCEE/QPay/Return/Failure.php rename to library/QentaCEE/QPay/Return/Failure.php index 203a83f..6c5a54f 100644 --- a/library/WirecardCEE/QPay/Return/Failure.php +++ b/library/QentaCEE/QPay/Return/Failure.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,21 +32,21 @@ /** - * @name WirecardCEE_QPay_Return_Failure - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Failure + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return */ -class WirecardCEE_QPay_Return_Failure extends WirecardCEE_Stdlib_Return_Failure +class QentaCEE_QPay_Return_Failure extends QentaCEE_Stdlib_Return_Failure { /** * getter for list of errors that occured * - * @return WirecardCEE_QPay_Error + * @return QentaCEE_QPay_Error */ public function getErrors() { - $oError = new WirecardCEE_QPay_Error($this->_returnData[self::$ERROR_MESSAGE]); + $oError = new QentaCEE_QPay_Error($this->_returnData[self::$ERROR_MESSAGE]); if (isset( $this->_returnData[self::$ERROR_CONSUMER_MESSAGE] )) { $oError->setConsumerMessage($this->_returnData[self::$ERROR_CONSUMER_MESSAGE]); diff --git a/library/WirecardCEE/QPay/Return/Pending.php b/library/QentaCEE/QPay/Return/Pending.php similarity index 58% rename from library/WirecardCEE/QPay/Return/Pending.php rename to library/QentaCEE/QPay/Return/Pending.php index 79e8b7d..e5261a2 100644 --- a/library/WirecardCEE/QPay/Return/Pending.php +++ b/library/QentaCEE/QPay/Return/Pending.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Pending - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Pending + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return */ -class WirecardCEE_QPay_Return_Pending extends WirecardCEE_Stdlib_Return_Pending +class QentaCEE_QPay_Return_Pending extends QentaCEE_Stdlib_Return_Pending { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Return/Success.php b/library/QentaCEE/QPay/Return/Success.php similarity index 58% rename from library/WirecardCEE/QPay/Return/Success.php rename to library/QentaCEE/QPay/Return/Success.php index 43ef25f..acea887 100644 --- a/library/WirecardCEE/QPay/Return/Success.php +++ b/library/QentaCEE/QPay/Return/Success.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Success - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Success + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return */ -class WirecardCEE_QPay_Return_Success extends WirecardCEE_Stdlib_Return_Success +class QentaCEE_QPay_Return_Success extends QentaCEE_Stdlib_Return_Success { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Return/Success/CreditCard.php b/library/QentaCEE/QPay/Return/Success/CreditCard.php similarity index 57% rename from library/WirecardCEE/QPay/Return/Success/CreditCard.php rename to library/QentaCEE/QPay/Return/Success/CreditCard.php index a659052..ef904a5 100644 --- a/library/WirecardCEE/QPay/Return/Success/CreditCard.php +++ b/library/QentaCEE/QPay/Return/Success/CreditCard.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Success_CreditCard - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Success_CreditCard + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return_Success */ -class WirecardCEE_QPay_Return_Success_CreditCard extends WirecardCEE_Stdlib_Return_Success_CreditCard +class QentaCEE_QPay_Return_Success_CreditCard extends QentaCEE_Stdlib_Return_Success_CreditCard { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Return/Success/Ideal.php b/library/QentaCEE/QPay/Return/Success/Ideal.php similarity index 58% rename from library/WirecardCEE/QPay/Return/Success/Ideal.php rename to library/QentaCEE/QPay/Return/Success/Ideal.php index 5b32a44..0745aae 100644 --- a/library/WirecardCEE/QPay/Return/Success/Ideal.php +++ b/library/QentaCEE/QPay/Return/Success/Ideal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Success_Ideal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Success_Ideal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return_Success */ -class WirecardCEE_QPay_Return_Success_Ideal extends WirecardCEE_Stdlib_Return_Success_Ideal +class QentaCEE_QPay_Return_Success_Ideal extends QentaCEE_Stdlib_Return_Success_Ideal { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Return/Success/PayPal.php b/library/QentaCEE/QPay/Return/Success/PayPal.php similarity index 58% rename from library/WirecardCEE/QPay/Return/Success/PayPal.php rename to library/QentaCEE/QPay/Return/Success/PayPal.php index ed4ef22..98a2838 100644 --- a/library/WirecardCEE/QPay/Return/Success/PayPal.php +++ b/library/QentaCEE/QPay/Return/Success/PayPal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Success_PayPal - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Success_PayPal + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return_Success */ -class WirecardCEE_QPay_Return_Success_PayPal extends WirecardCEE_Stdlib_Return_Success_PayPal +class QentaCEE_QPay_Return_Success_PayPal extends QentaCEE_Stdlib_Return_Success_PayPal { } \ No newline at end of file diff --git a/library/WirecardCEE/QPay/Return/Success/Sofortueberweisung.php b/library/QentaCEE/QPay/Return/Success/Sofortueberweisung.php similarity index 56% rename from library/WirecardCEE/QPay/Return/Success/Sofortueberweisung.php rename to library/QentaCEE/QPay/Return/Success/Sofortueberweisung.php index 974b14f..b4b2b48 100644 --- a/library/WirecardCEE/QPay/Return/Success/Sofortueberweisung.php +++ b/library/QentaCEE/QPay/Return/Success/Sofortueberweisung.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QPay_Return_Success_Sofortueberweisung - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_Return_Success_Sofortueberweisung + * @category QentaCEE + * @package QentaCEE_QPay * @subpackage Return_Success */ -class WirecardCEE_QPay_Return_Success_Sofortueberweisung extends WirecardCEE_Stdlib_Return_Success_Sofortueberweisung +class QentaCEE_QPay_Return_Success_Sofortueberweisung extends QentaCEE_Stdlib_Return_Success_Sofortueberweisung { } \ No newline at end of file diff --git a/library/QentaCEE/QPay/ReturnFactory.php b/library/QentaCEE/QPay/ReturnFactory.php new file mode 100644 index 0000000..dd034be --- /dev/null +++ b/library/QentaCEE/QPay/ReturnFactory.php @@ -0,0 +1,138 @@ +|QentaCEE_QPay_Return_Cancel|QentaCEE_QPay_Return_Failure + */ + protected static function _getInstance($return, $secret) + { + switch (strtoupper($return['paymentState'])) { + case self::STATE_SUCCESS: + return self::_getSuccessInstance($return, $secret); + break; + case self::STATE_CANCEL: + return new QentaCEE_QPay_Return_Cancel($return); + break; + case self::STATE_FAILURE: + return new QentaCEE_QPay_Return_Failure($return); + break; + case parent::STATE_PENDING: + return new QentaCEE_QPay_Return_Pending($return, $secret); + break; + default: + throw new QentaCEE_QPay_Exception_InvalidResponseException('Invalid response from QPAY. Unexpected paymentState: ' . $return['paymentState']); + break; + } + } + + /** + * getter for the correct qpay success return instance + * + * @param string[] $return + * @param string $secret + * + * @return QentaCEE_QPay_Return_Success|QentaCEE_QPay_Return_Success_CreditCard|QentaCEE_QPay_Return_Success_Ideal|QentaCEE_QPay_Return_Success_PayPal|QentaCEE_QPay_Return_Success_Sofortueberweisung + * @throws QentaCEE_QPay_Exception_InvalidResponseException + */ + protected static function _getSuccessInstance($return, $secret) + { + if (!array_key_exists('paymentType', $return)) { + throw new QentaCEE_QPay_Exception_InvalidResponseException('Invalid response from QPAY. Paymenttype is missing.'); + } + + switch (strtoupper($return['paymentType'])) { + case QentaCEE_Stdlib_PaymentTypeAbstract::CCARD: + case QentaCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO: + case QentaCEE_Stdlib_PaymentTypeAbstract::MAESTRO: + return new QentaCEE_QPay_Return_Success_CreditCard($return, $secret); + break; + case QentaCEE_Stdlib_PaymentTypeAbstract::PAYPAL: + return new QentaCEE_QPay_Return_Success_PayPal($return, $secret); + break; + case QentaCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG: + return new QentaCEE_QPay_Return_Success_Sofortueberweisung($return, $secret); + break; + case QentaCEE_Stdlib_PaymentTypeAbstract::IDL: + return new QentaCEE_QPay_Return_Success_Ideal($return, $secret); + break; + default: + return new QentaCEE_QPay_Return_Success($return, $secret); + break; + } + } +} \ No newline at end of file diff --git a/library/WirecardCEE/QPay/ToolkitClient.php b/library/QentaCEE/QPay/ToolkitClient.php similarity index 75% rename from library/WirecardCEE/QPay/ToolkitClient.php rename to library/QentaCEE/QPay/ToolkitClient.php index c9a8c36..b6bae97 100644 --- a/library/WirecardCEE/QPay/ToolkitClient.php +++ b/library/QentaCEE/QPay/ToolkitClient.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_QPay_ToolkitClient - * @category WirecardCEE - * @package WirecardCEE_QPay + * @name QentaCEE_QPay_ToolkitClient + * @category QentaCEE + * @package QentaCEE_QPay * * @important All the toolkit functions have to call _setField before setting _fingerprintOrder */ -class WirecardCEE_QPay_ToolkitClient extends WirecardCEE_Stdlib_Client_ClientAbstract +class QentaCEE_QPay_ToolkitClient extends QentaCEE_Stdlib_Client_ClientAbstract { /** @@ -237,27 +237,27 @@ class WirecardCEE_QPay_ToolkitClient extends WirecardCEE_Stdlib_Client_ClientAbs protected $_fingerprintOrderType = 1; /** - * Creates an instance of WirecardCEE_QPay_ToolkitClient object. + * Creates an instance of QentaCEE_QPay_ToolkitClient object. * used for toolkit operations. * * @param array $aConfig */ public function __construct($aConfig = null) { - $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); if (is_null($aConfig)) { - $aConfig = WirecardCEE_QPay_Module::getConfig(); + $aConfig = QentaCEE_QPay_Module::getConfig(); } - if (is_array($aConfig) && isset( $aConfig['WirecardCEEQPayConfig'] )) { - // we only need the WirecardCEEQPayConfig here - $aConfig = $aConfig['WirecardCEEQPayConfig']; + if (is_array($aConfig) && isset( $aConfig['QentaCEEQPayConfig'] )) { + // we only need the QentaCEEQPayConfig here + $aConfig = $aConfig['QentaCEEQPayConfig']; } // let's store configuration details in internal objects - $this->oUserConfig = is_object($aConfig) ? $aConfig : new WirecardCEE_Stdlib_Config($aConfig); - $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QPay_Module::getClientConfig()); + $this->oUserConfig = is_object($aConfig) ? $aConfig : new QentaCEE_Stdlib_Config($aConfig); + $this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QPay_Module::getClientConfig()); // now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET // exist in $this->oUserConfig object that we created from config array @@ -269,27 +269,27 @@ public function __construct($aConfig = null) // If not throw the InvalidArgumentException exception! if (empty( $sCustomerId ) || is_null($sCustomerId)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__)); } if (empty( $sLanguage ) || is_null($sLanguage)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__)); } if (empty( $sSecret ) || is_null($sSecret)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__)); } if (empty( $sToolkitPassword ) || is_null($sToolkitPassword)) { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(sprintf('TOOLKIT PASSWORD passed to %s is invalid.', + throw new QentaCEE_QPay_Exception_InvalidArgumentException(sprintf('TOOLKIT PASSWORD passed to %s is invalid.', __METHOD__)); } // we're using hmac sha512 for hash-ing - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); // everything ok! let's set the fields $this->_setField(self::CUSTOMER_ID, $sCustomerId); @@ -302,8 +302,8 @@ public function __construct($aConfig = null) /** * Refund * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_Refund + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_Refund */ public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null) { @@ -327,14 +327,14 @@ public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null) )); $this->_appendBasketFingerprintOrder($basket); - return new WirecardCEE_QPay_Response_Toolkit_Refund($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_Refund($this->_send()); } /** * Refund reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_RefundReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_RefundReversal */ public function refundReversal($iOrderNumber, $iCreditNumber) { @@ -354,14 +354,14 @@ public function refundReversal($iOrderNumber, $iCreditNumber) self::CREDIT_NUMBER )); - return new WirecardCEE_QPay_Response_Toolkit_RefundReversal($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_RefundReversal($this->_send()); } /** * Recur payment * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_RecurPayment + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_RecurPayment */ public function recurPayment( $iSourceOrderNumber, @@ -403,7 +403,7 @@ public function recurPayment( self::CURRENCY )); - return new WirecardCEE_QPay_Response_Toolkit_RecurPayment($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_RecurPayment($this->_send()); } /** @@ -411,8 +411,8 @@ public function recurPayment( * * @param int|string $iOrderNumber * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_GetOrderDetails + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_GetOrderDetails */ public function getOrderDetails($iOrderNumber) { @@ -429,14 +429,14 @@ public function getOrderDetails($iOrderNumber) self::ORDER_NUMBER )); - return new WirecardCEE_QPay_Response_Toolkit_GetOrderDetails($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_GetOrderDetails($this->_send()); } /** * Approve reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_ApproveReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_ApproveReversal */ public function approveReversal($iOrderNumber) { @@ -453,14 +453,14 @@ public function approveReversal($iOrderNumber) self::ORDER_NUMBER )); - return new WirecardCEE_QPay_Response_Toolkit_ApproveReversal($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_ApproveReversal($this->_send()); } /** * Deposit * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_Deposit + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_Deposit */ public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null) { @@ -484,14 +484,14 @@ public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null) )); $this->_appendBasketFingerprintOrder($basket); - return new WirecardCEE_QPay_Response_Toolkit_Deposit($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_Deposit($this->_send()); } /** * Deposit reversal * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @return WirecardCEE_QPay_Response_Toolkit_DepositReversal + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @return QentaCEE_QPay_Response_Toolkit_DepositReversal */ public function depositReversal($iOrderNumber, $iPaymentNumber) { @@ -511,7 +511,7 @@ public function depositReversal($iOrderNumber, $iPaymentNumber) self::PAYMENT_NUMBER )); - return new WirecardCEE_QPay_Response_Toolkit_DepositReversal($this->_send()); + return new QentaCEE_QPay_Response_Toolkit_DepositReversal($this->_send()); } @@ -520,31 +520,31 @@ public function depositReversal($iOrderNumber, $iPaymentNumber) * * @param string $fundTransferType * - * @return WirecardCEE_QPay_Request_Backend_TransferFund - * @throws WirecardCEE_Stdlib_Exception_InvalidTypeException + * @return QentaCEE_QPay_Request_Backend_TransferFund + * @throws QentaCEE_Stdlib_Exception_InvalidTypeException */ public function transferFund($fundTransferType) { switch ($fundTransferType) { case self::$TRANSFER_FUND_TYPE_EXISTING: - $client = new WirecardCEE_QPay_Request_Backend_TransferFund_Existing($this->oUserConfig); + $client = new QentaCEE_QPay_Request_Backend_TransferFund_Existing($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_SKIRLLWALLET: - $client = new WirecardCEE_QPay_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig); + $client = new QentaCEE_QPay_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_MONETA: - $client = new WirecardCEE_QPay_Request_Backend_TransferFund_Moneta($this->oUserConfig); + $client = new QentaCEE_QPay_Request_Backend_TransferFund_Moneta($this->oUserConfig); break; case self::$TRANSFER_FUND_TYPE_SEPACT: - $client = new WirecardCEE_QPay_Request_Backend_TransferFund_SepaCT($this->oUserConfig); + $client = new QentaCEE_QPay_Request_Backend_TransferFund_SepaCT($this->oUserConfig); break; default: - throw new WirecardCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType'); + throw new QentaCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType'); } $client->setType($fundTransferType); @@ -560,7 +560,7 @@ public function transferFund($fundTransferType) /** * - * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() + * @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl() * @return string */ protected function _getRequestUrl() diff --git a/library/WirecardCEE/Stdlib/Basket.php b/library/QentaCEE/Stdlib/Basket.php similarity index 72% rename from library/WirecardCEE/Stdlib/Basket.php rename to library/QentaCEE/Stdlib/Basket.php index 74769a1..02471a8 100644 --- a/library/WirecardCEE/Stdlib/Basket.php +++ b/library/QentaCEE/Stdlib/Basket.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Basket - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Basket + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Basket */ -class WirecardCEE_Stdlib_Basket +class QentaCEE_Stdlib_Basket { /** @@ -74,12 +74,12 @@ public function __construct() /** * Adds item to the basket * - * @param WirecardCEE_Stdlib_Basket_Item $oItem + * @param QentaCEE_Stdlib_Basket_Item $oItem * @param int $iQuantity * - * @return WirecardCEE_Stdlib_Basket + * @return QentaCEE_Stdlib_Basket */ - public function addItem(WirecardCEE_Stdlib_Basket_Item $oItem, $iQuantity = 1) + public function addItem(QentaCEE_Stdlib_Basket_Item $oItem, $iQuantity = 1) { $_mArticleNumber = $oItem->getArticleNumber(); $_quantity = $this->_getItemQuantity($_mArticleNumber); @@ -97,7 +97,7 @@ public function addItem(WirecardCEE_Stdlib_Basket_Item $oItem, $iQuantity = 1) } /** - * Returns the basket as pre-defined array (defined by WirecardCEE) + * Returns the basket as pre-defined array (defined by QentaCEE) * * @return Array */ @@ -112,15 +112,15 @@ public function getData() $mArticleNumber = $oItem['instance']->getArticleNumber(); $oItem = $oItem['instance']; - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER] = $mArticleNumber; + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER] = $mArticleNumber; $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . self::QUANTITY] = $this->_getItemQuantity($mArticleNumber); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_GROSS_AMOUNT] = $oItem->getUnitGrossAmount(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_NET_AMOUNT] = $oItem->getUnitNetAmount(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_AMOUNT] = $oItem->getUnitTaxAmount(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_RATE] = $oItem->getUnitTaxRate(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION] = $oItem->getDescription(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_NAME] = $oItem->getName(); - $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_IMAGE_URL] = $oItem->getImageUrl(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_GROSS_AMOUNT] = $oItem->getUnitGrossAmount(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_NET_AMOUNT] = $oItem->getUnitNetAmount(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_AMOUNT] = $oItem->getUnitTaxAmount(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_RATE] = $oItem->getUnitTaxRate(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION] = $oItem->getDescription(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_NAME] = $oItem->getName(); + $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . QentaCEE_Stdlib_Basket_Item::ITEM_IMAGE_URL] = $oItem->getImageUrl(); $_counter ++; } diff --git a/library/WirecardCEE/Stdlib/Basket/Item.php b/library/QentaCEE/Stdlib/Basket/Item.php similarity index 85% rename from library/WirecardCEE/Stdlib/Basket/Item.php rename to library/QentaCEE/Stdlib/Basket/Item.php index bb187ce..0dfda9b 100644 --- a/library/WirecardCEE/Stdlib/Basket/Item.php +++ b/library/QentaCEE/Stdlib/Basket/Item.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Basket_Item - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Basket_Item + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Basket */ -class WirecardCEE_Stdlib_Basket_Item +class QentaCEE_Stdlib_Basket_Item { /** @@ -78,7 +78,7 @@ public function __construct($mArticleNumber = null) * Sets the item tax amount * * @param mixed(integer|float) $fTaxAmount - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setUnitTaxAmount($fTaxAmount) { @@ -100,7 +100,7 @@ public function getUnitTaxAmount() * Sets the item tax rate * * @param mixed(integer|float) $fTaxRate - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setUnitTaxRate($fTaxRate) { @@ -123,7 +123,7 @@ public function getUnitTaxRate() * * @param mixed(string|integer) $mArticleNumber * - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setArticleNumber($mArticleNumber) { @@ -146,7 +146,7 @@ public function getArticleNumber() * Sets the gross amount for a unit * * @param mixed(integer|float) $fAmount - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setUnitGrossAmount($fAmount) { @@ -168,7 +168,7 @@ public function getUnitGrossAmount() * Sets the net amount for a unit * * @param mixed(integer|float) $fAmount - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setUnitNetAmount($fAmount) { @@ -191,7 +191,7 @@ public function getUnitNetAmount() * * @param string $sDescription * - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setDescription($sDescription) { @@ -217,7 +217,7 @@ public function getDescription() * Sets the item name * * @param string $sName - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setName($sName) { $this->_setField(self::ITEM_NAME, (string) $sName); @@ -239,7 +239,7 @@ public function getName() * Sets the item image url * * @param string $sImageUrl - * @return WirecardCEE_Stdlib_Basket_Item + * @return QentaCEE_Stdlib_Basket_Item */ public function setImageUrl($sImageUrl) { $this->_setField(self::ITEM_IMAGE_URL, (string) $sImageUrl); diff --git a/library/WirecardCEE/Stdlib/Client/ClientAbstract.php b/library/QentaCEE/Stdlib/Client/ClientAbstract.php similarity index 77% rename from library/WirecardCEE/Stdlib/Client/ClientAbstract.php rename to library/QentaCEE/Stdlib/Client/ClientAbstract.php index 7ca3e59..25a0ee2 100644 --- a/library/WirecardCEE/Stdlib/Client/ClientAbstract.php +++ b/library/QentaCEE/Stdlib/Client/ClientAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -35,13 +35,13 @@ use Psr\Http\Message\ResponseInterface; /** - * @name WirecardCEE_Stdlib_Client_ClientAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Client_ClientAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Client * @abstract */ -abstract class WirecardCEE_Stdlib_Client_ClientAbstract +abstract class QentaCEE_Stdlib_Client_ClientAbstract { /** @@ -81,7 +81,7 @@ abstract class WirecardCEE_Stdlib_Client_ClientAbstract /** * Fingeprint order * - * @var WirecardCEE_Stdlib_FingerprintOrder + * @var QentaCEE_Stdlib_FingerprintOrder */ protected $_fingerprintOrder; @@ -102,14 +102,14 @@ abstract class WirecardCEE_Stdlib_Client_ClientAbstract /** * User configuration holder! * - * @var WirecardCEE_Stdlib_Config + * @var QentaCEE_Stdlib_Config */ protected $oUserConfig; /** * Client configuration holder! * - * @var WirecardCEE_Stdlib_Config + * @var QentaCEE_Stdlib_Config */ protected $oClientConfig; @@ -228,7 +228,7 @@ abstract class WirecardCEE_Stdlib_Client_ClientAbstract /** * Must be implemented in the client object * - * @param array|WirecardCEE_Stdlib_Config $aConfig + * @param array|QentaCEE_Stdlib_Config $aConfig * * @abstract */ @@ -241,7 +241,7 @@ abstract public function __construct($aConfig = null); * * @param $httpClient * - * @return WirecardCEE_Stdlib_Client_ClientAbstract + * @return QentaCEE_Stdlib_Client_ClientAbstract */ public function setHttpClient($httpClient) { @@ -270,7 +270,7 @@ protected function _getHttpClient() /** * Returns the user configuration object * - * @return WirecardCEE_Stdlib_Config + * @return QentaCEE_Stdlib_Config */ public function getUserConfig() { @@ -280,7 +280,7 @@ public function getUserConfig() /** * Returns the client configuration object * - * @return WirecardCEE_Stdlib_Config + * @return QentaCEE_Stdlib_Config */ public function getClientConfig() { @@ -294,7 +294,7 @@ public function getClientConfig() */ public function getUserAgentString() { - $oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_Stdlib_Module::getClientConfig()); + $oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_Stdlib_Module::getClientConfig()); $sUserAgent = $this->_getUserAgent() . ";{$oClientConfig->MODULE_NAME};{$oClientConfig->MODULE_VERSION};"; @@ -349,7 +349,7 @@ protected function _setSecret($secret) /** * sends the request and returns the zend http response object instance * - * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException + * @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException * @return ResponseInterface */ protected function _send() @@ -364,7 +364,7 @@ protected function _send() try { $response = $this->_sendRequest(); } catch (RequestException $e) { - throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException($e->getMessage(), $e->getCode(), $e); + throw new QentaCEE_Stdlib_Client_Exception_InvalidResponseException($e->getMessage(), $e->getCode(), $e); } return $response; @@ -388,7 +388,7 @@ protected function _calculateFingerprint() $fingerprintFields = $this->_requestData; $fingerprintFields[self::SECRET] = $this->_secret; - return WirecardCEE_Stdlib_Fingerprint::generate($fingerprintFields, $oFingerprintOrder); + return QentaCEE_Stdlib_Fingerprint::generate($fingerprintFields, $oFingerprintOrder); } /** @@ -413,10 +413,10 @@ protected function _sendRequest() /** * Setter for requestfield. - * Bare in mind that $this->_fingerprintOrder is an WirecardCEE_Stdlib_FingerprintOrder object which implements + * Bare in mind that $this->_fingerprintOrder is an QentaCEE_Stdlib_FingerprintOrder object which implements * the ArrayAccess interface meaning we can use the array annotation [] on an object * - * @see WirecardCEE_Stdlib_FingerprintOrder + * @see QentaCEE_Stdlib_FingerprintOrder * * @param string $name * @param mixed $value @@ -442,7 +442,7 @@ protected function _isFieldSet($sFieldname) /** * Sets shopping basket data to _requestData * - * @param WirecardCEE_Stdlib_Basket $basket + * @param QentaCEE_Stdlib_Basket $basket */ protected function _setBasket($basket) { @@ -458,7 +458,7 @@ protected function _setBasket($basket) /** * Appends basket to fingerprint order * - * @param WirecardCEE_Stdlib_Basket $basket + * @param QentaCEE_Stdlib_Basket $basket */ protected function _appendBasketFingerprintOrder($basket) { @@ -467,17 +467,17 @@ protected function _appendBasketFingerprintOrder($basket) } $data = $basket->getData(); - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEMS; - for ($i = 1; $i <= (int)$data[WirecardCEE_Stdlib_Basket::BASKET_ITEMS]; $i++) { - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_QUANTITY; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_NAME; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_IMAGE_URL; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_GROSS_AMOUNT; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_NET_AMOUNT; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_AMOUNT; - $this->_fingerprintOrder[] = WirecardCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_RATE; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEMS; + for ($i = 1; $i <= (int)$data[QentaCEE_Stdlib_Basket::BASKET_ITEMS]; $i++) { + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_QUANTITY; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_NAME; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_IMAGE_URL; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_GROSS_AMOUNT; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_NET_AMOUNT; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_AMOUNT; + $this->_fingerprintOrder[] = QentaCEE_Stdlib_Basket::BASKET_ITEM_PREFIX . $i . QentaCEE_Stdlib_Basket_Item::ITEM_UNIT_TAX_RATE; } } @@ -493,7 +493,7 @@ protected function _composeCustomerStatement($paymenttype, $prefix = null, $uniq $uniqString = $this->generateUniqString(10); } - if ($paymenttype == WirecardCEE_Stdlib_PaymentTypeAbstract::POLI) { + if ($paymenttype == QentaCEE_Stdlib_PaymentTypeAbstract::POLI) { $customerStatement = $prefix; } else { $customerStatement = sprintf('%s Id:%s', $prefix, $uniqString); diff --git a/library/WirecardCEE/Stdlib/Client/Exception/ExceptionInterface.php b/library/QentaCEE/Stdlib/Client/Exception/ExceptionInterface.php similarity index 56% rename from library/WirecardCEE/Stdlib/Client/Exception/ExceptionInterface.php rename to library/QentaCEE/Stdlib/Client/Exception/ExceptionInterface.php index bf6ac0f..a3a0dd3 100644 --- a/library/WirecardCEE/Stdlib/Client/Exception/ExceptionInterface.php +++ b/library/QentaCEE/Stdlib/Client/Exception/ExceptionInterface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_Stdlib_Client_Exception_ExceptionInterface - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Client_Exception_ExceptionInterface + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Client_Exception */ -interface WirecardCEE_Stdlib_Client_Exception_ExceptionInterface extends WirecardCEE_Stdlib_Exception_ExceptionInterface +interface QentaCEE_Stdlib_Client_Exception_ExceptionInterface extends QentaCEE_Stdlib_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/WirecardCEE/Stdlib/Client/Exception/InvalidResponseException.php b/library/QentaCEE/Stdlib/Client/Exception/InvalidResponseException.php similarity index 55% rename from library/WirecardCEE/Stdlib/Client/Exception/InvalidResponseException.php rename to library/QentaCEE/Stdlib/Client/Exception/InvalidResponseException.php index cfa7817..f71d766 100644 --- a/library/WirecardCEE/Stdlib/Client/Exception/InvalidResponseException.php +++ b/library/QentaCEE/Stdlib/Client/Exception/InvalidResponseException.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_Stdlib_Client_Exception_InvalidResponseException - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Client_Exception_InvalidResponseException + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Client_Exception */ -class WirecardCEE_Stdlib_Client_Exception_InvalidResponseException extends Exception implements WirecardCEE_Stdlib_Client_Exception_ExceptionInterface +class QentaCEE_Stdlib_Client_Exception_InvalidResponseException extends Exception implements QentaCEE_Stdlib_Client_Exception_ExceptionInterface { } diff --git a/library/WirecardCEE/Stdlib/Config.php b/library/QentaCEE/Stdlib/Config.php similarity index 83% rename from library/WirecardCEE/Stdlib/Config.php rename to library/QentaCEE/Stdlib/Config.php index 57dfdb8..f629584 100644 --- a/library/WirecardCEE/Stdlib/Config.php +++ b/library/QentaCEE/Stdlib/Config.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -33,11 +33,11 @@ /** * - * @name WirecardCEE_Stdlib_Config - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Config + * @category QentaCEE + * @package QentaCEE_Stdlib */ -class WirecardCEE_Stdlib_Config implements Countable, Iterator +class QentaCEE_Stdlib_Config implements Countable, Iterator { /** * Iteration index @@ -69,12 +69,12 @@ class WirecardCEE_Stdlib_Config implements Countable, Iterator protected $_skipNextIteration; /** - * WirecardCEE_Stdlib_Config provides a property based interface to + * QentaCEE_Stdlib_Config provides a property based interface to * an array. * The data are read-only unless $allowModifications * is set to true on construction. * - * WirecardCEE_Stdlib_Config also implements Countable and Iterator to + * QentaCEE_Stdlib_Config also implements Countable and Iterator to * facilitate easy access to the data. * * @param array $array @@ -227,7 +227,7 @@ public function toArray() $array = array(); $data = $this->_data; foreach ($data as $key => $value) { - if ($value instanceof WirecardCEE_Stdlib_Config) { + if ($value instanceof QentaCEE_Stdlib_Config) { $array[$key] = $value->toArray(); } else { $array[$key] = $value; diff --git a/library/WirecardCEE/Stdlib/Config/client.config.php b/library/QentaCEE/Stdlib/Config/client.config.php similarity index 66% rename from library/WirecardCEE/Stdlib/Config/client.config.php rename to library/QentaCEE/Stdlib/Config/client.config.php index 531ef01..3d80e9e 100644 --- a/library/WirecardCEE/Stdlib/Config/client.config.php +++ b/library/QentaCEE/Stdlib/Config/client.config.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,7 +31,7 @@ */ return Array( - 'MODULE_NAME' => 'WirecardCEE_Stdlib', + 'MODULE_NAME' => 'QentaCEE_Stdlib', 'MODULE_VERSION' => '3.0.3', 'DEPENDENCIES' => array( 'SCRIPTING_LANG' => 'PHP', diff --git a/library/WirecardCEE/Stdlib/ConsumerData.php b/library/QentaCEE/Stdlib/ConsumerData.php similarity index 81% rename from library/WirecardCEE/Stdlib/ConsumerData.php rename to library/QentaCEE/Stdlib/ConsumerData.php index 1a31a50..8fe840d 100644 --- a/library/WirecardCEE/Stdlib/ConsumerData.php +++ b/library/QentaCEE/Stdlib/ConsumerData.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,12 +34,12 @@ /** * Container class for consumerData * - * @name WirecardCEE_Stdlib_ConsumerData - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_ConsumerData + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage ConsumerData */ -class WirecardCEE_Stdlib_ConsumerData +class QentaCEE_Stdlib_ConsumerData { /** * @@ -127,7 +127,7 @@ class WirecardCEE_Stdlib_ConsumerData * * @param string $mailAddress * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setEmail($mailAddress) { @@ -141,7 +141,7 @@ public function setEmail($mailAddress) * * @param DateTime $birthDate * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setBirthDate(DateTime $birthDate) { @@ -155,7 +155,7 @@ public function setBirthDate(DateTime $birthDate) * * @param string $taxIdentificationNumber * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setTaxIdentificationNumber($taxIdentificationNumber) { @@ -169,7 +169,7 @@ public function setTaxIdentificationNumber($taxIdentificationNumber) * * @param string $driversLicenseNumber * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setDriversLicenseNumber($driversLicenseNumber) { @@ -183,7 +183,7 @@ public function setDriversLicenseNumber($driversLicenseNumber) * * @param string $driversLicenseCountry * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setDriversLicenseCountry($driversLicenseCountry) { @@ -197,7 +197,7 @@ public function setDriversLicenseCountry($driversLicenseCountry) * * @param string $driversLicenseState * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setDriversLicenseState($driversLicenseState) { @@ -209,7 +209,7 @@ public function setDriversLicenseState($driversLicenseState) /** * @param string $companyName * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setCompanyName($companyName) { @@ -221,7 +221,7 @@ public function setCompanyName($companyName) /** * @param string $companyVatId * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setCompanyVatId($companyVatId) { @@ -233,7 +233,7 @@ public function setCompanyVatId($companyVatId) /** * @param string $companyTradeRegistryNumber * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setCompanyTradeRegistryNumber($companyTradeRegistryNumber) { @@ -244,13 +244,13 @@ public function setCompanyTradeRegistryNumber($companyTradeRegistryNumber) /** * adds addressinformation to the consumerdata. - * used {@link WirecardCEE_Stdlib_ConsumerData::getData()} + * used {@link QentaCEE_Stdlib_ConsumerData::getData()} * - * @param WirecardCEE_Stdlib_ConsumerData_Address $address + * @param QentaCEE_Stdlib_ConsumerData_Address $address * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ - public function addAddressInformation(WirecardCEE_Stdlib_ConsumerData_Address $address) + public function addAddressInformation(QentaCEE_Stdlib_ConsumerData_Address $address) { $consumerData = array_merge($this->_consumerData, $address->getData()); $this->_consumerData = $consumerData; @@ -263,7 +263,7 @@ public function addAddressInformation(WirecardCEE_Stdlib_ConsumerData_Address $a * * @param string $consumerIpAddress * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setIpAddress($consumerIpAddress) { @@ -277,7 +277,7 @@ public function setIpAddress($consumerIpAddress) * * @param string $consumerUserAgent * - * @return WirecardCEE_Stdlib_ConsumerData + * @return QentaCEE_Stdlib_ConsumerData */ public function setUserAgent($consumerUserAgent) { diff --git a/library/WirecardCEE/Stdlib/ConsumerData/Address.php b/library/QentaCEE/Stdlib/ConsumerData/Address.php similarity index 81% rename from library/WirecardCEE/Stdlib/ConsumerData/Address.php rename to library/QentaCEE/Stdlib/ConsumerData/Address.php index 5d6ad53..be1867d 100644 --- a/library/WirecardCEE/Stdlib/ConsumerData/Address.php +++ b/library/QentaCEE/Stdlib/ConsumerData/Address.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,12 +34,12 @@ /** * Container class for consumerData * - * @name WirecardCEE_Stdlib_ConsumerData - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_ConsumerData + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage ConsumerData */ -class WirecardCEE_Stdlib_ConsumerData_Address +class QentaCEE_Stdlib_ConsumerData_Address { /** * Constant: Shipping @@ -158,7 +158,7 @@ class WirecardCEE_Stdlib_ConsumerData_Address protected $_addressData = Array(); /** - * creates an instance of the WirecardCEE_Stdlib_ConsumerData_Address object. + * creates an instance of the QentaCEE_Stdlib_ConsumerData_Address object. * addressType should be Shipping or Billing. * * @param string $addressType @@ -173,7 +173,7 @@ public function __construct($addressType) * * @param string $firstname * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setFirstname($firstname) { @@ -187,7 +187,7 @@ public function setFirstname($firstname) * * @param string $lastname * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setLastname($lastname) { @@ -201,7 +201,7 @@ public function setLastname($lastname) * * @param string $address1 * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setAddress1($address1) { @@ -215,7 +215,7 @@ public function setAddress1($address1) * * @param string $address2 * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setAddress2($address2) { @@ -229,7 +229,7 @@ public function setAddress2($address2) * * @param string $city * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setCity($city) { @@ -243,7 +243,7 @@ public function setCity($city) * * @param string $country * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setCountry($country) { @@ -257,7 +257,7 @@ public function setCountry($country) * * @param string $state * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setState($state) { @@ -271,7 +271,7 @@ public function setState($state) * * @param string $zipCode * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setZipCode($zipCode) { @@ -285,7 +285,7 @@ public function setZipCode($zipCode) * * @param string $phone * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setPhone($phone) { @@ -299,7 +299,7 @@ public function setPhone($phone) * * @param string $fax * - * @return WirecardCEE_Stdlib_ConsumerData_Address + * @return QentaCEE_Stdlib_ConsumerData_Address */ public function setFax($fax) { diff --git a/library/WirecardCEE/Stdlib/Error.php b/library/QentaCEE/Stdlib/Error.php similarity index 72% rename from library/WirecardCEE/Stdlib/Error.php rename to library/QentaCEE/Stdlib/Error.php index 8ac5c7c..3d3fefa 100644 --- a/library/WirecardCEE/Stdlib/Error.php +++ b/library/QentaCEE/Stdlib/Error.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Error - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Error + * @category QentaCEE + * @package QentaCEE_Stdlib * @abstract */ -abstract class WirecardCEE_Stdlib_Error +abstract class QentaCEE_Stdlib_Error { /** @@ -69,7 +69,7 @@ public function getMessage() * * @param string $message * - * @return WirecardCEE_Stdlib_Error + * @return QentaCEE_Stdlib_Error */ public function setMessage($message) { @@ -83,7 +83,7 @@ public function setMessage($message) * * @param string $consumerMessage * - * @return WirecardCEE_Stdlib_Error + * @return QentaCEE_Stdlib_Error */ public function setConsumerMessage($consumerMessage) { diff --git a/library/WirecardCEE/Stdlib/Exception/ExceptionInterface.php b/library/QentaCEE/Stdlib/Exception/ExceptionInterface.php similarity index 58% rename from library/WirecardCEE/Stdlib/Exception/ExceptionInterface.php rename to library/QentaCEE/Stdlib/Exception/ExceptionInterface.php index ff55968..b1d6d1d 100644 --- a/library/WirecardCEE/Stdlib/Exception/ExceptionInterface.php +++ b/library/QentaCEE/Stdlib/Exception/ExceptionInterface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_Stdlib_Exception_ExceptionInterface - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Exception_ExceptionInterface + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Exception */ -interface WirecardCEE_Stdlib_Exception_ExceptionInterface +interface QentaCEE_Stdlib_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/WirecardCEE/QMore/Exception/BadMethodCallException.php b/library/QentaCEE/Stdlib/Exception/InvalidArgumentException.php similarity index 56% rename from library/WirecardCEE/QMore/Exception/BadMethodCallException.php rename to library/QentaCEE/Stdlib/Exception/InvalidArgumentException.php index 5f0aab8..d8c008e 100644 --- a/library/WirecardCEE/QMore/Exception/BadMethodCallException.php +++ b/library/QentaCEE/Stdlib/Exception/InvalidArgumentException.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_QMore_Exception_BadMethodCallException - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_Stdlib_Exception_InvalidArgumentException + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Exception */ -class WirecardCEE_QMore_Exception_BadMethodCallException extends BadMethodCallException implements WirecardCEE_QMore_Exception_ExceptionInterface +class QentaCEE_Stdlib_Exception_InvalidArgumentException extends InvalidArgumentException implements QentaCEE_Stdlib_Exception_ExceptionInterface { } \ No newline at end of file diff --git a/library/QentaCEE/Stdlib/Exception/InvalidFormatException.php b/library/QentaCEE/Stdlib/Exception/InvalidFormatException.php new file mode 100644 index 0000000..c381f1c --- /dev/null +++ b/library/QentaCEE/Stdlib/Exception/InvalidFormatException.php @@ -0,0 +1,42 @@ +add('index') is same as $obj[] = 'index'; * * 2. we can iterate it via foreach ie. @@ -47,12 +47,12 @@ * 3. and we can use count() on the whole object ie count($obj) * which will return the number of items in fingeprintOrder array * - * @name WirecardCEE_Stdlib_FingerprintOrder - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_FingerprintOrder + * @category QentaCEE + * @package QentaCEE_Stdlib */ -class WirecardCEE_Stdlib_FingerprintOrder implements ArrayAccess, IteratorAggregate, Countable +class QentaCEE_Stdlib_FingerprintOrder implements ArrayAccess, IteratorAggregate, Countable { /** * @@ -67,14 +67,14 @@ class WirecardCEE_Stdlib_FingerprintOrder implements ArrayAccess, IteratorAggreg * * @param string|array $mItems * - * @throws WirecardCEE_Stdlib_Exception_InvalidArgumentException + * @throws QentaCEE_Stdlib_Exception_InvalidArgumentException */ public function __construct($mItems = null) { $this->_fingeprintOrder = Array(); if (!is_null($mItems) && !$this->setOrder($mItems)) { - throw new WirecardCEE_Stdlib_Exception_InvalidArgumentException(sprintf("Unknown fingerprint format in %s on line %s", + throw new QentaCEE_Stdlib_Exception_InvalidArgumentException(sprintf("Unknown fingerprint format in %s on line %s", __METHOD__, __LINE__)); } } diff --git a/library/WirecardCEE/Stdlib/Module.php b/library/QentaCEE/Stdlib/Module.php similarity index 62% rename from library/WirecardCEE/Stdlib/Module.php rename to library/QentaCEE/Stdlib/Module.php index 9053f40..67e120f 100644 --- a/library/WirecardCEE/Stdlib/Module.php +++ b/library/QentaCEE/Stdlib/Module.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Module - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Module + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Module */ -class WirecardCEE_Stdlib_Module extends WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface +class QentaCEE_Stdlib_Module extends QentaCEE_Stdlib_Module_ModuleAbstract implements QentaCEE_Stdlib_Module_ModuleInterface { /** * Returns the client configuration details found in 'Config' directory diff --git a/library/WirecardCEE/Stdlib/Module/ModuleAbstract.php b/library/QentaCEE/Stdlib/Module/ModuleAbstract.php similarity index 65% rename from library/WirecardCEE/Stdlib/Module/ModuleAbstract.php rename to library/QentaCEE/Stdlib/Module/ModuleAbstract.php index 00e7ed1..4fcc6eb 100644 --- a/library/WirecardCEE/Stdlib/Module/ModuleAbstract.php +++ b/library/QentaCEE/Stdlib/Module/ModuleAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Module_ModuleAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Module_ModuleAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Module * @abstract */ -abstract class WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface +abstract class QentaCEE_Stdlib_Module_ModuleAbstract implements QentaCEE_Stdlib_Module_ModuleInterface { /** * Returns the user configuration details found in 'Config' directory diff --git a/library/WirecardCEE/Stdlib/Module/ModuleInterface.php b/library/QentaCEE/Stdlib/Module/ModuleInterface.php similarity index 66% rename from library/WirecardCEE/Stdlib/Module/ModuleInterface.php rename to library/QentaCEE/Stdlib/Module/ModuleInterface.php index f6c450c..2c3bbd6 100644 --- a/library/WirecardCEE/Stdlib/Module/ModuleInterface.php +++ b/library/QentaCEE/Stdlib/Module/ModuleInterface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Module_ModuleInterface - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Module_ModuleInterface + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Module */ -interface WirecardCEE_Stdlib_Module_ModuleInterface +interface QentaCEE_Stdlib_Module_ModuleInterface { /** diff --git a/library/WirecardCEE/Stdlib/PaymentTypeAbstract.php b/library/QentaCEE/Stdlib/PaymentTypeAbstract.php similarity index 89% rename from library/WirecardCEE/Stdlib/PaymentTypeAbstract.php rename to library/QentaCEE/Stdlib/PaymentTypeAbstract.php index 2c182f5..86befcd 100644 --- a/library/WirecardCEE/Stdlib/PaymentTypeAbstract.php +++ b/library/QentaCEE/Stdlib/PaymentTypeAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_PaymentTypeAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_PaymentTypeAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @abstract */ -abstract class WirecardCEE_Stdlib_PaymentTypeAbstract +abstract class QentaCEE_Stdlib_PaymentTypeAbstract { const BMC = 'BANCONTACT_MISTERCASH'; const CCARD = 'CCARD'; diff --git a/library/WirecardCEE/Stdlib/Response/ResponseAbstract.php b/library/QentaCEE/Stdlib/Response/ResponseAbstract.php similarity index 75% rename from library/WirecardCEE/Stdlib/Response/ResponseAbstract.php rename to library/QentaCEE/Stdlib/Response/ResponseAbstract.php index 09a2837..c11d999 100644 --- a/library/WirecardCEE/Stdlib/Response/ResponseAbstract.php +++ b/library/QentaCEE/Stdlib/Response/ResponseAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,13 +34,13 @@ use Psr\Http\Message\ResponseInterface; /** - * @name WirecardCEE_Stdlib_Response_ResponseAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Response_ResponseAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Response * @abstract */ -abstract class WirecardCEE_Stdlib_Response_ResponseAbstract +abstract class QentaCEE_Stdlib_Response_ResponseAbstract { /** * State success @@ -98,16 +98,16 @@ abstract class WirecardCEE_Stdlib_Response_ResponseAbstract * * @param ResponseInterface $response * - * @throws WirecardCEE_Stdlib_Exception_InvalidResponseException + * @throws QentaCEE_Stdlib_Exception_InvalidResponseException */ public function __construct($response) { if ($response instanceof ResponseInterface) { - $this->_response = WirecardCEE_Stdlib_SerialApi::decode($response->getBody()); + $this->_response = QentaCEE_Stdlib_SerialApi::decode($response->getBody()); } elseif (is_array($response)) { $this->_response = $response; } else { - throw new WirecardCEE_Stdlib_Exception_InvalidResponseException(sprintf('Invalid response from WirecardCEE thrown in %s.', + throw new QentaCEE_Stdlib_Exception_InvalidResponseException(sprintf('Invalid response from QentaCEE thrown in %s.', __METHOD__)); } } diff --git a/library/WirecardCEE/Stdlib/Return/Cancel.php b/library/QentaCEE/Stdlib/Return/Cancel.php similarity index 60% rename from library/WirecardCEE/Stdlib/Return/Cancel.php rename to library/QentaCEE/Stdlib/Return/Cancel.php index 391596b..244f34a 100644 --- a/library/WirecardCEE/Stdlib/Return/Cancel.php +++ b/library/QentaCEE/Stdlib/Return/Cancel.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Cancel - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Cancel + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Cancel extends WirecardCEE_Stdlib_Return_ReturnAbstract +abstract class QentaCEE_Stdlib_Return_Cancel extends QentaCEE_Stdlib_Return_ReturnAbstract { /** * State diff --git a/library/WirecardCEE/Stdlib/Return/Failure.php b/library/QentaCEE/Stdlib/Return/Failure.php similarity index 71% rename from library/WirecardCEE/Stdlib/Return/Failure.php rename to library/QentaCEE/Stdlib/Return/Failure.php index 5916393..9f5ee12 100644 --- a/library/WirecardCEE/Stdlib/Return/Failure.php +++ b/library/QentaCEE/Stdlib/Return/Failure.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Failure - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Failure + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Failure extends WirecardCEE_Stdlib_Return_ReturnAbstract +abstract class QentaCEE_Stdlib_Return_Failure extends QentaCEE_Stdlib_Return_ReturnAbstract { /** * diff --git a/library/WirecardCEE/Stdlib/Return/Pending.php b/library/QentaCEE/Stdlib/Return/Pending.php similarity index 66% rename from library/WirecardCEE/Stdlib/Return/Pending.php rename to library/QentaCEE/Stdlib/Return/Pending.php index 5eae0f0..724bbd3 100644 --- a/library/WirecardCEE/Stdlib/Return/Pending.php +++ b/library/QentaCEE/Stdlib/Return/Pending.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Pending - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Pending + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Pending extends WirecardCEE_Stdlib_Return_ReturnAbstract +abstract class QentaCEE_Stdlib_Return_Pending extends QentaCEE_Stdlib_Return_ReturnAbstract { /** @@ -73,18 +73,18 @@ abstract class WirecardCEE_Stdlib_Return_Pending extends WirecardCEE_Stdlib_Retu public function __construct( $returnData, $secret, - $hashAlgo = WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512 + $hashAlgo = QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512 ) { - //@see WirecardCEE_Stdlib_Return_ReturnAbstract::__construct($returnData) + //@see QentaCEE_Stdlib_Return_ReturnAbstract::__construct($returnData) parent::__construct($returnData); - $oFingerprintValidator = new WirecardCEE_Stdlib_Validate_Fingerprint(Array( + $oFingerprintValidator = new QentaCEE_Stdlib_Validate_Fingerprint(Array( self::$SECRET => $secret, self::$FINGERPRINT_ORDER_FIELD => 'responseFingerprintOrder', )); $oFingerprintValidator->setHashAlgorithm($hashAlgo); - $oFingerprintValidator->setOrderType(WirecardCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); + $oFingerprintValidator->setOrderType(QentaCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); $this->addValidator($oFingerprintValidator, 'responseFingerprint'); } diff --git a/library/WirecardCEE/Stdlib/Return/ReturnAbstract.php b/library/QentaCEE/Stdlib/Return/ReturnAbstract.php similarity index 77% rename from library/WirecardCEE/Stdlib/Return/ReturnAbstract.php rename to library/QentaCEE/Stdlib/Return/ReturnAbstract.php index 870db67..4151909 100644 --- a/library/WirecardCEE/Stdlib/Return/ReturnAbstract.php +++ b/library/QentaCEE/Stdlib/Return/ReturnAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -33,13 +33,13 @@ /** - * @name WirecardCEE_Stdlib_Return_ReturnAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_ReturnAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_Return_ReturnAbstract +abstract class QentaCEE_Stdlib_Return_ReturnAbstract { /** * Return data holder @@ -52,7 +52,7 @@ abstract class WirecardCEE_Stdlib_Return_ReturnAbstract /** * Validators holder * - * @var WirecardCEE_Stdlib_Validate_ValidateAbstract[] + * @var QentaCEE_Stdlib_Validate_ValidateAbstract[] * @internal */ protected $_validators = Array(); @@ -93,7 +93,7 @@ public function validate() // Iterate thru all the validators and validate every one of them foreach ($this->_validators as $param => $aValidator) { foreach ($aValidator as $oValidator) { - /** @var WirecardCEE_Stdlib_Validate_ValidateAbstract $oValidator */ + /** @var QentaCEE_Stdlib_Validate_ValidateAbstract $oValidator */ $param = (string) $param; if (!isset( $this->_returnData[$param] )) { @@ -113,12 +113,12 @@ public function validate() /** * Adds the validator * - * @param WirecardCEE_Stdlib_Validate_ValidateAbstract $oValidator + * @param QentaCEE_Stdlib_Validate_ValidateAbstract $oValidator * @param string $param * - * @return WirecardCEE_Stdlib_Return_ReturnAbstract + * @return QentaCEE_Stdlib_Return_ReturnAbstract */ - public function addValidator(WirecardCEE_Stdlib_Validate_ValidateAbstract $oValidator, $param) + public function addValidator(QentaCEE_Stdlib_Validate_ValidateAbstract $oValidator, $param) { $this->_validators[(string) $param][] = $oValidator; diff --git a/library/WirecardCEE/Stdlib/Return/Success.php b/library/QentaCEE/Stdlib/Return/Success.php similarity index 78% rename from library/WirecardCEE/Stdlib/Return/Success.php rename to library/QentaCEE/Stdlib/Return/Success.php index b9216f0..60bde32 100644 --- a/library/WirecardCEE/Stdlib/Return/Success.php +++ b/library/QentaCEE/Stdlib/Return/Success.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Success - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Success + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Success extends WirecardCEE_Stdlib_Return_ReturnAbstract +abstract class QentaCEE_Stdlib_Return_Success extends QentaCEE_Stdlib_Return_ReturnAbstract { /** * @@ -69,7 +69,7 @@ abstract class WirecardCEE_Stdlib_Return_Success extends WirecardCEE_Stdlib_Retu protected static $FINGERPRINT_ORDER_FIELD = 'fingerprintOrderField'; /** - * creates an instance of an WirecardCEE_Stdlib_Return_Success object + * creates an instance of an QentaCEE_Stdlib_Return_Success object * * @param Array $returnData * @param string $secret @@ -77,18 +77,18 @@ abstract class WirecardCEE_Stdlib_Return_Success extends WirecardCEE_Stdlib_Retu public function __construct( array $returnData, $secret, - $hashAlgo = WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512 + $hashAlgo = QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512 ) { $this->_secret = (string) $secret; parent::__construct($returnData); - $oFingerprintValidator = new WirecardCEE_Stdlib_Validate_Fingerprint(Array( + $oFingerprintValidator = new QentaCEE_Stdlib_Validate_Fingerprint(Array( self::$SECRET => $secret, self::$FINGERPRINT_ORDER_FIELD => 'responseFingerprintOrder', )); $oFingerprintValidator->setHashAlgorithm($hashAlgo); - $oFingerprintValidator->setOrderType(WirecardCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); + $oFingerprintValidator->setOrderType(QentaCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); $this->addValidator($oFingerprintValidator, 'responseFingerprint'); } diff --git a/library/WirecardCEE/Stdlib/Return/Success/CreditCard.php b/library/QentaCEE/Stdlib/Return/Success/CreditCard.php similarity index 72% rename from library/WirecardCEE/Stdlib/Return/Success/CreditCard.php rename to library/QentaCEE/Stdlib/Return/Success/CreditCard.php index 77ddea3..1a4d0cc 100644 --- a/library/WirecardCEE/Stdlib/Return/Success/CreditCard.php +++ b/library/QentaCEE/Stdlib/Return/Success/CreditCard.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Success_CreditCard - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Success_CreditCard + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return_Success * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Success_CreditCard extends WirecardCEE_Stdlib_Return_Success +abstract class QentaCEE_Stdlib_Return_Success_CreditCard extends QentaCEE_Stdlib_Return_Success { /** diff --git a/library/WirecardCEE/Stdlib/Return/Success/Ideal.php b/library/QentaCEE/Stdlib/Return/Success/Ideal.php similarity index 69% rename from library/WirecardCEE/Stdlib/Return/Success/Ideal.php rename to library/QentaCEE/Stdlib/Return/Success/Ideal.php index 8b3e12a..4d92a77 100644 --- a/library/WirecardCEE/Stdlib/Return/Success/Ideal.php +++ b/library/QentaCEE/Stdlib/Return/Success/Ideal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Success_Ideal - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Success_Ideal + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return_Success * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Success_Ideal extends WirecardCEE_Stdlib_Return_Success +abstract class QentaCEE_Stdlib_Return_Success_Ideal extends QentaCEE_Stdlib_Return_Success { /** * getter for the return parameter idealConsumerName diff --git a/library/WirecardCEE/Stdlib/Return/Success/PayPal.php b/library/QentaCEE/Stdlib/Return/Success/PayPal.php similarity index 81% rename from library/WirecardCEE/Stdlib/Return/Success/PayPal.php rename to library/QentaCEE/Stdlib/Return/Success/PayPal.php index 236485b..ef0915b 100644 --- a/library/WirecardCEE/Stdlib/Return/Success/PayPal.php +++ b/library/QentaCEE/Stdlib/Return/Success/PayPal.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Success_PayPal - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Success_PayPal + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return_Success * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Success_PayPal extends WirecardCEE_Stdlib_Return_Success +abstract class QentaCEE_Stdlib_Return_Success_PayPal extends QentaCEE_Stdlib_Return_Success { /** diff --git a/library/WirecardCEE/Stdlib/Return/Success/SepaDD.php b/library/QentaCEE/Stdlib/Return/Success/SepaDD.php similarity index 70% rename from library/WirecardCEE/Stdlib/Return/Success/SepaDD.php rename to library/QentaCEE/Stdlib/Return/Success/SepaDD.php index 29a7e61..ee7c80e 100644 --- a/library/WirecardCEE/Stdlib/Return/Success/SepaDD.php +++ b/library/QentaCEE/Stdlib/Return/Success/SepaDD.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * @name WirecardCEE_Stdlib_Return_Success_SepaDD - * @category WirecardCEE - * @package WirecardCEE_QMore + * @name QentaCEE_Stdlib_Return_Success_SepaDD + * @category QentaCEE + * @package QentaCEE_QMore * @subpackage Return_Success */ -abstract class WirecardCEE_Stdlib_Return_Success_SepaDD extends WirecardCEE_Stdlib_Return_Success +abstract class QentaCEE_Stdlib_Return_Success_SepaDD extends QentaCEE_Stdlib_Return_Success { /** diff --git a/library/WirecardCEE/Stdlib/Return/Success/Sofortueberweisung.php b/library/QentaCEE/Stdlib/Return/Success/Sofortueberweisung.php similarity index 76% rename from library/WirecardCEE/Stdlib/Return/Success/Sofortueberweisung.php rename to library/QentaCEE/Stdlib/Return/Success/Sofortueberweisung.php index de58400..2887cdc 100644 --- a/library/WirecardCEE/Stdlib/Return/Success/Sofortueberweisung.php +++ b/library/QentaCEE/Stdlib/Return/Success/Sofortueberweisung.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ /** - * @name WirecardCEE_Stdlib_Return_Success_Sofortueberweisung - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Return_Success_Sofortueberweisung + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return_Success * @abstract */ -abstract class WirecardCEE_Stdlib_Return_Success_Sofortueberweisung extends WirecardCEE_Stdlib_Return_Success +abstract class QentaCEE_Stdlib_Return_Success_Sofortueberweisung extends QentaCEE_Stdlib_Return_Success { /** diff --git a/library/WirecardCEE/Stdlib/ReturnFactoryAbstract.php b/library/QentaCEE/Stdlib/ReturnFactoryAbstract.php similarity index 77% rename from library/WirecardCEE/Stdlib/ReturnFactoryAbstract.php rename to library/QentaCEE/Stdlib/ReturnFactoryAbstract.php index f0d5016..fb1f82e 100644 --- a/library/WirecardCEE/Stdlib/ReturnFactoryAbstract.php +++ b/library/QentaCEE/Stdlib/ReturnFactoryAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,13 +34,13 @@ /** * Factory method for returned params validators * - * @name WirecardCEE_Stdlib_ReturnFactoryAbstract - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_ReturnFactoryAbstract + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Return * @abstract */ -abstract class WirecardCEE_Stdlib_ReturnFactoryAbstract +abstract class QentaCEE_Stdlib_ReturnFactoryAbstract { /** * Success diff --git a/library/WirecardCEE/Stdlib/SerialApi.php b/library/QentaCEE/Stdlib/SerialApi.php similarity index 86% rename from library/WirecardCEE/Stdlib/SerialApi.php rename to library/QentaCEE/Stdlib/SerialApi.php index 0723865..be7bd58 100644 --- a/library/WirecardCEE/Stdlib/SerialApi.php +++ b/library/QentaCEE/Stdlib/SerialApi.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * @name WirecardCEE_Stdlib_SerialApi - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_SerialApi + * @category QentaCEE + * @package QentaCEE_Stdlib */ -class WirecardCEE_Stdlib_SerialApi +class QentaCEE_Stdlib_SerialApi { /** * Encode the mixed[] $valueToEncode into the SerialAPI format @@ -44,7 +44,7 @@ class WirecardCEE_Stdlib_SerialApi * NOTE: only Strings can be handled. So for every object the __toString * will be called. * - * @throws WirecardCEE_Stdlib_Exception_InvalidTypeException if valueToEncode is not an array. + * @throws QentaCEE_Stdlib_Exception_InvalidTypeException if valueToEncode is not an array. * * @param mixed[] $aValueToEncode * @@ -60,7 +60,7 @@ public static function encode($aValueToEncode) return $serializedString; } else { - throw new WirecardCEE_Stdlib_Exception_InvalidTypeException(sprintf('Invalid type for %s. Array must be given.', + throw new QentaCEE_Stdlib_Exception_InvalidTypeException(sprintf('Invalid type for %s. Array must be given.', __METHOD__)); } } @@ -176,7 +176,7 @@ public static function decode($encodedValue) * @param string $sEntry * @param array $aDecodedValue * - * @throws WirecardCEE_Stdlib_Exception_InvalidFormatException + * @throws QentaCEE_Stdlib_Exception_InvalidFormatException * @return Array */ protected static function _addEntryDecode($sEntry, $aDecodedValue) @@ -208,7 +208,7 @@ protected static function _addEntryDecode($sEntry, $aDecodedValue) return $aDecodedValue; } else { - throw new WirecardCEE_Stdlib_Exception_InvalidFormatException('Invalid format for WirecardCEE_Stdlib_SerialApi::decode. Expecting key=value pairs'); + throw new QentaCEE_Stdlib_Exception_InvalidFormatException('Invalid format for QentaCEE_Stdlib_SerialApi::decode. Expecting key=value pairs'); } } diff --git a/library/WirecardCEE/Stdlib/Validate/Exception.php b/library/QentaCEE/Stdlib/Validate/Exception.php similarity index 61% rename from library/WirecardCEE/Stdlib/Validate/Exception.php rename to library/QentaCEE/Stdlib/Validate/Exception.php index 7f2df19..f7ce728 100644 --- a/library/WirecardCEE/Stdlib/Validate/Exception.php +++ b/library/QentaCEE/Stdlib/Validate/Exception.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -30,7 +30,7 @@ * Please do not use the plugin if you do not agree to these terms of use! */ -class WirecardCEE_Stdlib_Validate_Exception extends Exception +class QentaCEE_Stdlib_Validate_Exception extends Exception { } diff --git a/library/WirecardCEE/Stdlib/Validate/Fingerprint.php b/library/QentaCEE/Stdlib/Validate/Fingerprint.php similarity index 75% rename from library/WirecardCEE/Stdlib/Validate/Fingerprint.php rename to library/QentaCEE/Stdlib/Validate/Fingerprint.php index 84ac0ea..59000b0 100644 --- a/library/WirecardCEE/Stdlib/Validate/Fingerprint.php +++ b/library/QentaCEE/Stdlib/Validate/Fingerprint.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,18 +32,18 @@ /** - * @name WirecardCEE_Stdlib_Validate_Fingerprint - * @category WirecardCEE - * @package WirecardCEE_Stdlib + * @name QentaCEE_Stdlib_Validate_Fingerprint + * @category QentaCEE + * @package QentaCEE_Stdlib * @subpackage Validate */ -class WirecardCEE_Stdlib_Validate_Fingerprint extends WirecardCEE_Stdlib_Validate_ValidateAbstract +class QentaCEE_Stdlib_Validate_Fingerprint extends QentaCEE_Stdlib_Validate_ValidateAbstract { /** * Fingeprint order * - * @var WirecardCEE_Stdlib_FingerprintOrder + * @var QentaCEE_Stdlib_FingerprintOrder */ protected $fingerprintOrder; @@ -59,7 +59,7 @@ class WirecardCEE_Stdlib_Validate_Fingerprint extends WirecardCEE_Stdlib_Validat * * @var string */ - protected $hashAlgorithm = WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512; + protected $hashAlgorithm = QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512; /** * Secret @@ -147,9 +147,9 @@ class WirecardCEE_Stdlib_Validate_Fingerprint extends WirecardCEE_Stdlib_Validat */ public function __construct($options = array()) { - $this->fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(); - if ($options instanceof WirecardCEE_Stdlib_Config) { + if ($options instanceof QentaCEE_Stdlib_Config) { $options = $options->toArray(); } @@ -176,7 +176,7 @@ public function __construct($options = array()) * * @param string $sFingerprintOrderField * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setFingerprintOrderField($sFingerprintOrderField) { @@ -190,7 +190,7 @@ public function setFingerprintOrderField($sFingerprintOrderField) * * @param string $orderType * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setOrderType($orderType) { @@ -204,7 +204,7 @@ public function setOrderType($orderType) * * @param string|array $order * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setOrder($order) { @@ -218,12 +218,12 @@ public function setOrder($order) * * @param string $hashAlgorithm * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setHashAlgorithm($hashAlgorithm) { $this->hashAlgorithm = (string) $hashAlgorithm; - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm($hashAlgorithm); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm($hashAlgorithm); return $this; } @@ -233,7 +233,7 @@ public function setHashAlgorithm($hashAlgorithm) * * @param string $secret * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setSecret($secret) { @@ -247,7 +247,7 @@ public function setSecret($secret) * * @param string $mandatoryField * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function addMandatoryField($mandatoryField) { @@ -263,7 +263,7 @@ public function addMandatoryField($mandatoryField) * * @param array $mandatoryFields * - * @return WirecardCEE_Stdlib_Validate_Fingerprint + * @return QentaCEE_Stdlib_Validate_Fingerprint */ public function setMandatoryFields(Array $mandatoryFields) { @@ -275,22 +275,22 @@ public function setMandatoryFields(Array $mandatoryFields) /** * Is validator check valid? * - * @see WirecardCEE_Stdlib_Validate_Interface::isValid() + * @see QentaCEE_Stdlib_Validate_Interface::isValid() */ public function isValid($value, $context = null) { $context = array_change_key_case($context, CASE_LOWER); switch ($this->hashAlgorithm) { - case WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512: - case WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512: + case QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512: + case QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512: $stringLength = 128; break; - case WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5: + case QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5: $stringLength = 32; break; default: - throw new WirecardCEE_Stdlib_Exception_UnexpectedValueException(sprintf("Used hash algorithm '%s' is not supported. MD5, SHA512, or HMAC_SHA512 are currently supported.", + throw new QentaCEE_Stdlib_Exception_UnexpectedValueException(sprintf("Used hash algorithm '%s' is not supported. MD5, SHA512, or HMAC_SHA512 are currently supported.", $this->hashAlgorithm)); break; } @@ -303,7 +303,7 @@ public function isValid($value, $context = null) $fingerprintOrder = $this->fingerprintOrder; } else { if (array_key_exists($this->fingerprintOrderField, $context)) { - $fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder(strtolower($context[$this->fingerprintOrderField])); + $fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder(strtolower($context[$this->fingerprintOrderField])); } else { $this->_error(self::FINGERPRINTORDER_MISSING); @@ -313,7 +313,7 @@ public function isValid($value, $context = null) $fingerprintOrder->setOrder(array_map('strtolower', $this->fingerprintOrder->__toArray())); if (!in_array('secret', $fingerprintOrder->__toArray())) { - throw new WirecardCEE_Stdlib_Exception_UnexpectedValueException(); + throw new QentaCEE_Stdlib_Exception_UnexpectedValueException(); } $fingerprintFields = Array(); @@ -325,7 +325,7 @@ public function isValid($value, $context = null) } } - if (!WirecardCEE_Stdlib_Fingerprint::compare($fingerprintFields, $fingerprintOrder, $value)) { + if (!QentaCEE_Stdlib_Fingerprint::compare($fingerprintFields, $fingerprintOrder, $value)) { $this->_error(self::INVALID); return false; diff --git a/library/WirecardCEE/Stdlib/Validate/Interface.php b/library/QentaCEE/Stdlib/Validate/Interface.php similarity index 72% rename from library/WirecardCEE/Stdlib/Validate/Interface.php rename to library/QentaCEE/Stdlib/Validate/Interface.php index 1717e3d..0ad2ffa 100644 --- a/library/WirecardCEE/Stdlib/Validate/Interface.php +++ b/library/QentaCEE/Stdlib/Validate/Interface.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,7 +31,7 @@ */ -interface WirecardCEE_Stdlib_Validate_Interface +interface QentaCEE_Stdlib_Validate_Interface { /** * Returns true if and only if $value meets the validation requirements @@ -43,7 +43,7 @@ interface WirecardCEE_Stdlib_Validate_Interface * @param mixed $value * * @return boolean - * @throws WirecardCEE_Stdlib_Validate_Exception If validation of $value is impossible + * @throws QentaCEE_Stdlib_Validate_Exception If validation of $value is impossible */ public function isValid($value); diff --git a/library/WirecardCEE/Stdlib/Validate/ValidateAbstract.php b/library/QentaCEE/Stdlib/Validate/ValidateAbstract.php similarity index 85% rename from library/WirecardCEE/Stdlib/Validate/ValidateAbstract.php rename to library/QentaCEE/Stdlib/Validate/ValidateAbstract.php index c227154..c44c23b 100644 --- a/library/WirecardCEE/Stdlib/Validate/ValidateAbstract.php +++ b/library/QentaCEE/Stdlib/Validate/ValidateAbstract.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,7 +31,7 @@ */ -abstract class WirecardCEE_Stdlib_Validate_ValidateAbstract implements WirecardCEE_Stdlib_Validate_Interface +abstract class QentaCEE_Stdlib_Validate_ValidateAbstract implements QentaCEE_Stdlib_Validate_Interface { /** * The value to be validated @@ -112,8 +112,8 @@ public function getMessageTemplates() * @param string $messageString * @param string $messageKey OPTIONAL * - * @return WirecardCEE_Stdlib_Validate_ValidateAbstract Provides a fluent interface - * @throws WirecardCEE_Stdlib_Validate_Exception + * @return QentaCEE_Stdlib_Validate_ValidateAbstract Provides a fluent interface + * @throws QentaCEE_Stdlib_Validate_Exception */ public function setMessage($messageString, $messageKey = null) { @@ -127,7 +127,7 @@ public function setMessage($messageString, $messageKey = null) } if (!isset( $this->_messageTemplates[$messageKey] )) { - throw new WirecardCEE_Stdlib_Validate_Exception("No message template exists for key '$messageKey'"); + throw new QentaCEE_Stdlib_Validate_Exception("No message template exists for key '$messageKey'"); } $this->_messageTemplates[$messageKey] = $messageString; @@ -141,7 +141,7 @@ public function setMessage($messageString, $messageKey = null) * * @param array $messages * - * @return WirecardCEE_Stdlib_Validate_ValidateAbstract + * @return QentaCEE_Stdlib_Validate_ValidateAbstract */ public function setMessages(array $messages) { @@ -159,7 +159,7 @@ public function setMessages(array $messages) * @param string $property * * @return mixed - * @throws WirecardCEE_Stdlib_Validate_Exception + * @throws QentaCEE_Stdlib_Validate_Exception */ public function __get($property) { @@ -170,7 +170,7 @@ public function __get($property) return $this->{$this->_messageVariables[$property]}; } - throw new WirecardCEE_Stdlib_Validate_Exception("No property exists by the name '$property'"); + throw new QentaCEE_Stdlib_Validate_Exception("No property exists by the name '$property'"); } /** @@ -261,7 +261,7 @@ protected function _setValue($value) * * @param bool $flag * - * @return WirecardCEE_Stdlib_Validate_ValidateAbstract + * @return QentaCEE_Stdlib_Validate_ValidateAbstract */ public function setObscureValue($flag) { diff --git a/library/WirecardCEE/QMore/Exception/InvalidArgumentException.php b/library/WirecardCEE/QMore/Exception/InvalidArgumentException.php deleted file mode 100644 index 94fa888..0000000 --- a/library/WirecardCEE/QMore/Exception/InvalidArgumentException.php +++ /dev/null @@ -1,42 +0,0 @@ -|WirecardCEE_QPay_Return_Cancel|WirecardCEE_QPay_Return_Failure - */ - protected static function _getInstance($return, $secret) - { - switch (strtoupper($return['paymentState'])) { - case self::STATE_SUCCESS: - return self::_getSuccessInstance($return, $secret); - break; - case self::STATE_CANCEL: - return new WirecardCEE_QPay_Return_Cancel($return); - break; - case self::STATE_FAILURE: - return new WirecardCEE_QPay_Return_Failure($return); - break; - case parent::STATE_PENDING: - return new WirecardCEE_QPay_Return_Pending($return, $secret); - break; - default: - throw new WirecardCEE_QPay_Exception_InvalidResponseException('Invalid response from QPAY. Unexpected paymentState: ' . $return['paymentState']); - break; - } - } - - /** - * getter for the correct qpay success return instance - * - * @param string[] $return - * @param string $secret - * - * @return WirecardCEE_QPay_Return_Success|WirecardCEE_QPay_Return_Success_CreditCard|WirecardCEE_QPay_Return_Success_Ideal|WirecardCEE_QPay_Return_Success_PayPal|WirecardCEE_QPay_Return_Success_Sofortueberweisung - * @throws WirecardCEE_QPay_Exception_InvalidResponseException - */ - protected static function _getSuccessInstance($return, $secret) - { - if (!array_key_exists('paymentType', $return)) { - throw new WirecardCEE_QPay_Exception_InvalidResponseException('Invalid response from QPAY. Paymenttype is missing.'); - } - - switch (strtoupper($return['paymentType'])) { - case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD: - case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO: - case WirecardCEE_Stdlib_PaymentTypeAbstract::MAESTRO: - return new WirecardCEE_QPay_Return_Success_CreditCard($return, $secret); - break; - case WirecardCEE_Stdlib_PaymentTypeAbstract::PAYPAL: - return new WirecardCEE_QPay_Return_Success_PayPal($return, $secret); - break; - case WirecardCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG: - return new WirecardCEE_QPay_Return_Success_Sofortueberweisung($return, $secret); - break; - case WirecardCEE_Stdlib_PaymentTypeAbstract::IDL: - return new WirecardCEE_QPay_Return_Success_Ideal($return, $secret); - break; - default: - return new WirecardCEE_QPay_Return_Success($return, $secret); - break; - } - } -} \ No newline at end of file diff --git a/library/WirecardCEE/Stdlib/Exception/InvalidArgumentException.php b/library/WirecardCEE/Stdlib/Exception/InvalidArgumentException.php deleted file mode 100644 index c7f7bb5..0000000 --- a/library/WirecardCEE/Stdlib/Exception/InvalidArgumentException.php +++ /dev/null @@ -1,42 +0,0 @@ -object = new WirecardCEE_QMore_BackendClient(); - $this->aUserConfig = WirecardCEE_QMore_Module::getConfig(); - $this->aClientConfig = WirecardCEE_QMore_Module::getClientConfig(); + $this->object = new QentaCEE_QMore_BackendClient(); + $this->aUserConfig = QentaCEE_QMore_Module::getConfig(); + $this->aClientConfig = QentaCEE_QMore_Module::getClientConfig(); } /** @@ -63,15 +63,15 @@ public function setUp(): void */ public function testConstructorArrayParam($aConfig) { - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'], $this->object->getUserConfig()->CUSTOMER_ID); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['SHOP_ID'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['SHOP_ID'], $this->object->getUserConfig()->SHOP_ID); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['LANGUAGE'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['LANGUAGE'], $this->object->getUserConfig()->LANGUAGE); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['SECRET'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['SECRET'], $this->object->getUserConfig()->SECRET); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['PASSWORD'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['PASSWORD'], $this->object->getUserConfig()->PASSWORD); } @@ -82,7 +82,7 @@ public function testConstructorWithInvalidParam() $this->object = null; try { - $this->object = new WirecardCEE_QMore_BackendClient(array()); + $this->object = new QentaCEE_QMore_BackendClient(array()); } catch (Exception $e) { $this->assertStringStartsWith('CUSTOMER_ID passed', $e->getMessage()); throw $e; @@ -94,12 +94,12 @@ public function testConstructorWithInvalidParam() */ public function testConstructorWhenLanguageParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['LANGUAGE'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['LANGUAGE'] = null; try { - $this->object = new WirecardCEE_QMore_BackendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_BackendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('LANGUAGE passed to', $e->getMessage()); throw $e; } @@ -110,12 +110,12 @@ public function testConstructorWhenLanguageParamIsEmpty($aConfig) */ public function testConstructorWhenCustomerIdParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'] = null; try { - $this->object = new WirecardCEE_QMore_BackendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_BackendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('CUSTOMER_ID passed to', $e->getMessage()); throw $e; } @@ -126,12 +126,12 @@ public function testConstructorWhenCustomerIdParamIsEmpty($aConfig) */ public function testConstructorWhenSecretParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['SECRET'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['SECRET'] = null; try { - $this->object = new WirecardCEE_QMore_BackendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_BackendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('SECRET passed to', $e->getMessage()); throw $e; } @@ -142,12 +142,12 @@ public function testConstructorWhenSecretParamIsEmpty($aConfig) */ public function testConstructorWhenPasswordParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['PASSWORD'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['PASSWORD'] = null; try { - $this->object = new WirecardCEE_QMore_BackendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_BackendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('PASSWORD passed to', $e->getMessage()); throw $e; } @@ -156,7 +156,7 @@ public function testConstructorWhenPasswordParamIsEmpty($aConfig) public function testRefund() { $oResponse = $this->object->refund(123456, '1.2', 'USD'); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_Refund', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_Refund', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertIsString($oResponse->getCreditNumber()); @@ -167,7 +167,7 @@ public function testRefund() public function testRefundReversal() { $oResponse = $this->object->refundReversal(123456, 321312); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_RefundReversal', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_RefundReversal', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); @@ -175,9 +175,9 @@ public function testRefundReversal() public function testRecurPayment() { - $object = new WirecardCEE_QMore_BackendClient( + $object = new QentaCEE_QMore_BackendClient( Array( - 'WirecardCEEQMoreConfig' => Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'seamless', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', @@ -186,7 +186,7 @@ public function testRecurPayment() ) )); $oResponse = $object->recurPayment('23473341', '1,2', 'EUR', __METHOD__, '', false); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_RecurPayment', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_RecurPayment', $oResponse); $this->assertNotEquals('', $oResponse->getOrderNumber()); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); @@ -197,19 +197,19 @@ public function testRecurPayment() public function testGetOrderDetails() { $oResponse = $this->object->getOrderDetails(123456); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_GetOrderDetails', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_GetOrderDetails', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); $order = $oResponse->getOrder(); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_Order', $order); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_Order', $order); } public function testApproveReversal() { $oResponse = $this->object->approveReversal(123456); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_ApproveReversal', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_ApproveReversal', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); @@ -218,7 +218,7 @@ public function testApproveReversal() public function testDeposit() { $oResponse = $this->object->deposit(123456, 100, 'eur'); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_Deposit', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_Deposit', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); @@ -229,7 +229,7 @@ public function testDeposit() public function testDepositReversal() { $oResponse = $this->object->depositReversal(123456, 123445); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_DepositReversal', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_DepositReversal', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); @@ -240,7 +240,7 @@ public function _provider() return Array( Array( Array( - 'WirecardCEEQMoreConfig' => Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'qmore', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/tests/WirecardCEE/QPay/Exception/BadMethodCallExceptionTest.php b/tests/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php similarity index 64% rename from tests/WirecardCEE/QPay/Exception/BadMethodCallExceptionTest.php rename to tests/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php index 51c61cd..0da37fc 100644 --- a/tests/WirecardCEE/QPay/Exception/BadMethodCallExceptionTest.php +++ b/tests/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -30,17 +30,18 @@ * Please do not use the plugin if you do not agree to these terms of use! */ + /** - * Test class for WirecardCEE_Client_QPay_Exception. + * Test class for QentaCEE_Client_QMore_Exception. * Generated by PHPUnit on 2011-06-24 at 13:25:52. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Exception_BadMethodCallExceptionTest extends TestCase +class QentaCEE_QMore_Exception_InvalidArgumentExceptionTest extends TestCase { /** - * @var WirecardCEE_Client_QPay_Exception + * @var QentaCEE_QMore_Exception_InvalidArgumentException */ protected $object; @@ -48,16 +49,16 @@ class WirecardCEE_QPay_Exception_BadMethodCallExceptionTest extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp(): void + protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Exception_BadMethodCallException('objectMessage', 666); + $this->object = new QentaCEE_QMore_Exception_InvalidArgumentException('objectMessage', 666); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown(): void + protected function tearDown(): void { } @@ -65,8 +66,8 @@ protected function tearDown(): void public function testThrowExceptionWithoutData() { try { - throw new WirecardCEE_QPay_Exception_BadMethodCallException(); - } catch (WirecardCEE_QPay_Exception_BadMethodCallException $e) { + throw new QentaCEE_QMore_Exception_InvalidArgumentException(); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertEquals('', $e->getMessage()); $this->assertEquals(0, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -76,8 +77,8 @@ public function testThrowExceptionWithoutData() public function testThrowExceptionWithData() { try { - throw new WirecardCEE_QPay_Exception_BadMethodCallException('message', 1234); - } catch (WirecardCEE_QPay_Exception_BadMethodCallException $e) { + throw new QentaCEE_QMore_Exception_InvalidArgumentException('message', 1234); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -87,8 +88,8 @@ public function testThrowExceptionWithData() public function getThrowExceptionWithPrevious() { try { - throw new WirecardCEE_QPay_Exception_BadMethodCallException('message', 111, $this->object); - } catch (WirecardCEE_QPay_Exception_BadMethodCallException $e) { + throw new QentaCEE_QMore_Exception_InvalidArgumentException('message', 111, $this->object); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals($this->object, $e->getPrevious()); diff --git a/tests/WirecardCEE/QMore/DataStorage/Request/ReadTest.php b/tests/QentaCEE/QMore/DataStorage/Request/ReadTest.php similarity index 63% rename from tests/WirecardCEE/QMore/DataStorage/Request/ReadTest.php rename to tests/QentaCEE/QMore/DataStorage/Request/ReadTest.php index a1bde61..ed18e1b 100644 --- a/tests/WirecardCEE/QMore/DataStorage/Request/ReadTest.php +++ b/tests/QentaCEE/QMore/DataStorage/Request/ReadTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * WirecardCEE_QMore_DataStorage_Request_Read test case. + * QentaCEE_QMore_DataStorage_Request_Read test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_DataStorage_Request_ReadTest extends TestCase +class QentaCEE_QMore_DataStorage_Request_ReadTest extends TestCase { /** * @@ -51,7 +51,7 @@ class WirecardCEE_QMore_DataStorage_Request_ReadTest extends TestCase private $sOrderIdent = 'phpunit test'; /** * - * @var WirecardCEE_QMore_DataStorage_Request_Read + * @var QentaCEE_QMore_DataStorage_Request_Read */ private $object; @@ -61,7 +61,7 @@ class WirecardCEE_QMore_DataStorage_Request_ReadTest extends TestCase protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QMore_DataStorage_Request_Read(); + $this->object = new QentaCEE_QMore_DataStorage_Request_Read(); } @@ -76,12 +76,12 @@ protected function tearDown(): void public function testRead() { - $oClient = new WirecardCEE_QMore_DataStorageClient(); + $oClient = new QentaCEE_QMore_DataStorageClient(); $oQMoreDataStorageResponse = $oClient->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); $sStorageId = $oQMoreDataStorageResponse->getStorageId(); $oQMoreDataStorageRead = $this->object->read($sStorageId); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); $this->assertEquals($oQMoreDataStorageRead->getStatus(), 0); $this->assertEquals($oQMoreDataStorageRead->getStorageId(), $sStorageId); $this->assertEmpty($oQMoreDataStorageRead->getErrors()); @@ -89,9 +89,9 @@ public function testRead() public function testWithNoCustomerId() { - $this -> expectException(WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); - $this->object = new WirecardCEE_QMore_DataStorage_Request_Read(Array( - 'WirecardCEEQMoreConfig' => Array( + $this -> expectException(QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); + $this->object = new QentaCEE_QMore_DataStorage_Request_Read(Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => '', 'SHOP_ID' => '', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', @@ -102,9 +102,9 @@ public function testWithNoCustomerId() public function testWithNoSecret() { - $this -> expectException(WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); - $this->object = new WirecardCEE_QMore_DataStorage_Request_Read(Array( - 'WirecardCEEQMoreConfig' => Array( + $this -> expectException(QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); + $this->object = new QentaCEE_QMore_DataStorage_Request_Read(Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => '', 'SECRET' => '', @@ -115,9 +115,9 @@ public function testWithNoSecret() public function testWithNoLanguage() { - $this -> expectException(WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); - $this->object = new WirecardCEE_QMore_DataStorage_Request_Read(Array( - 'WirecardCEEQMoreConfig' => Array( + $this -> expectException(QentaCEE_QMore_DataStorage_Exception_InvalidArgumentException::class); + $this->object = new QentaCEE_QMore_DataStorage_Request_Read(Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => '', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/tests/WirecardCEE/QMore/DataStorage/Response/InitiationTest.php b/tests/QentaCEE/QMore/DataStorage/Response/InitiationTest.php similarity index 70% rename from tests/WirecardCEE/QMore/DataStorage/Response/InitiationTest.php rename to tests/QentaCEE/QMore/DataStorage/Response/InitiationTest.php index 4025915..001fcea 100644 --- a/tests/WirecardCEE/QMore/DataStorage/Response/InitiationTest.php +++ b/tests/QentaCEE/QMore/DataStorage/Response/InitiationTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_DataStorage_Response_Initiation. + * Test class for QentaCEE_QMore_DataStorage_Response_Initiation. * Generated by PHPUnit on 2011-12-30 at 09:22:50. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_DataStorage_Response_InitiationTest extends TestCase +class QentaCEE_QMore_DataStorage_Response_InitiationTest extends TestCase { /** - * @var WirecardCEE_QMore_DataStorage_Response_Initiation + * @var QentaCEE_QMore_DataStorage_Response_Initiation */ protected $object; @@ -52,7 +52,7 @@ protected function setUp(): void { $httpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&storageId=testStorageId&su=blub&javascriptUrl=http://www.example.com'); - $this->object = new WirecardCEE_QMore_DataStorage_Response_Initiation($httpResponse); + $this->object = new QentaCEE_QMore_DataStorage_Response_Initiation($httpResponse); } /** @@ -66,7 +66,7 @@ protected function tearDown(): void public function testGetStatus() { - $this->assertEquals(WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS, + $this->assertEquals(QentaCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS, $this->object->getStatus()); } @@ -88,7 +88,7 @@ public function testJavascriptUrl() public function testFailureGetStatus() { $this->_200ErrorResponse(); - $this->assertEquals(WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_FAILURE, + $this->assertEquals(QentaCEE_QMore_DataStorage_Response_Initiation::STATE_FAILURE, $this->object->getStatus()); } @@ -97,7 +97,7 @@ public function testFailureGetErrors() $this->_200ErrorResponse(); $this->assertIsArray($this->object->getErrors()); foreach ($this->object->getErrors() as $error) { - $this->assertInstanceOf('WirecardCEE_Stdlib_Error', $error); + $this->assertInstanceOf('QentaCEE_Stdlib_Error', $error); } $this->assertEquals($this->object->getNumberOfErrors(), count($this->object->getErrors())); } @@ -106,7 +106,7 @@ protected function _200ErrorResponse() { $httpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&error.1.errorCode=12345&error.1.message=testMessage&error.2.errorCode=54321&error.2.message=testMessage2&errors=2&su=blub'); - $this->object = new WirecardCEE_QMore_DataStorage_Response_Initiation($httpResponse); + $this->object = new QentaCEE_QMore_DataStorage_Response_Initiation($httpResponse); } } diff --git a/tests/WirecardCEE/QMore/DataStorage/Response/ReadTest.php b/tests/QentaCEE/QMore/DataStorage/Response/ReadTest.php similarity index 71% rename from tests/WirecardCEE/QMore/DataStorage/Response/ReadTest.php rename to tests/QentaCEE/QMore/DataStorage/Response/ReadTest.php index 4a382cc..c82da09 100644 --- a/tests/WirecardCEE/QMore/DataStorage/Response/ReadTest.php +++ b/tests/QentaCEE/QMore/DataStorage/Response/ReadTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_DataStorage_Response_ReadTest extends TestCase +class QentaCEE_QMore_DataStorage_Response_ReadTest extends TestCase { protected $object; @@ -40,12 +40,12 @@ public function setUp(): void { $zendHttpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'storageId=F6G7G6F7G6F7F9G8H7JGT78OKH89K67R&javascriptUrl=https://secure.wirecard-cee.com/qmore/dataStorage/js/D200001/F6G7G6F7G6F7F9G8H7JGT78OKH89K67R/dataStorage.js&paymentInformations=1&paymentInformation.1.paymentType=PBX&paymentInformation.1.payerPayboxNumber=0123456789'); - $this->object = new WirecardCEE_QMore_DataStorage_Response_Read($zendHttpResponse); + $this->object = new QentaCEE_QMore_DataStorage_Response_Read($zendHttpResponse); } public function testGetStatus() { - $this->assertEquals(WirecardCEE_QMore_DataStorage_Response_Read::STATE_NOT_EMPTY, $this->object->getStatus()); + $this->assertEquals(QentaCEE_QMore_DataStorage_Response_Read::STATE_NOT_EMPTY, $this->object->getStatus()); } public function testJavascriptUrl() @@ -71,9 +71,9 @@ public function testErrors() { $response = new \GuzzleHttp\Psr7\Response(200, Array(), 'error.1.errorCode=11500&error.1.message=CUSTOMERID+is+missing&error.2.errorCode=11506&error.2.message=REQUESTFINGERPRINT+is+missing.&errors=2'); - $object = new WirecardCEE_QMore_DataStorage_Response_Read($response); + $object = new QentaCEE_QMore_DataStorage_Response_Read($response); $this->assertEquals(2, $object->getNumberOfErrors()); - $this->assertEquals(WirecardCEE_QMore_DataStorage_Response_Read::STATE_FAILURE, $object->getStatus()); + $this->assertEquals(QentaCEE_QMore_DataStorage_Response_Read::STATE_FAILURE, $object->getStatus()); } } \ No newline at end of file diff --git a/tests/WirecardCEE/QMore/DataStorageClientTest.php b/tests/QentaCEE/QMore/DataStorageClientTest.php similarity index 69% rename from tests/WirecardCEE/QMore/DataStorageClientTest.php rename to tests/QentaCEE/QMore/DataStorageClientTest.php index 43e0d95..bc2fb8d 100644 --- a/tests/WirecardCEE/QMore/DataStorageClientTest.php +++ b/tests/QentaCEE/QMore/DataStorageClientTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -30,25 +30,25 @@ * By installing the plugin into the shop system the customer agrees to these terms of use. * Please do not use the plugin if you do not agree to these terms of use! */ -class MockClient extends WirecardCEE_QMore_DataStorageClient +class MockClient extends QentaCEE_QMore_DataStorageClient { public function unsetCustomerId() { - $this->_setField(WirecardCEE_Stdlib_Client_ClientAbstract::CUSTOMER_ID, null); + $this->_setField(QentaCEE_Stdlib_Client_ClientAbstract::CUSTOMER_ID, null); } public function unsetStorageId() { $this->oInitResponse = null; - $this->_setField(WirecardCEE_QMore_DataStorageClient::STORAGE_ID, null); + $this->_setField(QentaCEE_QMore_DataStorageClient::STORAGE_ID, null); } } /** - * WirecardCEE_QMore_FrontendClient test case. + * QentaCEE_QMore_FrontendClient test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_DataStorageClientTest extends TestCase +class QentaCEE_QMore_DataStorageClientTest extends TestCase { /** * @@ -64,7 +64,7 @@ class WirecardCEE_QMore_DataStorageClientTest extends TestCase /** * - * @var WirecardCEE_QMore_DataStorageClient + * @var QentaCEE_QMore_DataStorageClient */ private $object; @@ -74,9 +74,9 @@ class WirecardCEE_QMore_DataStorageClientTest extends TestCase protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QMore_DataStorageClient(); - $this->aUserConfig = WirecardCEE_QMore_Module::getConfig(); - $this->aClientConfig = WirecardCEE_QMore_Module::getClientConfig(); + $this->object = new QentaCEE_QMore_DataStorageClient(); + $this->aUserConfig = QentaCEE_QMore_Module::getConfig(); + $this->aClientConfig = QentaCEE_QMore_Module::getClientConfig(); } /** @@ -94,20 +94,20 @@ public function testInitiate() { $oQMoreDataStorageResponse = $this->object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); $this->assertEquals($oQMoreDataStorageResponse->getStatus(), 0); $this->assertEmpty($oQMoreDataStorageResponse->getErrors()); } public function testInitiateForException() { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); $oQMoreDataStorageResponse = $this->object->setOrderIdent(null)->setReturnUrl($this->sReturnUrl)->initiate(); } public function testReadForInvalidArgumentException() { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); $object = new MockClient(); $oQMoreDataStorageResponse = $object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); $object->unsetCustomerId(); @@ -116,7 +116,7 @@ public function testReadForInvalidArgumentException() public function testReadForBadMethodCallException() { - $this -> expectException(WirecardCEE_QMore_Exception_BadMethodCallException::class); + $this -> expectException(QentaCEE_QMore_Exception_BadMethodCallException::class); $object = new MockClient(); $oQMoreDataStorageResponse = $object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); $object->unsetStorageId(); @@ -129,7 +129,7 @@ public function testRead() $oQMoreDataStorageRead = $this->object->read(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); $this->assertEquals($oQMoreDataStorageRead->getStatus(), 0); $this->assertEmpty($oQMoreDataStorageRead->getErrors()); } @@ -142,7 +142,7 @@ public function testGetPaymentInformationWithRead() $oQMoreDataStorageRead = $this->object->read(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); $this->assertEquals($oQMoreDataStorageRead->getStatus(), 0); $this->assertEmpty($oQMoreDataStorageRead->getErrors()); $this->assertEquals($oQMoreDataStorageRead->getStorageId(), $sStorageId); @@ -152,7 +152,7 @@ public function testReaderResponseInitiation() { $oQMoreDataStorageResponse = $this->object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); $this->assertEquals($oQMoreDataStorageResponse->getStatus(), 0); } @@ -162,7 +162,7 @@ public function testSetStorageId() $oQMoreDataStorageResponse = $this->object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->setStorageId($sStorageId)->initiate(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Initiation', $oQMoreDataStorageResponse); $this->assertEquals($oQMoreDataStorageResponse->getStatus(), 0); $this->assertEmpty($oQMoreDataStorageResponse->getErrors()); } @@ -172,7 +172,7 @@ public function testDataStorageReader() $oQMoreDataStorageResponse = $this->object->setOrderIdent($this->sOrderIdent)->setReturnUrl($this->sReturnUrl)->initiate(); $oQMoreDataStorageRead = $this->object->read(); - $this->assertInstanceOf('WirecardCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); + $this->assertInstanceOf('QentaCEE_QMore_DataStorage_Response_Read', $oQMoreDataStorageRead); $this->assertEquals($oQMoreDataStorageRead->getStatus(), 0); $this->assertEmpty($oQMoreDataStorageRead->getErrors()); $this->assertNotEmpty($oQMoreDataStorageRead->getStorageId()); @@ -185,7 +185,7 @@ public function testConstructorWithInvalidParam() $this->object = null; try { - $this->object = new WirecardCEE_QMore_DataStorageClient(array()); + $this->object = new QentaCEE_QMore_DataStorageClient(array()); } catch (Exception $e) { $this->assertStringStartsWith('CUSTOMER_ID passed', $e->getMessage()); throw $e; @@ -197,11 +197,11 @@ public function testConstructorWithInvalidParam() */ public function testConstructorWhenLanguageParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['LANGUAGE'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['LANGUAGE'] = null; try { - $this->object = new WirecardCEE_QMore_DataStorageClient($aConfig); + $this->object = new QentaCEE_QMore_DataStorageClient($aConfig); } catch (Exception $e) { $this->assertStringStartsWith('LANGUAGE passed to', $e->getMessage()); throw $e; @@ -213,11 +213,11 @@ public function testConstructorWhenLanguageParamIsEmpty($aConfig) */ public function testConstructorWhenSecretParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['SECRET'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['SECRET'] = null; try { - $this->object = new WirecardCEE_QMore_DataStorageClient($aConfig); + $this->object = new QentaCEE_QMore_DataStorageClient($aConfig); } catch (Exception $e) { $this->assertStringStartsWith('SECRET passed to', $e->getMessage()); throw $e; @@ -229,11 +229,11 @@ public function testConstructorWhenSecretParamIsEmpty($aConfig) */ public function testConstructorWhenCustomerIdParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'] = null; try { - $this->object = new WirecardCEE_QMore_DataStorageClient($aConfig); + $this->object = new QentaCEE_QMore_DataStorageClient($aConfig); } catch (Exception $e) { $this->assertStringStartsWith('CUSTOMER_ID passed to', $e->getMessage()); throw $e; @@ -250,7 +250,7 @@ public function provider() return Array( Array( Array( - 'WirecardCEEQMoreConfig' => Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'qmore', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/tests/WirecardCEE/QMore/FrontendClientTest.php b/tests/QentaCEE/QMore/FrontendClientTest.php similarity index 65% rename from tests/WirecardCEE/QMore/FrontendClientTest.php rename to tests/QentaCEE/QMore/FrontendClientTest.php index d2bfaf1..b96d859 100644 --- a/tests/WirecardCEE/QMore/FrontendClientTest.php +++ b/tests/QentaCEE/QMore/FrontendClientTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * WirecardCEE_QMore_FrontendClient test case. + * QentaCEE_QMore_FrontendClient test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_FrontendClientTest extends TestCase +class QentaCEE_QMore_FrontendClientTest extends TestCase { /** @@ -51,7 +51,7 @@ class WirecardCEE_QMore_FrontendClientTest extends TestCase /** * - * @var WirecardCEE_QMore_FrontendClient + * @var QentaCEE_QMore_FrontendClient */ private $object; @@ -66,13 +66,13 @@ class WirecardCEE_QMore_FrontendClientTest extends TestCase protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QMore_FrontendClient(); - $this->aUserConfig = WirecardCEE_QMore_Module::getConfig(); - $this->aClientConfig = WirecardCEE_QMore_Module::getClientConfig(); + $this->object = new QentaCEE_QMore_FrontendClient(); + $this->aUserConfig = QentaCEE_QMore_Module::getConfig(); + $this->aClientConfig = QentaCEE_QMore_Module::getClientConfig(); $this->aExpectedRequestData = array( - WirecardCEE_QMore_FrontendClient::CUSTOMER_ID => $this->aUserConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'], - WirecardCEE_QMore_FrontendClient::SHOP_ID => $this->aUserConfig['WirecardCEEQMoreConfig']['SHOP_ID'], - WirecardCEE_QMore_FrontendClient::LANGUAGE => $this->aUserConfig['WirecardCEEQMoreConfig']['LANGUAGE'], + QentaCEE_QMore_FrontendClient::CUSTOMER_ID => $this->aUserConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'], + QentaCEE_QMore_FrontendClient::SHOP_ID => $this->aUserConfig['QentaCEEQMoreConfig']['SHOP_ID'], + QentaCEE_QMore_FrontendClient::LANGUAGE => $this->aUserConfig['QentaCEEQMoreConfig']['LANGUAGE'], ); } @@ -92,20 +92,20 @@ protected function tearDown(): void */ public function testConstructorArrayParam($aConfig) { - $this->object = new WirecardCEE_QMore_FrontendClient($aConfig); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'], + $this->object = new QentaCEE_QMore_FrontendClient($aConfig); + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'], $this->object->getUserConfig()->CUSTOMER_ID); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['SHOP_ID'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['SHOP_ID'], $this->object->getUserConfig()->SHOP_ID); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['LANGUAGE'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['LANGUAGE'], $this->object->getUserConfig()->LANGUAGE); - $this->assertEquals($this->aUserConfig['WirecardCEEQMoreConfig']['SECRET'], + $this->assertEquals($this->aUserConfig['QentaCEEQMoreConfig']['SECRET'], $this->object->getUserConfig()->SECRET); } /** - * Tests WirecardCEE_QMore_FrontendClient->setConfirmUrl() + * Tests QentaCEE_QMore_FrontendClient->setConfirmUrl() */ public function testSetConfirmUrl() { @@ -113,12 +113,12 @@ public function testSetConfirmUrl() $this->object->setConfirmUrl($confirmUrl); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::CONFIRM_URL => $confirmUrl)); + QentaCEE_QMore_FrontendClient::CONFIRM_URL => $confirmUrl)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setPendingUrl() + * Tests QentaCEE_QMore_FrontendClient->setPendingUrl() */ public function testSetPendingUrl() { @@ -126,13 +126,13 @@ public function testSetPendingUrl() $this->object->setPendingUrl($pendingUrl); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::PENDING_URL => $pendingUrl)); + QentaCEE_QMore_FrontendClient::PENDING_URL => $pendingUrl)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setWindowName() + * Tests QentaCEE_QMore_FrontendClient->setWindowName() */ public function testSetWindowName() { @@ -140,12 +140,12 @@ public function testSetWindowName() $this->object->setWindowName($windowName); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::WINDOW_NAME => $windowName)); + QentaCEE_QMore_FrontendClient::WINDOW_NAME => $windowName)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setDuplicateRequestCheck() + * Tests QentaCEE_QMore_FrontendClient->setDuplicateRequestCheck() */ public function testSetDuplicateRequestCheck() { @@ -153,12 +153,12 @@ public function testSetDuplicateRequestCheck() $this->object->setDuplicateRequestCheck($duplicateRequestCheck); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::DUPLICATE_REQUEST_CHECK => $duplicateRequestCheck)); + QentaCEE_QMore_FrontendClient::DUPLICATE_REQUEST_CHECK => $duplicateRequestCheck)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setCustomerStatement() + * Tests QentaCEE_QMore_FrontendClient->setCustomerStatement() */ public function testSetCustomerStatement() { @@ -166,12 +166,12 @@ public function testSetCustomerStatement() $this->object->setCustomerStatement($customerStatement); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::CUSTOMER_STATEMENT => $customerStatement)); + QentaCEE_QMore_FrontendClient::CUSTOMER_STATEMENT => $customerStatement)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->createConsumerMerchantCrmId() + * Tests QentaCEE_QMore_FrontendClient->createConsumerMerchantCrmId() */ public function testCreateConsumerMerchantCrmId() { @@ -179,12 +179,12 @@ public function testCreateConsumerMerchantCrmId() $this->object->createConsumerMerchantCrmId($email); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::CONSUMER_MERCHANT_CRM_ID => md5($email))); + QentaCEE_QMore_FrontendClient::CONSUMER_MERCHANT_CRM_ID => md5($email))); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setOrderReference() + * Tests QentaCEE_QMore_FrontendClient->setOrderReference() */ public function testSetOrderReference() { @@ -192,12 +192,12 @@ public function testSetOrderReference() $this->object->setOrderReference($orderReference); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::ORDER_REFERENCE => $orderReference)); + QentaCEE_QMore_FrontendClient::ORDER_REFERENCE => $orderReference)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setAutoDeposit() + * Tests QentaCEE_QMore_FrontendClient->setAutoDeposit() */ public function testSetAutoDeposit() { @@ -205,12 +205,12 @@ public function testSetAutoDeposit() $this->object->setAutoDeposit($autoDeposit); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::AUTO_DEPOSIT => $autoDeposit)); + QentaCEE_QMore_FrontendClient::AUTO_DEPOSIT => $autoDeposit)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setMaxRetries() + * Tests QentaCEE_QMore_FrontendClient->setMaxRetries() */ public function testSetOrderNumber() { @@ -218,12 +218,12 @@ public function testSetOrderNumber() $this->object->setOrderNumber($orderNumber); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::ORDER_NUMBER => $orderNumber)); + QentaCEE_QMore_FrontendClient::ORDER_NUMBER => $orderNumber)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setConfirmMail() + * Tests QentaCEE_QMore_FrontendClient->setConfirmMail() */ public function testSetConfirmMail() { @@ -231,16 +231,16 @@ public function testSetConfirmMail() $this->object->setConfirmMail($confirmMail); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::CONFIRM_MAIL => $confirmMail)); + QentaCEE_QMore_FrontendClient::CONFIRM_MAIL => $confirmMail)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->setBasket() + * Tests QentaCEE_QMore_FrontendClient->setBasket() */ public function testSetBasket() { - $mock = $this->getMockBuilder('WirecardCEE_Stdlib_Basket') + $mock = $this->getMockBuilder('QentaCEE_Stdlib_Basket') ->getMock(); $mock->expects($this->once()) @@ -251,17 +251,17 @@ public function testSetBasket() } /** - * Tests WirecardCEE_QMore_FrontendClient->initiate() + * Tests QentaCEE_QMore_FrontendClient->initiate() */ public function testInitiate() { - $consumerData = new WirecardCEE_Stdlib_ConsumerData(); + $consumerData = new QentaCEE_Stdlib_ConsumerData(); $consumerData->setIpAddress('10.1.0.11'); $consumerData->setUserAgent('phpUnit'); $oResponse = $this->object->setAmount(100) ->setCurrency('eur') - ->setPaymentType(WirecardCEE_QMore_PaymentType::PAYPAL) + ->setPaymentType(QentaCEE_QMore_PaymentType::PAYPAL) ->setOrderDescription(__METHOD__) ->setSuccessUrl('http://foo.bar.com/tests/confirm.php') ->setCancelUrl('http://foo.bar.com/tests/confirm.php') @@ -271,7 +271,7 @@ public function testInitiate() ->setConsumerData($consumerData) ->initiate(); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Initiation', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Initiation', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); @@ -281,16 +281,16 @@ public function testInitiate() public function testClientFailedResponse() { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidResponseException::class); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidResponseException::class); try { - new WirecardCEE_QMore_Response_Initiation(new stdClass()); - } catch (WirecardCEE_Stdlib_Exception_InvalidResponseException $e) { + new QentaCEE_QMore_Response_Initiation(new stdClass()); + } catch (QentaCEE_Stdlib_Exception_InvalidResponseException $e) { throw $e; } } /** - * Tests WirecardCEE_QMore_FrontendClient->setStorageReference($sOrderIdent, $sStorageId) + * Tests QentaCEE_QMore_FrontendClient->setStorageReference($sOrderIdent, $sStorageId) */ public function testSetStorageReference() { @@ -298,12 +298,12 @@ public function testSetStorageReference() $this->object->setStorageId($sStorageId); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::STORAGE_ID => $sStorageId)); + QentaCEE_QMore_FrontendClient::STORAGE_ID => $sStorageId)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QMore_FrontendClient->__construct() + * Tests QentaCEE_QMore_FrontendClient->__construct() * * @dataProvider provider * @@ -311,14 +311,14 @@ public function testSetStorageReference() */ public function testMissingConfigValueInConfigArray($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['CUSTOMER_ID'] = null; - $this->object = new WirecardCEE_QMore_FrontendClient($aConfig); + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['CUSTOMER_ID'] = null; + $this->object = new QentaCEE_QMore_FrontendClient($aConfig); } public function testFailedInitiate() { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); $oResponse = $this->object->initiate(); } @@ -329,17 +329,17 @@ public function testGetReponseBeforeInitialize() } /** - * Tests WirecardCEE_QMore_FrontendClient->getResponse() + * Tests QentaCEE_QMore_FrontendClient->getResponse() */ public function testGetResponse() { - $consumerData = new WirecardCEE_Stdlib_ConsumerData(); + $consumerData = new QentaCEE_Stdlib_ConsumerData(); $consumerData->setIpAddress('10.1.0.11'); $consumerData->setUserAgent('phpUnit'); $this->object->setAmount(100) ->setCurrency('eur') - ->setPaymentType(WirecardCEE_QMore_PaymentType::PAYPAL) + ->setPaymentType(QentaCEE_QMore_PaymentType::PAYPAL) ->setOrderDescription(__METHOD__) ->setSuccessUrl('http://foo.bar.com/tests/confirm.php') ->setCancelUrl('http://foo.bar.com/tests/confirm.php') @@ -351,7 +351,7 @@ public function testGetResponse() $oResponse = $this->object->getResponse(); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Initiation', $oResponse); + $this->assertInstanceOf('QentaCEE_QMore_Response_Initiation', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertStringStartsWith('https://', $oResponse->getRedirectUrl()); @@ -362,7 +362,7 @@ public function testConstructorWithInvalidParam() $this -> expectException(Exception::class); $this->object = null; try { - $this->object = new WirecardCEE_QMore_FrontendClient(array()); + $this->object = new QentaCEE_QMore_FrontendClient(array()); } catch (Exception $e) { $this->assertStringStartsWith('CUSTOMER_ID passed', $e->getMessage()); throw $e; @@ -374,12 +374,12 @@ public function testConstructorWithInvalidParam() */ public function testConstructorWhenLanguageParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['LANGUAGE'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['LANGUAGE'] = null; try { - $this->object = new WirecardCEE_QMore_FrontendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_FrontendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('LANGUAGE passed to', $e->getMessage()); throw $e; } @@ -390,19 +390,19 @@ public function testConstructorWhenLanguageParamIsEmpty($aConfig) */ public function testConstructorWhenSecretParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQMoreConfig']['SECRET'] = null; + $this -> expectException(QentaCEE_QMore_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQMoreConfig']['SECRET'] = null; try { - $this->object = new WirecardCEE_QMore_FrontendClient($aConfig); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QMore_FrontendClient($aConfig); + } catch (QentaCEE_QMore_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('SECRET passed to', $e->getMessage()); throw $e; } } /** - * Tests WirecardCEE_QMore_FrontendClient->getResponse() + * Tests QentaCEE_QMore_FrontendClient->getResponse() */ public function testSetPluginVersion() { @@ -411,7 +411,7 @@ public function testSetPluginVersion() $this->object->setPluginVersion($sPluginVersion); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::PLUGIN_VERSION => $sPluginVersion)); + QentaCEE_QMore_FrontendClient::PLUGIN_VERSION => $sPluginVersion)); $this->assertEquals($expected, $this->object->getRequestData()); } @@ -421,7 +421,7 @@ public function testSetFinancialInstitution() $this->object->setFinancialInstitution($sFinancialInstitution); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QMore_FrontendClient::FINANCIAL_INSTITUTION => $sFinancialInstitution)); + QentaCEE_QMore_FrontendClient::FINANCIAL_INSTITUTION => $sFinancialInstitution)); $this->assertEquals($expected, $this->object->getRequestData()); } @@ -430,7 +430,7 @@ public function provider() return Array( Array( Array( - 'WirecardCEEQMoreConfig' => Array( + 'QentaCEEQMoreConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'qmore', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/tests/WirecardCEE/QMore/ModuleTest.php b/tests/QentaCEE/QMore/ModuleTest.php similarity index 54% rename from tests/WirecardCEE/QMore/ModuleTest.php rename to tests/QentaCEE/QMore/ModuleTest.php index ad39817..26f1115 100644 --- a/tests/WirecardCEE/QMore/ModuleTest.php +++ b/tests/QentaCEE/QMore/ModuleTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,26 +32,26 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_ModuleTest extends TestCase +class QentaCEE_QMore_ModuleTest extends TestCase { public function testClientConfig() { - $aConfig = WirecardCEE_QMore_Module::getClientConfig(); + $aConfig = QentaCEE_QMore_Module::getClientConfig(); $this->assertIsArray($aConfig); $this->assertArrayHasKey('MODULE_NAME', $aConfig); $this->assertArrayHasKey('DATA_STORAGE_URL', $aConfig); $this->assertArrayHasKey('FRONTEND_URL', $aConfig); - $this->assertEquals('WirecardCEE_QMore', $aConfig['MODULE_NAME']); + $this->assertEquals('QentaCEE_QMore', $aConfig['MODULE_NAME']); } public function testUserConfig() { - $aConfig = WirecardCEE_QMore_Module::getConfig(); + $aConfig = QentaCEE_QMore_Module::getConfig(); $this->assertIsArray($aConfig); - $this->assertArrayHasKey('WirecardCEEQMoreConfig', $aConfig); - $this->assertArrayHasKey('CUSTOMER_ID', $aConfig['WirecardCEEQMoreConfig']); - $this->assertArrayHasKey('SHOP_ID', $aConfig['WirecardCEEQMoreConfig']); - $this->assertArrayHasKey('LANGUAGE', $aConfig['WirecardCEEQMoreConfig']); - $this->assertArrayHasKey('SECRET', $aConfig['WirecardCEEQMoreConfig']); + $this->assertArrayHasKey('QentaCEEQMoreConfig', $aConfig); + $this->assertArrayHasKey('CUSTOMER_ID', $aConfig['QentaCEEQMoreConfig']); + $this->assertArrayHasKey('SHOP_ID', $aConfig['QentaCEEQMoreConfig']); + $this->assertArrayHasKey('LANGUAGE', $aConfig['QentaCEEQMoreConfig']); + $this->assertArrayHasKey('SECRET', $aConfig['QentaCEEQMoreConfig']); } } diff --git a/tests/WirecardCEE/QPay/PaymentTypeTest.php b/tests/QentaCEE/QMore/PaymentTypeTest.php similarity index 54% rename from tests/WirecardCEE/QPay/PaymentTypeTest.php rename to tests/QentaCEE/QMore/PaymentTypeTest.php index 9c7b21e..5cce7d6 100644 --- a/tests/WirecardCEE/QPay/PaymentTypeTest.php +++ b/tests/QentaCEE/QMore/PaymentTypeTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QPay_PaymentType. + * Test class for QentaCEE_QMore_PaymentType. * Generated by PHPUnit on 2011-06-24 at 13:17:01. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_PaymentTypeTest extends TestCase +class QentaCEE_QMore_PaymentTypeTest extends TestCase { /** - * @var WirecardCEE_QPay_PaymentType + * @var QentaCEE_QMore_PaymentType */ protected $object; @@ -63,34 +63,34 @@ protected function tearDown(): void public function testHasFinancialInstitutions() { - $paymentType = WirecardCEE_QPay_PaymentType::EPS; - $this->assertTrue(WirecardCEE_QPay_PaymentType::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QMore_PaymentType::EPS; + $this->assertTrue(QentaCEE_QMore_PaymentType::hasFinancialInstitutions($paymentType)); } public function testHasNoFinancialInstitutions() { - $paymentType = WirecardCEE_QPay_PaymentType::CCARD; - $this->assertFalse(WirecardCEE_QPay_PaymentType::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QMore_PaymentType::CCARD; + $this->assertFalse(QentaCEE_QMore_PaymentType::hasFinancialInstitutions($paymentType)); } public function testGetIdealFinancialInstitutions() { - $paymentType = WirecardCEE_QPay_PaymentType::IDL; - $this->assertContains('ABN AMRO Bank', WirecardCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); - $this->assertArrayHasKey('REGIOBANK', WirecardCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QMore_PaymentType::IDL; + $this->assertContains('ABN AMRO Bank', QentaCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); + $this->assertArrayHasKey('ABNAMROBANK', QentaCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); } public function testGetEpsFinancialInstitutions() { - $paymentType = WirecardCEE_QPay_PaymentType::EPS; - $this->assertContains('BAWAG P.S.K. AG', WirecardCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); - $this->assertArrayHasKey('ARZ|VB', WirecardCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QMore_PaymentType::EPS; + $this->assertContains('BAWAG P.S.K. AG', QentaCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); + $this->assertArrayHasKey('ARZ|VB', QentaCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); } public function testGetEmptyFinancialInstitutions() { - $paymentType = WirecardCEE_QPay_PaymentType::CCARD; - $this->assertEmpty(WirecardCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QMore_PaymentType::CCARD; + $this->assertEmpty(QentaCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); } } diff --git a/tests/WirecardCEE/QMore/Response/Backend/ApproveReversalTest.php b/tests/QentaCEE/QMore/Response/Backend/ApproveReversalTest.php similarity index 74% rename from tests/WirecardCEE/QMore/Response/Backend/ApproveReversalTest.php rename to tests/QentaCEE/QMore/Response/Backend/ApproveReversalTest.php index cda4b59..918492b 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/ApproveReversalTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/ApproveReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_ApproveReversal test case. + * QentaCEE_QMore_Response_Backend_ApproveReversal test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_ApproveReversalTest extends TestCase +class QentaCEE_QMore_Response_Backend_ApproveReversalTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -47,7 +47,7 @@ class WirecardCEE_QMore_Response_Backend_ApproveReversalTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_ApproveReversal + * @var QentaCEE_QMore_Response_Backend_ApproveReversal */ private $object; @@ -63,7 +63,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, @@ -104,7 +104,7 @@ public function testHasFailed() protected function tearDown(): void { // TODO Auto-generated - // WirecardCEE_QMore_Response_Backend_ApproveReversalTest::tearDown() + // QentaCEE_QMore_Response_Backend_ApproveReversalTest::tearDown() $this->object = null; parent::tearDown(); diff --git a/tests/WirecardCEE/QMore/Response/Backend/DepositReversalTest.php b/tests/QentaCEE/QMore/Response/Backend/DepositReversalTest.php similarity index 76% rename from tests/WirecardCEE/QMore/Response/Backend/DepositReversalTest.php rename to tests/QentaCEE/QMore/Response/Backend/DepositReversalTest.php index 6a533c8..41ca4c7 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/DepositReversalTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/DepositReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_DepositReversal test case. + * QentaCEE_QMore_Response_Backend_DepositReversal test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_DepositReversalTest extends TestCase +class QentaCEE_QMore_Response_Backend_DepositReversalTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -48,7 +48,7 @@ class WirecardCEE_QMore_Response_Backend_DepositReversalTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_DepositReversal + * @var QentaCEE_QMore_Response_Backend_DepositReversal */ private $object; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/DepositTest.php b/tests/QentaCEE/QMore/Response/Backend/DepositTest.php similarity index 77% rename from tests/WirecardCEE/QMore/Response/Backend/DepositTest.php rename to tests/QentaCEE/QMore/Response/Backend/DepositTest.php index 5eaaf0e..5093661 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/DepositTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/DepositTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_Deposit test case. + * QentaCEE_QMore_Response_Backend_Deposit test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_DepositTest extends TestCase +class QentaCEE_QMore_Response_Backend_DepositTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -46,7 +46,7 @@ class WirecardCEE_QMore_Response_Backend_DepositTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_Deposit + * @var QentaCEE_QMore_Response_Backend_Deposit */ private $object; @@ -57,7 +57,7 @@ protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QMore_BackendClient(Array( + $this->object = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -114,7 +114,7 @@ public function testWithBasketData() protected function tearDown(): void { // TODO Auto-generated - // WirecardCEE_QMore_Response_Backend_DepositTest::tearDown() + // QentaCEE_QMore_Response_Backend_DepositTest::tearDown() $this->object = null; parent::tearDown(); @@ -123,11 +123,11 @@ protected function tearDown(): void /** * Creates a valid shopping basket. * - * @return WirecardCEE_Stdlib_Basket + * @return QentaCEE_Stdlib_Basket */ private function getValidBasket() { - $basketItem = new WirecardCEE_Stdlib_Basket_Item('WirecardCEETestItem'); + $basketItem = new QentaCEE_Stdlib_Basket_Item('QentaCEETestItem'); $basketItem->setUnitGrossAmount(10) ->setUnitNetAmount(8) ->setUnitTaxAmount(2) @@ -136,7 +136,7 @@ private function getValidBasket() ->setName('unittest name') ->setImageUrl('http://example.com/picture.png'); - $basket = new WirecardCEE_Stdlib_Basket(); + $basket = new QentaCEE_Stdlib_Basket(); $basket->addItem($basketItem); return $basket; diff --git a/tests/WirecardCEE/QMore/Response/Backend/GetOrderDetailsTest.php b/tests/QentaCEE/QMore/Response/Backend/GetOrderDetailsTest.php similarity index 73% rename from tests/WirecardCEE/QMore/Response/Backend/GetOrderDetailsTest.php rename to tests/QentaCEE/QMore/Response/Backend/GetOrderDetailsTest.php index d224875..bd8ba7d 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/GetOrderDetailsTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/GetOrderDetailsTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_GetOrderDetails test case. + * QentaCEE_QMore_Response_Backend_GetOrderDetails test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_GetOrderDetailsTest extends TestCase +class QentaCEE_QMore_Response_Backend_GetOrderDetailsTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -46,7 +46,7 @@ class WirecardCEE_QMore_Response_Backend_GetOrderDetailsTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; @@ -61,7 +61,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, @@ -85,7 +85,7 @@ public function testGetErrors() public function testGetOrder() { $order = $this->object->getOrder(); - $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_Order', $order); + $this->assertInstanceOf('QentaCEE_QMore_Response_Backend_Order', $order); } /** diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/CreditTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/CreditTest.php similarity index 82% rename from tests/WirecardCEE/QMore/Response/Backend/Order/CreditTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/CreditTest.php index b0dbe6e..a123e65 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/CreditTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/CreditTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,17 +31,17 @@ */ /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_CreditTest. + * Test class for QentaCEE_QMore_Response_Backend_Order_CreditTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_CreditTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_CreditTest extends TestCase { /** * - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/IteratorTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/IteratorTest.php similarity index 70% rename from tests/WirecardCEE/QMore/Response/Backend/Order/IteratorTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/IteratorTest.php index 3e8fcc7..b0fb6ec 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/IteratorTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/IteratorTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,27 +32,27 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_IteratorTestObject extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator +class QentaCEE_QMore_Response_Backend_Order_IteratorTestObject extends QentaCEE_QMore_Response_Backend_Order_OrderIterator { } /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_IteratorTest. + * Test class for QentaCEE_QMore_Response_Backend_Order_IteratorTest. * Generated by PHPUnit on 2011-06-24 at 13:26:18. */ -class WirecardCEE_QMore_Response_Backend_Order_IteratorTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_IteratorTest extends TestCase { /** - * @var WirecardCEE_QMore_Response_Backend_Order_IteratorTestObject + * @var QentaCEE_QMore_Response_Backend_Order_IteratorTestObject */ protected $object; public function setUp(): void { $data = Array('a', 'b', 'c', 'd'); - $this->object = new WirecardCEE_QMore_Response_Backend_Order_IteratorTestObject($data); + $this->object = new QentaCEE_QMore_Response_Backend_Order_IteratorTestObject($data); } public function testCurrent() diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/IdealTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/IdealTest.php similarity index 75% rename from tests/WirecardCEE/QMore/Response/Backend/Order/Payment/IdealTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/Payment/IdealTest.php index 4ed8e8d..370d7bf 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/IdealTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/IdealTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal + * Test class for QentaCEE_QMore_Response_Backend_Order_Payment_Ideal * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_Payment_IdealTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_Payment_IdealTest extends TestCase { /** - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -56,7 +56,7 @@ class WirecardCEE_QMore_Response_Backend_Order_Payment_IdealTest extends TestCas */ protected function setUp(): void { - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php similarity index 83% rename from tests/WirecardCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php index d81bd30..019bd84 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/PaypalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_Payment_PaypalTest. + * Test class for QentaCEE_QMore_Response_Backend_Order_Payment_PaypalTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_Payment_PaypalTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_Payment_PaypalTest extends TestCase { /** - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -63,7 +63,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php similarity index 79% rename from tests/WirecardCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php index ee0e1a3..8cfc984 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/Payment/SofortueberweisungTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_Payment_SofortueberweisungTest. + * Test class for QentaCEE_QMore_Response_Backend_Order_Payment_SofortueberweisungTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_Payment_SofortueberweisungTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_Payment_SofortueberweisungTest extends TestCase { /** - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -63,7 +63,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/Order/PaymentTest.php b/tests/QentaCEE/QMore/Response/Backend/Order/PaymentTest.php similarity index 81% rename from tests/WirecardCEE/QMore/Response/Backend/Order/PaymentTest.php rename to tests/QentaCEE/QMore/Response/Backend/Order/PaymentTest.php index 6985dee..745b34b 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/Order/PaymentTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/Order/PaymentTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_Response_Backend_Order_PaymentTest. + * Test class for QentaCEE_QMore_Response_Backend_Order_PaymentTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_Order_PaymentTest extends TestCase +class QentaCEE_QMore_Response_Backend_Order_PaymentTest extends TestCase { /** - * @var WirecardCEE_QMore_Response_Backend_GetOrderDetails + * @var QentaCEE_QMore_Response_Backend_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -57,10 +57,10 @@ class WirecardCEE_QMore_Response_Backend_Order_PaymentTest extends TestCase protected function setUp(): void { parent::setUp(); - $pluginVersion = WirecardCEE_QMore_FrontendClient::generatePluginVersion('InitiationTest', '0.0.0', + $pluginVersion = QentaCEE_QMore_FrontendClient::generatePluginVersion('InitiationTest', '0.0.0', 'defaultInstance', '0.0.0'); - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/OrderTest.php b/tests/QentaCEE/QMore/Response/Backend/OrderTest.php similarity index 85% rename from tests/WirecardCEE/QMore/Response/Backend/OrderTest.php rename to tests/QentaCEE/QMore/Response/Backend/OrderTest.php index 27feed7..9656d9f 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/OrderTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/OrderTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_Order test case. + * QentaCEE_QMore_Response_Backend_Order test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_OrderTest extends TestCase +class QentaCEE_QMore_Response_Backend_OrderTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -47,7 +47,7 @@ class WirecardCEE_QMore_Response_Backend_OrderTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_Order + * @var QentaCEE_QMore_Response_Backend_Order */ private $object; @@ -63,7 +63,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/OrderTest1.php b/tests/QentaCEE/QMore/Response/Backend/OrderTest1.php similarity index 85% rename from tests/WirecardCEE/QMore/Response/Backend/OrderTest1.php rename to tests/QentaCEE/QMore/Response/Backend/OrderTest1.php index 6756b3a..4c201c7 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/OrderTest1.php +++ b/tests/QentaCEE/QMore/Response/Backend/OrderTest1.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_Order test case. + * QentaCEE_QMore_Response_Backend_Order test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_OrderTest1 extends TestCase +class QentaCEE_QMore_Response_Backend_OrderTest1 extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -47,7 +47,7 @@ class WirecardCEE_QMore_Response_Backend_OrderTest1 extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_Order + * @var QentaCEE_QMore_Response_Backend_Order */ private $object; @@ -63,7 +63,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QMore/Response/Backend/RecurPaymentTest.php b/tests/QentaCEE/QMore/Response/Backend/RecurPaymentTest.php similarity index 77% rename from tests/WirecardCEE/QMore/Response/Backend/RecurPaymentTest.php rename to tests/QentaCEE/QMore/Response/Backend/RecurPaymentTest.php index f901fec..3575440 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/RecurPaymentTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/RecurPaymentTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_RecurPayment test case. + * QentaCEE_QMore_Response_Backend_RecurPayment test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_RecurPaymentTest extends TestCase +class QentaCEE_QMore_Response_Backend_RecurPaymentTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -52,7 +52,7 @@ class WirecardCEE_QMore_Response_Backend_RecurPaymentTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_RecurPayment + * @var QentaCEE_QMore_Response_Backend_RecurPayment */ private $object; @@ -68,7 +68,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, @@ -115,7 +115,7 @@ public function testHasFailed() protected function tearDown(): void { // TODO Auto-generated - // WirecardCEE_QMore_Response_Backend_RecurPaymentTest::tearDown() + // QentaCEE_QMore_Response_Backend_RecurPaymentTest::tearDown() $this->object = null; parent::tearDown(); diff --git a/tests/WirecardCEE/QMore/Response/Backend/RefundReversalTest.php b/tests/QentaCEE/QMore/Response/Backend/RefundReversalTest.php similarity index 75% rename from tests/WirecardCEE/QMore/Response/Backend/RefundReversalTest.php rename to tests/QentaCEE/QMore/Response/Backend/RefundReversalTest.php index 6ca6816..1cf97af 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/RefundReversalTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/RefundReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_RefundReversal test case. + * QentaCEE_QMore_Response_Backend_RefundReversal test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_RefundReversalTest extends TestCase +class QentaCEE_QMore_Response_Backend_RefundReversalTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -48,7 +48,7 @@ class WirecardCEE_QMore_Response_Backend_RefundReversalTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_RefundReversal + * @var QentaCEE_QMore_Response_Backend_RefundReversal */ private $object; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oBackClient = new WirecardCEE_QMore_BackendClient(Array( + $oBackClient = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, @@ -105,7 +105,7 @@ public function testHasFailed() protected function tearDown(): void { // TODO Auto-generated - // WirecardCEE_QMore_Response_Backend_RefundReversalTest::tearDown() + // QentaCEE_QMore_Response_Backend_RefundReversalTest::tearDown() $this->object = null; parent::tearDown(); diff --git a/tests/WirecardCEE/QMore/Response/Backend/RefundTest.php b/tests/QentaCEE/QMore/Response/Backend/RefundTest.php similarity index 78% rename from tests/WirecardCEE/QMore/Response/Backend/RefundTest.php rename to tests/QentaCEE/QMore/Response/Backend/RefundTest.php index a272412..3ad77c0 100644 --- a/tests/WirecardCEE/QMore/Response/Backend/RefundTest.php +++ b/tests/QentaCEE/QMore/Response/Backend/RefundTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QMore_Response_Backend_Refund test case. + * QentaCEE_QMore_Response_Backend_Refund test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_Backend_RefundTest extends TestCase +class QentaCEE_QMore_Response_Backend_RefundTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -49,7 +49,7 @@ class WirecardCEE_QMore_Response_Backend_RefundTest extends TestCase /** * - * @var WirecardCEE_QMore_Response_Backend_Refund + * @var QentaCEE_QMore_Response_Backend_Refund */ private $object; @@ -59,7 +59,7 @@ class WirecardCEE_QMore_Response_Backend_RefundTest extends TestCase protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QMore_BackendClient(Array( + $this->object = new QentaCEE_QMore_BackendClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -121,7 +121,7 @@ public function testHasFailed() protected function tearDown(): void { // TODO Auto-generated - // WirecardCEE_QMore_Response_Backend_RefundTest::tearDown() + // QentaCEE_QMore_Response_Backend_RefundTest::tearDown() $this->object = null; parent::tearDown(); @@ -130,11 +130,11 @@ protected function tearDown(): void /** * Creates a valid shopping basket. * - * @return WirecardCEE_Stdlib_Basket + * @return QentaCEE_Stdlib_Basket */ private function getValidBasket() { - $basketItem = new WirecardCEE_Stdlib_Basket_Item('WirecardCEETestItem'); + $basketItem = new QentaCEE_Stdlib_Basket_Item('QentaCEETestItem'); $basketItem->setUnitGrossAmount(10) ->setUnitNetAmount(8) ->setUnitTaxAmount(2) @@ -143,7 +143,7 @@ private function getValidBasket() ->setName('unittest name') ->setImageUrl('http://example.com/picture.png'); - $basket = new WirecardCEE_Stdlib_Basket(); + $basket = new QentaCEE_Stdlib_Basket(); $basket->addItem($basketItem); return $basket; diff --git a/tests/WirecardCEE/QMore/Response/InitiationTest.php b/tests/QentaCEE/QMore/Response/InitiationTest.php similarity index 65% rename from tests/WirecardCEE/QMore/Response/InitiationTest.php rename to tests/QentaCEE/QMore/Response/InitiationTest.php index b6f24f2..175155b 100644 --- a/tests/WirecardCEE/QMore/Response/InitiationTest.php +++ b/tests/QentaCEE/QMore/Response/InitiationTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,17 +31,17 @@ */ /** - * Test class for WirecardCEE_QMore_Response_InitiationTest. + * Test class for QentaCEE_QMore_Response_InitiationTest. * Generated by PHPUnit on 2011-06-24 at 13:26:02. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Response_InitiationTest extends TestCase +class QentaCEE_QMore_Response_InitiationTest extends TestCase { /** * - * @var WirecardCEE_QMOre_Response_Initiation + * @var QentaCEE_QMOre_Response_Initiation */ protected $object; @@ -53,7 +53,7 @@ protected function setUp(): void { $zendHttpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&redirectUrl=http://www.example.com&su=blub'); - $this->object = new WirecardCEE_QMore_Response_Initiation($zendHttpResponse); + $this->object = new QentaCEE_QMore_Response_Initiation($zendHttpResponse); } /** @@ -68,7 +68,7 @@ protected function tearDown(): void public function testGetStatus() { - $this->assertEquals(WirecardCEE_QMore_Response_Initiation::STATE_SUCCESS, $this->object->getStatus()); + $this->assertEquals(QentaCEE_QMore_Response_Initiation::STATE_SUCCESS, $this->object->getStatus()); } public function testGetRedirectUrl() @@ -79,14 +79,14 @@ public function testGetRedirectUrl() public function testGetStatusFailed() { $this->object = $this->_fail200Response(); - $this->assertEquals(WirecardCEE_QMore_Response_Initiation::STATE_FAILURE, $this->object->getStatus()); + $this->assertEquals(QentaCEE_QMore_Response_Initiation::STATE_FAILURE, $this->object->getStatus()); } protected function _fail200Response() { $zendHttpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&su=blub'); - return new WirecardCEE_QMore_Response_Initiation($zendHttpResponse); + return new QentaCEE_QMore_Response_Initiation($zendHttpResponse); } } diff --git a/tests/WirecardCEE/QMore/Return/CancelTest.php b/tests/QentaCEE/QMore/Return/CancelTest.php similarity index 70% rename from tests/WirecardCEE/QMore/Return/CancelTest.php rename to tests/QentaCEE/QMore/Return/CancelTest.php index 26164c1..db25309 100644 --- a/tests/WirecardCEE/QMore/Return/CancelTest.php +++ b/tests/QentaCEE/QMore/Return/CancelTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Cancel. + * Test class for QentaCEE_Client_QMore_Return_Cancel. * Generated by PHPUnit on 2011-06-24 at 13:25:58. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_CancelTest extends TestCase +class QentaCEE_QMore_Return_CancelTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Cancel + * @var QentaCEE_QMore_Return_Cancel */ protected $object; protected $_returnData = Array('paymentState' => 'CANCEL'); @@ -51,7 +51,7 @@ class WirecardCEE_QMore_Return_CancelTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Cancel($this->_returnData); + $this->object = new QentaCEE_QMore_Return_Cancel($this->_returnData); } /** diff --git a/tests/WirecardCEE/QMore/Return/FailureTest.php b/tests/QentaCEE/QMore/Return/FailureTest.php similarity index 76% rename from tests/WirecardCEE/QMore/Return/FailureTest.php rename to tests/QentaCEE/QMore/Return/FailureTest.php index 0768fe6..71a62ca 100644 --- a/tests/WirecardCEE/QMore/Return/FailureTest.php +++ b/tests/QentaCEE/QMore/Return/FailureTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_FailureTest extends TestCase +class QentaCEE_QMore_Return_FailureTest extends TestCase { protected $object; @@ -57,7 +57,7 @@ class WirecardCEE_QMore_Return_FailureTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Failure($this->_returnData); + $this->object = new QentaCEE_QMore_Return_Failure($this->_returnData); } public function testValidate() diff --git a/tests/WirecardCEE/QMore/Return/ReturnAbstractTest.php b/tests/QentaCEE/QMore/Return/ReturnAbstractTest.php similarity index 72% rename from tests/WirecardCEE/QMore/Return/ReturnAbstractTest.php rename to tests/QentaCEE/QMore/Return/ReturnAbstractTest.php index c08bbf9..e859370 100644 --- a/tests/WirecardCEE/QMore/Return/ReturnAbstractTest.php +++ b/tests/QentaCEE/QMore/Return/ReturnAbstractTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_ReturnAbstractTestObject extends WirecardCEE_Stdlib_Return_ReturnAbstract +class QentaCEE_QMore_Return_ReturnAbstractTestObject extends QentaCEE_Stdlib_Return_ReturnAbstract { public function validate() { @@ -41,14 +41,14 @@ public function validate() } /** - * Test class for WirecardCEE_Client_QMore_Return_Abstract. + * Test class for QentaCEE_Client_QMore_Return_Abstract. */ -class WirecardCEE_QMore_Return_ReturnAbstractTest extends TestCase +class QentaCEE_QMore_Return_ReturnAbstractTest extends TestCase { /** * - * @var WirecardCEE_QMore_Return_ReturnAbstractTestObject + * @var QentaCEE_QMore_Return_ReturnAbstractTestObject */ protected $object; protected $_returnData = Array( @@ -61,7 +61,7 @@ class WirecardCEE_QMore_Return_ReturnAbstractTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_ReturnAbstractTestObject($this->_returnData); + $this->object = new QentaCEE_QMore_Return_ReturnAbstractTestObject($this->_returnData); } /** @@ -102,7 +102,7 @@ public function testGetReturnedButUnsetArrayFields() $returnData['responseFingerprintOrder'] = 'TEST'; $returnData['responseFingerprint'] = 'TEST'; - $object = new WirecardCEE_QMore_Return_ReturnAbstractTestObject($returnData); + $object = new QentaCEE_QMore_Return_ReturnAbstractTestObject($returnData); $object->getReturned(); $this->assertFalse(isset( $this->_returnData['responseFingerprintOrder'] )); diff --git a/tests/WirecardCEE/QMore/Return/Success/CreditCardTest.php b/tests/QentaCEE/QMore/Return/Success/CreditCardTest.php similarity index 80% rename from tests/WirecardCEE/QMore/Return/Success/CreditCardTest.php rename to tests/QentaCEE/QMore/Return/Success/CreditCardTest.php index f147409..54e8b1b 100644 --- a/tests/WirecardCEE/QMore/Return/Success/CreditCardTest.php +++ b/tests/QentaCEE/QMore/Return/Success/CreditCardTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Success_Creditcard. + * Test class for QentaCEE_Client_QMore_Return_Success_Creditcard. * Generated by PHPUnit on 2011-06-24 at 13:36:02. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_Success_CreditcardTest extends TestCase +class QentaCEE_QMore_Return_Success_CreditcardTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Success_Creditcard + * @var QentaCEE_QMore_Return_Success_Creditcard */ protected $object; protected $_returnData = Array( @@ -72,7 +72,7 @@ class WirecardCEE_QMore_Return_Success_CreditcardTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Success_CreditCard($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QMore_Return_Success_CreditCard($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QPay/Return/Success/IdealTest.php b/tests/QentaCEE/QMore/Return/Success/IdealTest.php similarity index 80% rename from tests/WirecardCEE/QPay/Return/Success/IdealTest.php rename to tests/QentaCEE/QMore/Return/Success/IdealTest.php index 03caa6e..38ab8ed 100644 --- a/tests/WirecardCEE/QPay/Return/Success/IdealTest.php +++ b/tests/QentaCEE/QMore/Return/Success/IdealTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,19 +31,18 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Success_Ideal. + * Test class for QentaCEE_Client_QMore_Return_Success_Ideal. * Generated by PHPUnit on 2011-06-24 at 13:26:06. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_Success_IdealTest extends TestCase +class QentaCEE_QMore_Return_Success_IdealTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Success_Ideal + * @var QentaCEE_QMore_Return_Success_Ideal */ protected $object; - protected $_returnData = Array( 'amount' => '1', 'currency' => 'EUR', @@ -71,7 +70,7 @@ class WirecardCEE_QPay_Return_Success_IdealTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Success_Ideal($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QMore_Return_Success_Ideal($this->_returnData, $this->_secret); } /** @@ -104,3 +103,4 @@ public function testValidate() } } + diff --git a/tests/WirecardCEE/QMore/Return/Success/PaypalTest.php b/tests/QentaCEE/QMore/Return/Success/PaypalTest.php similarity index 85% rename from tests/WirecardCEE/QMore/Return/Success/PaypalTest.php rename to tests/QentaCEE/QMore/Return/Success/PaypalTest.php index 67d63da..7867535 100644 --- a/tests/WirecardCEE/QMore/Return/Success/PaypalTest.php +++ b/tests/QentaCEE/QMore/Return/Success/PaypalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Success_Paypal. + * Test class for QentaCEE_Client_QMore_Return_Success_Paypal. * Generated by PHPUnit on 2011-06-24 at 13:26:05. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_Success_PaypalTest extends TestCase +class QentaCEE_QMore_Return_Success_PaypalTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Success_PayPal + * @var QentaCEE_QMore_Return_Success_PayPal */ protected $object; protected $_returnData = Array( @@ -79,7 +79,7 @@ class WirecardCEE_QMore_Return_Success_PaypalTest extends TestCase protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Success_PayPal($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QMore_Return_Success_PayPal($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QMore/Return/Success/SofortueberweisungTest.php b/tests/QentaCEE/QMore/Return/Success/SofortueberweisungTest.php similarity index 82% rename from tests/WirecardCEE/QMore/Return/Success/SofortueberweisungTest.php rename to tests/QentaCEE/QMore/Return/Success/SofortueberweisungTest.php index ba281b3..9f5c93f 100644 --- a/tests/WirecardCEE/QMore/Return/Success/SofortueberweisungTest.php +++ b/tests/QentaCEE/QMore/Return/Success/SofortueberweisungTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Success_Sofortueberweisung. + * Test class for QentaCEE_Client_QMore_Return_Success_Sofortueberweisung. * Generated by PHPUnit on 2011-06-24 at 13:26:03. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_Success_SofortueberweisungTest extends TestCase +class QentaCEE_QMore_Return_Success_SofortueberweisungTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Success_Sofortueberweisung + * @var QentaCEE_QMore_Return_Success_Sofortueberweisung */ protected $object; protected $_returnData = Array( @@ -75,7 +75,7 @@ class WirecardCEE_QMore_Return_Success_SofortueberweisungTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Success_Sofortueberweisung($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QMore_Return_Success_Sofortueberweisung($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QMore/Return/SuccessTest.php b/tests/QentaCEE/QMore/Return/SuccessTest.php similarity index 80% rename from tests/WirecardCEE/QMore/Return/SuccessTest.php rename to tests/QentaCEE/QMore/Return/SuccessTest.php index 2229439..47444c2 100644 --- a/tests/WirecardCEE/QMore/Return/SuccessTest.php +++ b/tests/QentaCEE/QMore/Return/SuccessTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Cancel. + * Test class for QentaCEE_Client_QMore_Return_Cancel. * Generated by PHPUnit on 2011-06-24 at 13:25:58. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_SuccessTest extends TestCase +class QentaCEE_QMore_Return_SuccessTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Success + * @var QentaCEE_QMore_Return_Success */ protected $object; @@ -72,8 +72,8 @@ class WirecardCEE_QMore_Return_SuccessTest extends TestCase */ protected function setUp(): void { - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); - $this->object = new WirecardCEE_QMore_Return_Success($this->_returnData, $this->_secret); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); + $this->object = new QentaCEE_QMore_Return_Success($this->_returnData, $this->_secret); } /** @@ -142,11 +142,11 @@ public function testValidate() public function testValidateFalse() { - $this -> expectException(WirecardCEE_Stdlib_Exception_UnexpectedValueException::class); - $object = new WirecardCEE_QMore_Return_Success($this->_returnData, ''); + $this -> expectException(QentaCEE_Stdlib_Exception_UnexpectedValueException::class); + $object = new QentaCEE_QMore_Return_Success($this->_returnData, ''); try { $object->validate(); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { $this->assertContains('Secret is empty', $e->getMessage()); } } @@ -155,11 +155,11 @@ public function testValidateNoFingerprintOrder() { $returnData = $this->_returnData; unset( $returnData['responseFingerprintOrder'] ); - $object = new WirecardCEE_QMore_Return_Success($returnData, $this->_secret); + $object = new QentaCEE_QMore_Return_Success($returnData, $this->_secret); try { $returned = $object->validate(); $this->assertFalse($returned); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { $this->assertContains('Parameter responseFingerprintOrder has not been returned', $e->getMessage()); } } diff --git a/tests/QentaCEE/QMore/ReturnFactoryTest.php b/tests/QentaCEE/QMore/ReturnFactoryTest.php new file mode 100644 index 0000000..b705a36 --- /dev/null +++ b/tests/QentaCEE/QMore/ReturnFactoryTest.php @@ -0,0 +1,213 @@ +object = null; + parent::tearDown(); + } + + /** + * Tests QentaCEE_QMore_ReturnFactory::getInstance() + */ + public function testGetInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertTrue(is_object($oInstance)); + } + + public function testSuccessInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Success_CreditCard', $oInstance); + } + + public function testSuccessPaypalInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'Paypal' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Success_PayPal', $oInstance); + } + + public function testSuccessSofortueberweisungInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'SOFORTUEBERWEISUNG' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Success_Sofortueberweisung', $oInstance); + } + + public function testSuccessIdealInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'IDL' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Success_Ideal', $oInstance); + } + + public function testSuccessDefaultInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS, + 'paymentType' => '' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Success', $oInstance); + } + + public function testInstanceWIthNoPaymentType() + { + $this -> expectException(QentaCEE_QMore_Exception_InvalidResponseException::class); + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_SUCCESS + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testFailureState() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_FAILURE + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Failure', $oInstance); + } + + public function testCancelState() + { + $return = Array( + 'paymentState' => QentaCEE_QMore_ReturnFactory::STATE_CANCEL, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QMore_Return_Cancel', $oInstance); + } + + public function testNoState() + { + $this -> expectException(QentaCEE_QMore_Exception_InvalidResponseException::class); + $return = Array( + 'paymentState' => 999 + ); + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testInstanceWithEmptyPaymentStateInArray() + { + $this -> expectException(QentaCEE_QMore_Exception_InvalidResponseException::class); + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance(Array(), $this->_secret); + } + + public function testWhenReturnIsNotArray() + { + $this -> expectException(QentaCEE_QMore_Exception_InvalidResponseException::class); + $return = ""; + $oInstance = QentaCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testGenerateConfirmResponseNOKString() + { + $response = QentaCEE_QMore_ReturnFactory::generateConfirmResponseString('nok test'); + $this->assertEquals('', + $response); + } + + public function testGenerateConfirmResponseHtmlCommentNOKString() + { + $response = QentaCEE_QMore_ReturnFactory::generateConfirmResponseString('nok test', true); + $this->assertEquals('', + $response); + } + + public function testGenerateConfirmResponseOKString() + { + $response = QentaCEE_QMore_ReturnFactory::generateConfirmResponseString(); + $this->assertEquals('', $response); + } + + public function testGenerateConfirmResponseHtmlCommentOKString() + { + $response = QentaCEE_QMore_ReturnFactory::generateConfirmResponseString('', true); + $this->assertEquals('', $response); + } +} + diff --git a/tests/WirecardCEE/QPay/ErrorTest.php b/tests/QentaCEE/QPay/ErrorTest.php similarity index 58% rename from tests/WirecardCEE/QPay/ErrorTest.php rename to tests/QentaCEE/QPay/ErrorTest.php index 99d546f..5571c00 100644 --- a/tests/WirecardCEE/QPay/ErrorTest.php +++ b/tests/QentaCEE/QPay/ErrorTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,25 +32,25 @@ /** - * WirecardCEE_QPayFrontendClient test case. + * QentaCEE_QPayFrontendClient test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_ErrorTest extends TestCase +class QentaCEE_QPay_ErrorTest extends TestCase { /** * - * @var WirecardCEE_QPay_Error + * @var QentaCEE_QPay_Error */ protected $object; protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Error('WirecardCEE Error Message'); + $this->object = new QentaCEE_QPay_Error('QentaCEE Error Message'); } public function testGetMessage() { - $this->assertEquals('WirecardCEE Error Message', $this->object->getMessage()); + $this->assertEquals('QentaCEE Error Message', $this->object->getMessage()); } } \ No newline at end of file diff --git a/tests/QentaCEE/QPay/Exception/BadMethodCallExceptionTest.php b/tests/QentaCEE/QPay/Exception/BadMethodCallExceptionTest.php new file mode 100644 index 0000000..7cd3d3c --- /dev/null +++ b/tests/QentaCEE/QPay/Exception/BadMethodCallExceptionTest.php @@ -0,0 +1,99 @@ +object = new QentaCEE_QPay_Exception_BadMethodCallException('objectMessage', 666); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown(): void + { + + } + + public function testThrowExceptionWithoutData() + { + try { + throw new QentaCEE_QPay_Exception_BadMethodCallException(); + } catch (QentaCEE_QPay_Exception_BadMethodCallException $e) { + $this->assertEquals('', $e->getMessage()); + $this->assertEquals(0, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function testThrowExceptionWithData() + { + try { + throw new QentaCEE_QPay_Exception_BadMethodCallException('message', 1234); + } catch (QentaCEE_QPay_Exception_BadMethodCallException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function getThrowExceptionWithPrevious() + { + try { + throw new QentaCEE_QPay_Exception_BadMethodCallException('message', 111, $this->object); + } catch (QentaCEE_QPay_Exception_BadMethodCallException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals($this->object, $e->getPrevious()); + } + } +} + +?> diff --git a/tests/WirecardCEE/QPay/Exception/InvalidArgumentExceptionTest.php b/tests/QentaCEE/QPay/Exception/InvalidArgumentExceptionTest.php similarity index 63% rename from tests/WirecardCEE/QPay/Exception/InvalidArgumentExceptionTest.php rename to tests/QentaCEE/QPay/Exception/InvalidArgumentExceptionTest.php index 887adef..520aade 100644 --- a/tests/WirecardCEE/QPay/Exception/InvalidArgumentExceptionTest.php +++ b/tests/QentaCEE/QPay/Exception/InvalidArgumentExceptionTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Exception. + * Test class for QentaCEE_Client_QPay_Exception. * Generated by PHPUnit on 2011-06-24 at 13:25:52. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Exception_InvalidArgumentExceptionTest extends TestCase +class QentaCEE_QPay_Exception_InvalidArgumentExceptionTest extends TestCase { /** - * @var WirecardCEE_QPay_Exception_InvalidArgumentException + * @var QentaCEE_QPay_Exception_InvalidArgumentException */ protected $object; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Exception_InvalidArgumentExceptionTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Exception_InvalidArgumentException('objectMessage', 666); + $this->object = new QentaCEE_QPay_Exception_InvalidArgumentException('objectMessage', 666); } /** @@ -65,8 +65,8 @@ protected function tearDown(): void public function testThrowExceptionWithoutData() { try { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException(); - } catch (WirecardCEE_QPay_Exception_InvalidArgumentException $e) { + throw new QentaCEE_QPay_Exception_InvalidArgumentException(); + } catch (QentaCEE_QPay_Exception_InvalidArgumentException $e) { $this->assertEquals('', $e->getMessage()); $this->assertEquals(0, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -76,8 +76,8 @@ public function testThrowExceptionWithoutData() public function testThrowExceptionWithData() { try { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException('message', 1234); - } catch (WirecardCEE_QPay_Exception_InvalidArgumentException $e) { + throw new QentaCEE_QPay_Exception_InvalidArgumentException('message', 1234); + } catch (QentaCEE_QPay_Exception_InvalidArgumentException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -87,8 +87,8 @@ public function testThrowExceptionWithData() public function getThrowExceptionWithPrevious() { try { - throw new WirecardCEE_QPay_Exception_InvalidArgumentException('message', 111, $this->object); - } catch (WirecardCEE_QPay_Exception_InvalidArgumentException $e) { + throw new QentaCEE_QPay_Exception_InvalidArgumentException('message', 111, $this->object); + } catch (QentaCEE_QPay_Exception_InvalidArgumentException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals($this->object, $e->getPrevious()); diff --git a/tests/WirecardCEE/QPay/Exception/InvalidResponseExceptionTest.php b/tests/QentaCEE/QPay/Exception/InvalidParamLengthExceptionTest.php similarity index 66% rename from tests/WirecardCEE/QPay/Exception/InvalidResponseExceptionTest.php rename to tests/QentaCEE/QPay/Exception/InvalidParamLengthExceptionTest.php index 1d99b40..dea9d7f 100644 --- a/tests/WirecardCEE/QPay/Exception/InvalidResponseExceptionTest.php +++ b/tests/QentaCEE/QPay/Exception/InvalidParamLengthExceptionTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Exception. + * Test class for QentaCEE_Client_QPay_Exception. * Generated by PHPUnit on 2011-06-24 at 13:25:52. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Exception_InvalidResponseExceptionTest extends TestCase +class QentaCEE_QPay_Exception_InvalidParamLengthExceptionTest extends TestCase { /** - * @var WirecardCEE_QPay_Exception_InvalidResponseException + * @var QentaCEE_QPay_Exception_InvalidParamLengthException */ protected $object; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Exception_InvalidResponseExceptionTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Exception_InvalidResponseException('objectMessage', 666); + $this->object = new QentaCEE_QPay_Exception_InvalidParamLengthException('objectMessage', 666); } /** @@ -65,8 +65,8 @@ protected function tearDown(): void public function testThrowExceptionWithoutData() { try { - throw new WirecardCEE_QPay_Exception_InvalidResponseException(); - } catch (WirecardCEE_QPay_Exception_InvalidResponseException $e) { + throw new QentaCEE_QPay_Exception_InvalidParamLengthException(); + } catch (QentaCEE_QPay_Exception_InvalidParamLengthException $e) { $this->assertEquals('', $e->getMessage()); $this->assertEquals(0, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -76,8 +76,8 @@ public function testThrowExceptionWithoutData() public function testThrowExceptionWithData() { try { - throw new WirecardCEE_QPay_Exception_InvalidResponseException('message', 1234); - } catch (WirecardCEE_QPay_Exception_InvalidResponseException $e) { + throw new QentaCEE_QPay_Exception_InvalidParamLengthException('message', 1234); + } catch (QentaCEE_QPay_Exception_InvalidParamLengthException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -87,8 +87,8 @@ public function testThrowExceptionWithData() public function getThrowExceptionWithPrevious() { try { - throw new WirecardCEE_QPay_Exception_InvalidResponseException('message', 111, $this->object); - } catch (WirecardCEE_QPay_Exception_InvalidResponseException $e) { + throw new QentaCEE_QPay_Exception_InvalidParamLengthException('message', 111, $this->object); + } catch (QentaCEE_QPay_Exception_InvalidParamLengthException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals($this->object, $e->getPrevious()); diff --git a/tests/QentaCEE/QPay/Exception/InvalidResponseExceptionTest.php b/tests/QentaCEE/QPay/Exception/InvalidResponseExceptionTest.php new file mode 100644 index 0000000..ca13ca6 --- /dev/null +++ b/tests/QentaCEE/QPay/Exception/InvalidResponseExceptionTest.php @@ -0,0 +1,99 @@ +object = new QentaCEE_QPay_Exception_InvalidResponseException('objectMessage', 666); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown(): void + { + + } + + public function testThrowExceptionWithoutData() + { + try { + throw new QentaCEE_QPay_Exception_InvalidResponseException(); + } catch (QentaCEE_QPay_Exception_InvalidResponseException $e) { + $this->assertEquals('', $e->getMessage()); + $this->assertEquals(0, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function testThrowExceptionWithData() + { + try { + throw new QentaCEE_QPay_Exception_InvalidResponseException('message', 1234); + } catch (QentaCEE_QPay_Exception_InvalidResponseException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function getThrowExceptionWithPrevious() + { + try { + throw new QentaCEE_QPay_Exception_InvalidResponseException('message', 111, $this->object); + } catch (QentaCEE_QPay_Exception_InvalidResponseException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals($this->object, $e->getPrevious()); + } + } +} + +?> diff --git a/tests/WirecardCEE/QPay/FrontendClientTest.php b/tests/QentaCEE/QPay/FrontendClientTest.php similarity index 65% rename from tests/WirecardCEE/QPay/FrontendClientTest.php rename to tests/QentaCEE/QPay/FrontendClientTest.php index d0b594e..014af02 100644 --- a/tests/WirecardCEE/QPay/FrontendClientTest.php +++ b/tests/QentaCEE/QPay/FrontendClientTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ /** - * WirecardCEE_QPayFrontendClient test case. + * QentaCEE_QPayFrontendClient test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_FrontendClientTest extends TestCase +class QentaCEE_QPay_FrontendClientTest extends TestCase { /** * @@ -52,7 +52,7 @@ class WirecardCEE_QPay_FrontendClientTest extends TestCase /** * - * @var WirecardCEE_QPay_FrontendClient + * @var QentaCEE_QPay_FrontendClient */ private $object; @@ -67,13 +67,13 @@ class WirecardCEE_QPay_FrontendClientTest extends TestCase protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QPay_FrontendClient(); - $this->aUserConfig = WirecardCEE_QPay_Module::getConfig(); - $this->aClientConfig = WirecardCEE_QPay_Module::getClientConfig(); + $this->object = new QentaCEE_QPay_FrontendClient(); + $this->aUserConfig = QentaCEE_QPay_Module::getConfig(); + $this->aClientConfig = QentaCEE_QPay_Module::getClientConfig(); $this->aExpectedRequestData = array( - WirecardCEE_QPay_FrontendClient::CUSTOMER_ID => $this->aUserConfig['WirecardCEEQPayConfig']['CUSTOMER_ID'], - WirecardCEE_QPay_FrontendClient::SHOP_ID => $this->aUserConfig['WirecardCEEQPayConfig']['SHOP_ID'], - WirecardCEE_QPay_FrontendClient::LANGUAGE => $this->aUserConfig['WirecardCEEQPayConfig']['LANGUAGE'], + QentaCEE_QPay_FrontendClient::CUSTOMER_ID => $this->aUserConfig['QentaCEEQPayConfig']['CUSTOMER_ID'], + QentaCEE_QPay_FrontendClient::SHOP_ID => $this->aUserConfig['QentaCEEQPayConfig']['SHOP_ID'], + QentaCEE_QPay_FrontendClient::LANGUAGE => $this->aUserConfig['QentaCEEQPayConfig']['LANGUAGE'], ); } @@ -93,19 +93,19 @@ protected function tearDown(): void */ public function testConstructorArrayParam($aConfig) { - $this->object = new WirecardCEE_QPay_FrontendClient($aConfig); - $this->assertEquals($this->aUserConfig['WirecardCEEQPayConfig']['CUSTOMER_ID'], + $this->object = new QentaCEE_QPay_FrontendClient($aConfig); + $this->assertEquals($this->aUserConfig['QentaCEEQPayConfig']['CUSTOMER_ID'], $this->object->getUserConfig()->get('CUSTOMER_ID')); - $this->assertEquals($this->aUserConfig['WirecardCEEQPayConfig']['SHOP_ID'], + $this->assertEquals($this->aUserConfig['QentaCEEQPayConfig']['SHOP_ID'], $this->object->getUserConfig()->get('SHOP_ID')); - $this->assertEquals($this->aUserConfig['WirecardCEEQPayConfig']['LANGUAGE'], + $this->assertEquals($this->aUserConfig['QentaCEEQPayConfig']['LANGUAGE'], $this->object->getUserConfig()->get('LANGUAGE')); - $this->assertEquals($this->aUserConfig['WirecardCEEQPayConfig']['SECRET'], + $this->assertEquals($this->aUserConfig['QentaCEEQPayConfig']['SECRET'], $this->object->getUserConfig()->get('SECRET')); } /** - * Tests WirecardCEE_QPay_FrontendClient->setConfirmUrl() + * Tests QentaCEE_QPay_FrontendClient->setConfirmUrl() */ public function testSetConfirmUrl() { @@ -113,12 +113,12 @@ public function testSetConfirmUrl() $this->object->setConfirmUrl($confirmUrl); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::CONFIRM_URL => $confirmUrl)); + QentaCEE_QPay_FrontendClient::CONFIRM_URL => $confirmUrl)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setWindowName() + * Tests QentaCEE_QPay_FrontendClient->setWindowName() */ public function testSetWindowName() { @@ -126,12 +126,12 @@ public function testSetWindowName() $this->object->setWindowName($windowName); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::WINDOW_NAME => $windowName)); + QentaCEE_QPay_FrontendClient::WINDOW_NAME => $windowName)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setDuplicateRequestCheck() + * Tests QentaCEE_QPay_FrontendClient->setDuplicateRequestCheck() */ public function testSetDuplicateRequestCheck() { @@ -139,12 +139,12 @@ public function testSetDuplicateRequestCheck() $this->object->setDuplicateRequestCheck($duplicateRequestCheck); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::DUPLICATE_REQUEST_CHECK => $duplicateRequestCheck)); + QentaCEE_QPay_FrontendClient::DUPLICATE_REQUEST_CHECK => $duplicateRequestCheck)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setCustomerStatement() + * Tests QentaCEE_QPay_FrontendClient->setCustomerStatement() */ public function testSetCustomerStatement() { @@ -152,12 +152,12 @@ public function testSetCustomerStatement() $this->object->setCustomerStatement($customerStatement); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::CUSTOMER_STATEMENT => $customerStatement)); + QentaCEE_QPay_FrontendClient::CUSTOMER_STATEMENT => $customerStatement)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setOrderReference() + * Tests QentaCEE_QPay_FrontendClient->setOrderReference() */ public function testSetOrderReference() { @@ -165,12 +165,12 @@ public function testSetOrderReference() $this->object->setOrderReference($orderReference); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::ORDER_REFERENCE => $orderReference)); + QentaCEE_QPay_FrontendClient::ORDER_REFERENCE => $orderReference)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setAutoDeposit() + * Tests QentaCEE_QPay_FrontendClient->setAutoDeposit() */ public function testSetAutoDeposit() { @@ -178,12 +178,12 @@ public function testSetAutoDeposit() $this->object->setAutoDeposit($autoDeposit); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::AUTO_DEPOSIT => $autoDeposit)); + QentaCEE_QPay_FrontendClient::AUTO_DEPOSIT => $autoDeposit)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setMaxRetries() + * Tests QentaCEE_QPay_FrontendClient->setMaxRetries() */ public function testSetMaxRetries() { @@ -191,13 +191,13 @@ public function testSetMaxRetries() $this->object->setMaxRetries($maxRetries); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::MAX_RETRIES => $maxRetries)); + QentaCEE_QPay_FrontendClient::MAX_RETRIES => $maxRetries)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->createConsumerMerchantCrmId() + * Tests QentaCEE_QPay_FrontendClient->createConsumerMerchantCrmId() */ public function testCreateConsumerMerchantCrmId() { @@ -205,12 +205,12 @@ public function testCreateConsumerMerchantCrmId() $this->object->createConsumerMerchantCrmId($email); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::CONSUMER_MERCHANT_CRM_ID => md5($email))); + QentaCEE_QPay_FrontendClient::CONSUMER_MERCHANT_CRM_ID => md5($email))); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->createConsumerMerchantCrmId() + * Tests QentaCEE_QPay_FrontendClient->createConsumerMerchantCrmId() */ public function testSetShippingProfile() { @@ -218,13 +218,13 @@ public function testSetShippingProfile() $this->object->setShippingProfile($shippingProfile); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::SHIPPING_PROFILE => 'SP_00001' + QentaCEE_QPay_FrontendClient::SHIPPING_PROFILE => 'SP_00001' )); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setMaxRetries() + * Tests QentaCEE_QPay_FrontendClient->setMaxRetries() */ public function testSetOrderNumber() { @@ -232,12 +232,12 @@ public function testSetOrderNumber() $this->object->setOrderNumber($orderNumber); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::ORDER_NUMBER => $orderNumber)); + QentaCEE_QPay_FrontendClient::ORDER_NUMBER => $orderNumber)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setConfirmMail() + * Tests QentaCEE_QPay_FrontendClient->setConfirmMail() */ public function testSetConfirmMail() { @@ -245,16 +245,16 @@ public function testSetConfirmMail() $this->object->setConfirmMail($confirmMail); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::CONFIRM_MAIL => $confirmMail)); + QentaCEE_QPay_FrontendClient::CONFIRM_MAIL => $confirmMail)); $this->assertEquals($expected, $this->object->getRequestData()); } /** - * Tests WirecardCEE_QPay_FrontendClient->setBasket() + * Tests QentaCEE_QPay_FrontendClient->setBasket() */ public function testSetBasket() { - $mock = $this->getMockBuilder('WirecardCEE_Stdlib_Basket') + $mock = $this->getMockBuilder('QentaCEE_Stdlib_Basket') ->getMock(); $mock->expects($this->once()) @@ -265,17 +265,17 @@ public function testSetBasket() } /** - * Tests WirecardCEE_QPay_FrontendClient->initiate() + * Tests QentaCEE_QPay_FrontendClient->initiate() */ public function testInitiate() { - $consumerData = new WirecardCEE_Stdlib_ConsumerData(); + $consumerData = new QentaCEE_Stdlib_ConsumerData(); $consumerData->setIpAddress('10.1.0.11'); $consumerData->setUserAgent('phpUnit'); $oResponse = $this->object->setAmount(100) ->setCurrency('eur') - ->setPaymentType(WirecardCEE_QPay_PaymentType::PAYPAL) + ->setPaymentType(QentaCEE_QPay_PaymentType::PAYPAL) ->setOrderDescription(__METHOD__) ->setSuccessUrl('http://foo.bar.com/tests/confirm.php') ->setCancelUrl('http://foo.bar.com/tests/confirm.php') @@ -285,7 +285,7 @@ public function testInitiate() ->setConsumerData($consumerData) ->initiate(); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Initiation', $oResponse); + $this->assertInstanceOf('QentaCEE_QPay_Response_Initiation', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertFalse($oResponse->getError()); $this->assertFalse($oResponse->hasFailed()); @@ -294,12 +294,12 @@ public function testInitiate() public function testClientFailedResponse() { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidResponseException::class); - $oResponse = new WirecardCEE_QPay_Response_Initiation(new stdClass()); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidResponseException::class); + $oResponse = new QentaCEE_QPay_Response_Initiation(new stdClass()); } /** - * Tests WirecardCEE_QPay_FrontendClient->__construct() + * Tests QentaCEE_QPay_FrontendClient->__construct() * * @dataProvider provider * @@ -307,15 +307,15 @@ public function testClientFailedResponse() */ public function testMissingConfigValueInConfigArray($aConfig) { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQPayConfig']['CUSTOMER_ID'] = null; - $this->object = new WirecardCEE_QPay_FrontendClient($aConfig); + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQPayConfig']['CUSTOMER_ID'] = null; + $this->object = new QentaCEE_QPay_FrontendClient($aConfig); } public function testFailedInitiate() { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); $oResponse = $this->object->initiate(); } @@ -326,17 +326,17 @@ public function testGetReponseBeforeInitialize() } /** - * Tests WirecardCEE_QPay_FrontendClient->getResponse() + * Tests QentaCEE_QPay_FrontendClient->getResponse() */ public function testGetResponse() { - $consumerData = new WirecardCEE_Stdlib_ConsumerData(); + $consumerData = new QentaCEE_Stdlib_ConsumerData(); $consumerData->setIpAddress('10.1.0.11'); $consumerData->setUserAgent('phpUnit'); $oResponse = $this->object->setAmount(100) ->setCurrency('eur') - ->setPaymentType(WirecardCEE_QPay_PaymentType::PAYPAL) + ->setPaymentType(QentaCEE_QPay_PaymentType::PAYPAL) ->setOrderDescription(__METHOD__) ->setSuccessUrl('http://foo.bar.com/tests/confirm.php') ->setCancelUrl('http://foo.bar.com/tests/confirm.php') @@ -348,7 +348,7 @@ public function testGetResponse() $oResponse = $this->object->getResponse(); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Initiation', $oResponse); + $this->assertInstanceOf('QentaCEE_QPay_Response_Initiation', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertFalse($oResponse->getError()); $this->assertFalse($oResponse->hasFailed()); @@ -361,7 +361,7 @@ public function testConstructorWithInvalidParam() $this->object = null; try { - $this->object = new WirecardCEE_QPay_FrontendClient(array()); + $this->object = new QentaCEE_QPay_FrontendClient(array()); } catch (Exception $e) { $this->assertStringStartsWith('CUSTOMER_ID passed', $e->getMessage()); throw $e; @@ -373,12 +373,12 @@ public function testConstructorWithInvalidParam() */ public function testConstructorWhenLanguageParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQPayConfig']['LANGUAGE'] = null; + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQPayConfig']['LANGUAGE'] = null; try { - $this->object = new WirecardCEE_QPay_FrontendClient($aConfig); - } catch (WirecardCEE_QPay_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QPay_FrontendClient($aConfig); + } catch (QentaCEE_QPay_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('LANGUAGE passed to', $e->getMessage()); throw $e; } @@ -389,19 +389,19 @@ public function testConstructorWhenLanguageParamIsEmpty($aConfig) */ public function testConstructorWhenSecretParamIsEmpty($aConfig) { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $aConfig['WirecardCEEQPayConfig']['SECRET'] = null; + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $aConfig['QentaCEEQPayConfig']['SECRET'] = null; try { - $this->object = new WirecardCEE_QPay_FrontendClient($aConfig); - } catch (WirecardCEE_QPay_Exception_InvalidArgumentException $e) { + $this->object = new QentaCEE_QPay_FrontendClient($aConfig); + } catch (QentaCEE_QPay_Exception_InvalidArgumentException $e) { $this->assertStringStartsWith('SECRET passed to', $e->getMessage()); throw $e; } } /** - * Tests WirecardCEE_QPay_FrontendClient->getResponse() + * Tests QentaCEE_QPay_FrontendClient->getResponse() */ public function testSetPluginVersion() { @@ -410,7 +410,7 @@ public function testSetPluginVersion() $this->object->setPluginVersion($sPluginVersion); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::PLUGIN_VERSION => $sPluginVersion)); + QentaCEE_QPay_FrontendClient::PLUGIN_VERSION => $sPluginVersion)); $this->assertEquals($expected, $this->object->getRequestData()); } @@ -420,7 +420,7 @@ public function testSetFinancialInstitution() $this->object->setFinancialInstitution($sFinancialInstitution); $expected = array_merge($this->aExpectedRequestData, array( - WirecardCEE_QPay_FrontendClient::FINANCIAL_INSTITUTION => $sFinancialInstitution)); + QentaCEE_QPay_FrontendClient::FINANCIAL_INSTITUTION => $sFinancialInstitution)); $this->assertEquals($expected, $this->object->getRequestData()); } @@ -436,7 +436,7 @@ public function provider() return Array( Array( Array( - 'WirecardCEEQPayConfig' => Array( + 'QentaCEEQPayConfig' => Array( 'CUSTOMER_ID' => 'D200001', 'SHOP_ID' => '', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', diff --git a/tests/WirecardCEE/QPay/MobileDetectTest.php b/tests/QentaCEE/QPay/MobileDetectTest.php similarity index 76% rename from tests/WirecardCEE/QPay/MobileDetectTest.php rename to tests/QentaCEE/QPay/MobileDetectTest.php index f01b191..4683033 100644 --- a/tests/WirecardCEE/QPay/MobileDetectTest.php +++ b/tests/QentaCEE/QPay/MobileDetectTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_MobileDetectTest extends TestCase +class QentaCEE_QPay_MobileDetectTest extends TestCase { public function testClientConfig() { - $detect = new WirecardCEE_QPay_MobileDetect(); + $detect = new QentaCEE_QPay_MobileDetect(); $this->assertFalse($detect->isMobile('Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0; Touch; MDDCJS; WebView/1.0)')); $this->assertFalse($detect->isTablet('Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0; Touch; MDDCJS; WebView/1.0)')); diff --git a/tests/WirecardCEE/QPay/ModuleTest.php b/tests/QentaCEE/QPay/ModuleTest.php similarity index 55% rename from tests/WirecardCEE/QPay/ModuleTest.php rename to tests/QentaCEE/QPay/ModuleTest.php index a996657..8940d75 100644 --- a/tests/WirecardCEE/QPay/ModuleTest.php +++ b/tests/QentaCEE/QPay/ModuleTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,27 +32,27 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_ModuleTest extends TestCase +class QentaCEE_QPay_ModuleTest extends TestCase { public function testClientConfig() { - $aConfig = WirecardCEE_QPay_Module::getClientConfig(); + $aConfig = QentaCEE_QPay_Module::getClientConfig(); $this->assertIsArray($aConfig); $this->assertArrayHasKey('MODULE_NAME', $aConfig); $this->assertArrayHasKey('FRONTEND_URL', $aConfig); $this->assertArrayHasKey('TOOLKIT_URL', $aConfig); $this->assertArrayHasKey('DEPENDENCIES', $aConfig); - $this->assertEquals('WirecardCEE_QPay', $aConfig['MODULE_NAME']); + $this->assertEquals('QentaCEE_QPay', $aConfig['MODULE_NAME']); } public function testUserConfig() { - $aConfig = WirecardCEE_QPay_Module::getConfig(); + $aConfig = QentaCEE_QPay_Module::getConfig(); $this->assertIsArray($aConfig); - $this->assertArrayHasKey('WirecardCEEQPayConfig', $aConfig); - $this->assertArrayHasKey('CUSTOMER_ID', $aConfig['WirecardCEEQPayConfig']); - $this->assertArrayHasKey('SHOP_ID', $aConfig['WirecardCEEQPayConfig']); - $this->assertArrayHasKey('LANGUAGE', $aConfig['WirecardCEEQPayConfig']); - $this->assertArrayHasKey('SECRET', $aConfig['WirecardCEEQPayConfig']); + $this->assertArrayHasKey('QentaCEEQPayConfig', $aConfig); + $this->assertArrayHasKey('CUSTOMER_ID', $aConfig['QentaCEEQPayConfig']); + $this->assertArrayHasKey('SHOP_ID', $aConfig['QentaCEEQPayConfig']); + $this->assertArrayHasKey('LANGUAGE', $aConfig['QentaCEEQPayConfig']); + $this->assertArrayHasKey('SECRET', $aConfig['QentaCEEQPayConfig']); } } diff --git a/tests/WirecardCEE/QMore/PaymentTypeTest.php b/tests/QentaCEE/QPay/PaymentTypeTest.php similarity index 52% rename from tests/WirecardCEE/QMore/PaymentTypeTest.php rename to tests/QentaCEE/QPay/PaymentTypeTest.php index a4f5f82..7104820 100644 --- a/tests/WirecardCEE/QMore/PaymentTypeTest.php +++ b/tests/QentaCEE/QPay/PaymentTypeTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QMore_PaymentType. + * Test class for QentaCEE_QPay_PaymentType. * Generated by PHPUnit on 2011-06-24 at 13:17:01. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_PaymentTypeTest extends TestCase +class QentaCEE_QPay_PaymentTypeTest extends TestCase { /** - * @var WirecardCEE_QMore_PaymentType + * @var QentaCEE_QPay_PaymentType */ protected $object; @@ -63,34 +63,34 @@ protected function tearDown(): void public function testHasFinancialInstitutions() { - $paymentType = WirecardCEE_QMore_PaymentType::EPS; - $this->assertTrue(WirecardCEE_QMore_PaymentType::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QPay_PaymentType::EPS; + $this->assertTrue(QentaCEE_QPay_PaymentType::hasFinancialInstitutions($paymentType)); } public function testHasNoFinancialInstitutions() { - $paymentType = WirecardCEE_QMore_PaymentType::CCARD; - $this->assertFalse(WirecardCEE_QMore_PaymentType::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QPay_PaymentType::CCARD; + $this->assertFalse(QentaCEE_QPay_PaymentType::hasFinancialInstitutions($paymentType)); } public function testGetIdealFinancialInstitutions() { - $paymentType = WirecardCEE_QMore_PaymentType::IDL; - $this->assertContains('ABN AMRO Bank', WirecardCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); - $this->assertArrayHasKey('ABNAMROBANK', WirecardCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QPay_PaymentType::IDL; + $this->assertContains('ABN AMRO Bank', QentaCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); + $this->assertArrayHasKey('REGIOBANK', QentaCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); } public function testGetEpsFinancialInstitutions() { - $paymentType = WirecardCEE_QMore_PaymentType::EPS; - $this->assertContains('BAWAG P.S.K. AG', WirecardCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); - $this->assertArrayHasKey('ARZ|VB', WirecardCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QPay_PaymentType::EPS; + $this->assertContains('BAWAG P.S.K. AG', QentaCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); + $this->assertArrayHasKey('ARZ|VB', QentaCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); } public function testGetEmptyFinancialInstitutions() { - $paymentType = WirecardCEE_QMore_PaymentType::CCARD; - $this->assertEmpty(WirecardCEE_QMore_PaymentType::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_QPay_PaymentType::CCARD; + $this->assertEmpty(QentaCEE_QPay_PaymentType::getFinancialInstitutions($paymentType)); } } diff --git a/tests/WirecardCEE/QPay/Response/InitiationTest.php b/tests/QentaCEE/QPay/Response/InitiationTest.php similarity index 65% rename from tests/WirecardCEE/QPay/Response/InitiationTest.php rename to tests/QentaCEE/QPay/Response/InitiationTest.php index 2b8ab6a..3764da7 100644 --- a/tests/WirecardCEE/QPay/Response/InitiationTest.php +++ b/tests/QentaCEE/QPay/Response/InitiationTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QPay_Response_Initiation. + * Test class for QentaCEE_QPay_Response_Initiation. * Generated by PHPUnit on 2011-06-24 at 13:26:02. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_InitiationTest extends TestCase +class QentaCEE_QPay_Response_InitiationTest extends TestCase { /** - * @var WirecardCEE_QPay_Response_Initiation + * @var QentaCEE_QPay_Response_Initiation */ protected $object; @@ -52,7 +52,7 @@ protected function setUp(): void { $zendHttpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&redirectUrl=http://www.example.com&su=blub'); - $this->object = new WirecardCEE_QPay_Response_Initiation($zendHttpResponse); + $this->object = new QentaCEE_QPay_Response_Initiation($zendHttpResponse); } /** @@ -66,7 +66,7 @@ protected function tearDown(): void public function testGetStatus() { - $this->assertEquals(WirecardCEE_QPay_Response_Initiation::STATE_SUCCESS, $this->object->getStatus()); + $this->assertEquals(QentaCEE_QPay_Response_Initiation::STATE_SUCCESS, $this->object->getStatus()); } public function testGetRedirectUrl() @@ -77,14 +77,14 @@ public function testGetRedirectUrl() public function testGetStatusFailed() { $this->object = $this->_fail200Response(); - $this->assertEquals(WirecardCEE_QPay_Response_Initiation::STATE_FAILURE, $this->object->getStatus()); + $this->assertEquals(QentaCEE_QPay_Response_Initiation::STATE_FAILURE, $this->object->getStatus()); } protected function _fail200Response() { $zendHttpResponse = new \GuzzleHttp\Psr7\Response(200, Array(), 'pre=bla&su=blub'); - return new WirecardCEE_QPay_Response_Initiation($zendHttpResponse); + return new QentaCEE_QPay_Response_Initiation($zendHttpResponse); } } diff --git a/tests/WirecardCEE/QPay/Response/ResponseAbstractTest.php b/tests/QentaCEE/QPay/Response/ResponseAbstractTest.php similarity index 61% rename from tests/WirecardCEE/QPay/Response/ResponseAbstractTest.php rename to tests/QentaCEE/QPay/Response/ResponseAbstractTest.php index 5c141d6..ca63293 100644 --- a/tests/WirecardCEE/QPay/Response/ResponseAbstractTest.php +++ b/tests/QentaCEE/QPay/Response/ResponseAbstractTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class FakeResponse extends WirecardCEE_QPay_Response_ResponseAbstract +class FakeResponse extends QentaCEE_QPay_Response_ResponseAbstract { public function getStatus() { @@ -40,20 +40,20 @@ public function getStatus() } } -class WirecardCEE_QPay_Response_ResponseAbstractTest extends TestCase +class QentaCEE_QPay_Response_ResponseAbstractTest extends TestCase { protected $object; public function setUp(): void { - $response = WirecardCEE_Stdlib_SerialApi::decode("message=Amount+is+missing.&consumerMessage=Amount+is+missing."); + $response = QentaCEE_Stdlib_SerialApi::decode("message=Amount+is+missing.&consumerMessage=Amount+is+missing."); $this->object = new FakeResponse($response); } public function testError() { $error = $this->object->getError(); - $this->assertInstanceOf('WirecardCEE_QPay_Error', $error); + $this->assertInstanceOf('QentaCEE_QPay_Error', $error); $this->assertEquals("Amount is missing.", $error->getConsumerMessage()); } } \ No newline at end of file diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/ApproveReversalTest.php b/tests/QentaCEE/QPay/Response/Toolkit/ApproveReversalTest.php similarity index 75% rename from tests/WirecardCEE/QPay/Response/Toolkit/ApproveReversalTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/ApproveReversalTest.php index db9712f..fc4d2a8 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/ApproveReversalTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/ApproveReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,15 +31,15 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_ApproveReversalTest test case. + * QentaCEE_QPay_Response_Toolkit_ApproveReversalTest test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_ApproveReversalTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_ApproveReversalTest extends TestCase { /** * - * @var WirecardCEE_QPay_Response_Toolkit_ApproveReversal + * @var QentaCEE_QPay_Response_Toolkit_ApproveReversal */ protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Response_Toolkit_ApproveReversalTest extends TestCase /** * - * @var WirecardCEE_QPay_Response_Toolkit_Deposit + * @var QentaCEE_QPay_Response_Toolkit_Deposit */ private $object; @@ -66,7 +66,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/DepositReversalTest.php b/tests/QentaCEE/QPay/Response/Toolkit/DepositReversalTest.php similarity index 75% rename from tests/WirecardCEE/QPay/Response/Toolkit/DepositReversalTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/DepositReversalTest.php index 00efa6c..e45aa73 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/DepositReversalTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/DepositReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,15 +31,15 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_DepositReversalTest test case. + * QentaCEE_QPay_Response_Toolkit_DepositReversalTest test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_DepositReversalTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_DepositReversalTest extends TestCase { /** * - * @var WirecardCEE_QPay_Response_Toolkit_DepositReversal + * @var QentaCEE_QPay_Response_Toolkit_DepositReversal */ protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -51,7 +51,7 @@ class WirecardCEE_QPay_Response_Toolkit_DepositReversalTest extends TestCase /** * - * @var WirecardCEE_QPay_Response_Toolkit_Deposit + * @var QentaCEE_QPay_Response_Toolkit_Deposit */ private $object; @@ -67,7 +67,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/DepositTest.php b/tests/QentaCEE/QPay/Response/Toolkit/DepositTest.php similarity index 77% rename from tests/WirecardCEE/QPay/Response/Toolkit/DepositTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/DepositTest.php index cf4dd4f..f93de2b 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/DepositTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/DepositTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,15 +31,15 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_DepositTest test case. + * QentaCEE_QPay_Response_Toolkit_DepositTest test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_DepositTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_DepositTest extends TestCase { /** * - * @var WirecardCEE_QPay_Response_Toolkit_Deposit + * @var QentaCEE_QPay_Response_Toolkit_Deposit */ protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Response_Toolkit_DepositTest extends TestCase /** * - * @var WirecardCEE_QPay_Response_Toolkit_Deposit + * @var QentaCEE_QPay_Response_Toolkit_Deposit */ private $object; @@ -61,7 +61,7 @@ protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QPay_ToolkitClient(Array( + $this->object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -125,11 +125,11 @@ protected function tearDown(): void /** * Creates a valid shopping basket. * - * @return WirecardCEE_Stdlib_Basket + * @return QentaCEE_Stdlib_Basket */ private function getValidBasket() { - $basketItem = new WirecardCEE_Stdlib_Basket_Item('WirecardCEETestItem'); + $basketItem = new QentaCEE_Stdlib_Basket_Item('QentaCEETestItem'); $basketItem->setUnitGrossAmount(10) ->setUnitNetAmount(8) ->setUnitTaxAmount(2) @@ -138,7 +138,7 @@ private function getValidBasket() ->setName('unittest name') ->setImageUrl('http://example.com/picture.png'); - $basket = new WirecardCEE_Stdlib_Basket(); + $basket = new QentaCEE_Stdlib_Basket(); $basket->addItem($basketItem); return $basket; diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php b/tests/QentaCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php similarity index 75% rename from tests/WirecardCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php index a99f4f2..ccb4f00 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/GetOrderDetailsTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_GetOrderDetailsTest test case. + * QentaCEE_QPay_Response_Toolkit_GetOrderDetailsTest test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_GetOrderDetailsTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_GetOrderDetailsTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -56,7 +56,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, @@ -80,7 +80,7 @@ public function testGetErrors() public function testGetOrder() { $order = $this->object->getOrder(); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_Order', $order); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_Order', $order); } /** diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/CreditTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/CreditTest.php similarity index 82% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/CreditTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/CreditTest.php index 9f5f16d..bce4e51 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/CreditTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/CreditTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QPay_Response_Toolkit_Order_CreditTest. + * Test class for QentaCEE_QPay_Response_Toolkit_Order_CreditTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_CreditTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_CreditTest extends TestCase { /** - * @var WirecardCEE_QPay_Response_Toolkit_GetOrderDetails + * @var QentaCEE_QPay_Response_Toolkit_GetOrderDetails */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -63,7 +63,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/IteratorTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/IteratorTest.php similarity index 70% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/IteratorTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/IteratorTest.php index afac37d..d3628a4 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/IteratorTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/IteratorTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,27 +32,27 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject extends WirecardCEE_QPay_Response_Toolkit_Order_OrderIterator +class QentaCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject extends QentaCEE_QPay_Response_Toolkit_Order_OrderIterator { } /** - * Test class for WirecardCEE_QPay_Response_Toolkit_Order_IteratorTest. + * Test class for QentaCEE_QPay_Response_Toolkit_Order_IteratorTest. * Generated by PHPUnit on 2011-06-24 at 13:26:18. */ -class WirecardCEE_QPay_Response_Toolkit_Order_IteratorTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_IteratorTest extends TestCase { /** - * @var WirecardCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject + * @var QentaCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject */ protected $object; public function setUp(): void { $data = Array('a', 'b', 'c', 'd'); - $this->object = new WirecardCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject($data); + $this->object = new QentaCEE_QPay_Response_Toolkit_Order_OrderIteratorTestObject($data); } public function testCurrent() diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php similarity index 76% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php index f416110..f1681a4 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/IdealTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,17 +31,17 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Response_Toolkit_Order_Payment_Ideal. + * Test class for QentaCEE_Client_QPay_Response_Toolkit_Order_Payment_Ideal. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_IdealTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_Payment_IdealTest extends TestCase { /** * - * @var WirecardCEE_QPay_Response_Toolkit_Order_Payment_Ideal + * @var QentaCEE_QPay_Response_Toolkit_Order_Payment_Ideal */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php similarity index 83% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php index 0fd5836..323dc2d 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/PaypalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,17 +31,17 @@ */ /** - * Test class for WirecardCEE_QPay_Response_Toolkit_Order_Payment_PaypalTest. + * Test class for QentaCEE_QPay_Response_Toolkit_Order_Payment_PaypalTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_PaypalTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_Payment_PaypalTest extends TestCase { /** * - * @var WirecardCEE_QPay_Response_Toolkit_Order_Payment_Paypal + * @var QentaCEE_QPay_Response_Toolkit_Order_Payment_Paypal */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php similarity index 79% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php index d95f569..e2992e9 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/Payment/SofortueberweisungTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung. + * Test class for QentaCEE_Client_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_Payment_SofortueberweisungTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_Payment_SofortueberweisungTest extends TestCase { /** - * @var WirecardCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung + * @var QentaCEE_QPay_Response_Toolkit_Order_Payment_Sofortueberweisung */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -64,7 +64,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/Order/PaymentTest.php b/tests/QentaCEE/QPay/Response/Toolkit/Order/PaymentTest.php similarity index 83% rename from tests/WirecardCEE/QPay/Response/Toolkit/Order/PaymentTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/Order/PaymentTest.php index 9ae3101..700f79b 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/Order/PaymentTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/Order/PaymentTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_QPay_Response_Toolkit_Order_PaymentTest. + * Test class for QentaCEE_QPay_Response_Toolkit_Order_PaymentTest. * Generated by PHPUnit on 2011-06-24 at 13:26:16. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_Order_PaymentTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_Order_PaymentTest extends TestCase { /** - * @var WirecardCEE_QPay_Response_Toolkit_Order_Payment + * @var QentaCEE_QPay_Response_Toolkit_Order_Payment */ protected $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -62,7 +62,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/OrderTest.php b/tests/QentaCEE/QPay/Response/Toolkit/OrderTest.php similarity index 85% rename from tests/WirecardCEE/QPay/Response/Toolkit/OrderTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/OrderTest.php index ea306c7..0f0e46e 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/OrderTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/OrderTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_GetOrderDetails test case. + * QentaCEE_QPay_Response_Toolkit_GetOrderDetails test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_OrderTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_OrderTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -45,7 +45,7 @@ class WirecardCEE_QPay_Response_Toolkit_OrderTest extends TestCase protected $_orderNumber = 5472113; /** - * @var WirecardCEE_QPay_Response_Toolkit_Order + * @var QentaCEE_QPay_Response_Toolkit_Order */ private $object; @@ -61,7 +61,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/OrderTest1.php b/tests/QentaCEE/QPay/Response/Toolkit/OrderTest1.php similarity index 85% rename from tests/WirecardCEE/QPay/Response/Toolkit/OrderTest1.php rename to tests/QentaCEE/QPay/Response/Toolkit/OrderTest1.php index b7bd936..97f46d4 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/OrderTest1.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/OrderTest1.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,11 +31,11 @@ */ /** - * WirecardCEE_QPay_Response_Toolkit_OrderTest1 test case. + * QentaCEE_QPay_Response_Toolkit_OrderTest1 test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_OrderTest1 extends TestCase +class QentaCEE_QPay_Response_Toolkit_OrderTest1 extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -45,7 +45,7 @@ class WirecardCEE_QPay_Response_Toolkit_OrderTest1 extends TestCase protected $_orderNumber = 1453243; /** - * @var WirecardCEE_QPay_Response_Toolkit_Order + * @var QentaCEE_QPay_Response_Toolkit_Order */ private $object; @@ -61,7 +61,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/RecurPaymentTest.php b/tests/QentaCEE/QPay/Response/Toolkit/RecurPaymentTest.php similarity index 80% rename from tests/WirecardCEE/QPay/Response/Toolkit/RecurPaymentTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/RecurPaymentTest.php index 3e9c505..df704b3 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/RecurPaymentTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/RecurPaymentTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -35,7 +35,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_RecurPaymentTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_RecurPaymentTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -50,7 +50,7 @@ class WirecardCEE_QPay_Response_Toolkit_RecurPaymentTest extends TestCase protected $_orderNumber = ''; /** - * @var WirecardCEE_QPay_Response_Toolkit_RecurPayment + * @var QentaCEE_QPay_Response_Toolkit_RecurPayment */ private $object; @@ -65,7 +65,7 @@ protected function setUp(): void $secret = $this->_secret; $language = $this->_language; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/RefundReversalTest.php b/tests/QentaCEE/QPay/Response/Toolkit/RefundReversalTest.php similarity index 78% rename from tests/WirecardCEE/QPay/Response/Toolkit/RefundReversalTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/RefundReversalTest.php index 9395351..cab7142 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/RefundReversalTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/RefundReversalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -35,7 +35,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_RefundReversalTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_RefundReversalTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -46,7 +46,7 @@ class WirecardCEE_QPay_Response_Toolkit_RefundReversalTest extends TestCase protected $_creditNumber = 321312; /** - * @var WirecardCEE_QPay_Response_Toolkit_RefundReversal + * @var QentaCEE_QPay_Response_Toolkit_RefundReversal */ private $object; @@ -62,7 +62,7 @@ protected function setUp(): void $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; - $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(Array( + $oToolkitClient = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, diff --git a/tests/WirecardCEE/QPay/Response/Toolkit/RefundTest.php b/tests/QentaCEE/QPay/Response/Toolkit/RefundTest.php similarity index 80% rename from tests/WirecardCEE/QPay/Response/Toolkit/RefundTest.php rename to tests/QentaCEE/QPay/Response/Toolkit/RefundTest.php index 4c071b0..9331846 100644 --- a/tests/WirecardCEE/QPay/Response/Toolkit/RefundTest.php +++ b/tests/QentaCEE/QPay/Response/Toolkit/RefundTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -35,7 +35,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Response_Toolkit_RefundTest extends TestCase +class QentaCEE_QPay_Response_Toolkit_RefundTest extends TestCase { protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; protected $_customerId = 'D200001'; @@ -47,7 +47,7 @@ class WirecardCEE_QPay_Response_Toolkit_RefundTest extends TestCase protected $_currency = 'USD'; /** - * @var WirecardCEE_QPay_Response_Toolkit_Refund + * @var QentaCEE_QPay_Response_Toolkit_Refund */ private $object; @@ -58,7 +58,7 @@ protected function setUp(): void { parent::setUp(); - $this->object = new WirecardCEE_QPay_ToolkitClient(Array( + $this->object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -126,11 +126,11 @@ protected function tearDown(): void /** * Creates a valid shopping basket. * - * @return WirecardCEE_Stdlib_Basket + * @return QentaCEE_Stdlib_Basket */ private function getValidBasket() { - $basketItem = new WirecardCEE_Stdlib_Basket_Item('WirecardCEETestItem'); + $basketItem = new QentaCEE_Stdlib_Basket_Item('QentaCEETestItem'); $basketItem->setUnitGrossAmount(10) ->setUnitNetAmount(8) ->setUnitTaxAmount(2) @@ -139,7 +139,7 @@ private function getValidBasket() ->setName('unittest name') ->setImageUrl('http://example.com/picture.png'); - $basket = new WirecardCEE_Stdlib_Basket(); + $basket = new QentaCEE_Stdlib_Basket(); $basket->addItem($basketItem); return $basket; diff --git a/tests/WirecardCEE/QPay/Return/CancelTest.php b/tests/QentaCEE/QPay/Return/CancelTest.php similarity index 71% rename from tests/WirecardCEE/QPay/Return/CancelTest.php rename to tests/QentaCEE/QPay/Return/CancelTest.php index 7895a06..956fbcf 100644 --- a/tests/WirecardCEE/QPay/Return/CancelTest.php +++ b/tests/QentaCEE/QPay/Return/CancelTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Cancel. + * Test class for QentaCEE_Client_QPay_Return_Cancel. * Generated by PHPUnit on 2011-06-24 at 13:25:58. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_CancelTest extends TestCase +class QentaCEE_QPay_Return_CancelTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Cancel + * @var QentaCEE_QPay_Return_Cancel */ protected $object; protected $_returnData = array('paymentState' => 'CANCEL'); @@ -51,7 +51,7 @@ class WirecardCEE_QPay_Return_CancelTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Cancel($this->_returnData); + $this->object = new QentaCEE_QPay_Return_Cancel($this->_returnData); } /** diff --git a/tests/WirecardCEE/QPay/Return/FailureTest.php b/tests/QentaCEE/QPay/Return/FailureTest.php similarity index 71% rename from tests/WirecardCEE/QPay/Return/FailureTest.php rename to tests/QentaCEE/QPay/Return/FailureTest.php index 0b2bbc3..7af77b6 100644 --- a/tests/WirecardCEE/QPay/Return/FailureTest.php +++ b/tests/QentaCEE/QPay/Return/FailureTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,11 +32,11 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_FailureTest extends TestCase +class QentaCEE_QPay_Return_FailureTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Failure + * @var QentaCEE_QPay_Return_Failure */ protected $object; @@ -53,7 +53,7 @@ class WirecardCEE_QPay_Return_FailureTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Failure($this->_returnData); + $this->object = new QentaCEE_QPay_Return_Failure($this->_returnData); } public function testValidate() diff --git a/tests/WirecardCEE/QPay/Return/PendingTest.php b/tests/QentaCEE/QPay/Return/PendingTest.php similarity index 78% rename from tests/WirecardCEE/QPay/Return/PendingTest.php rename to tests/QentaCEE/QPay/Return/PendingTest.php index ff4900e..6688376 100644 --- a/tests/WirecardCEE/QPay/Return/PendingTest.php +++ b/tests/QentaCEE/QPay/Return/PendingTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Cancel. + * Test class for QentaCEE_Client_QPay_Return_Cancel. * Generated by PHPUnit on 2011-06-24 at 13:25:58. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_PendingTest extends TestCase +class QentaCEE_QPay_Return_PendingTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Pending + * @var QentaCEE_QPay_Return_Pending */ protected $object; @@ -68,7 +68,7 @@ class WirecardCEE_QPay_Return_PendingTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Pending($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QPay_Return_Pending($this->_returnData, $this->_secret); } public function testPaymentState() diff --git a/tests/WirecardCEE/QPay/Return/ReturnAbstractTest.php b/tests/QentaCEE/QPay/Return/ReturnAbstractTest.php similarity index 72% rename from tests/WirecardCEE/QPay/Return/ReturnAbstractTest.php rename to tests/QentaCEE/QPay/Return/ReturnAbstractTest.php index b182d34..cffb5cc 100644 --- a/tests/WirecardCEE/QPay/Return/ReturnAbstractTest.php +++ b/tests/QentaCEE/QPay/Return/ReturnAbstractTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_ReturnAbstractTestObject extends WirecardCEE_Stdlib_Return_ReturnAbstract +class QentaCEE_QPay_Return_ReturnAbstractTestObject extends QentaCEE_Stdlib_Return_ReturnAbstract { public function validate() { @@ -41,13 +41,13 @@ public function validate() } /** - * Test class for WirecardCEE_Client_QPay_Return_Abstract. + * Test class for QentaCEE_Client_QPay_Return_Abstract. */ -class WirecardCEE_QPay_Return_ReturnAbstractTest extends TestCase +class QentaCEE_QPay_Return_ReturnAbstractTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_ReturnAbstractTestObject + * @var QentaCEE_QPay_Return_ReturnAbstractTestObject */ protected $object; @@ -61,7 +61,7 @@ class WirecardCEE_QPay_Return_ReturnAbstractTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_ReturnAbstractTestObject($this->_returnData); + $this->object = new QentaCEE_QPay_Return_ReturnAbstractTestObject($this->_returnData); } /** @@ -106,7 +106,7 @@ public function testGetReturnedButUnsetArrayFields() $returnData['responseFingerprintOrder'] = 'TEST'; $returnData['responseFingerprint'] = 'TEST'; - $object = new WirecardCEE_QPay_Return_ReturnAbstractTestObject($returnData); + $object = new QentaCEE_QPay_Return_ReturnAbstractTestObject($returnData); $object->getReturned(); $this->assertFalse(isset( $this->_returnData['responseFingerprintOrder'] )); diff --git a/tests/WirecardCEE/QPay/Return/Success/CreditCardTest.php b/tests/QentaCEE/QPay/Return/Success/CreditCardTest.php similarity index 80% rename from tests/WirecardCEE/QPay/Return/Success/CreditCardTest.php rename to tests/QentaCEE/QPay/Return/Success/CreditCardTest.php index 505a4de..1a0c19b 100644 --- a/tests/WirecardCEE/QPay/Return/Success/CreditCardTest.php +++ b/tests/QentaCEE/QPay/Return/Success/CreditCardTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Success_Creditcard. + * Test class for QentaCEE_Client_QPay_Return_Success_Creditcard. * Generated by PHPUnit on 2011-06-24 at 13:36:02. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_Success_CreditcardTest extends TestCase +class QentaCEE_QPay_Return_Success_CreditcardTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Success_Creditcard + * @var QentaCEE_QPay_Return_Success_Creditcard */ protected $object; @@ -73,7 +73,7 @@ class WirecardCEE_QPay_Return_Success_CreditcardTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Success_CreditCard($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QPay_Return_Success_CreditCard($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QMore/Return/Success/IdealTest.php b/tests/QentaCEE/QPay/Return/Success/IdealTest.php similarity index 80% rename from tests/WirecardCEE/QMore/Return/Success/IdealTest.php rename to tests/QentaCEE/QPay/Return/Success/IdealTest.php index 54aa1cd..b99bafa 100644 --- a/tests/WirecardCEE/QMore/Return/Success/IdealTest.php +++ b/tests/QentaCEE/QPay/Return/Success/IdealTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,18 +31,19 @@ */ /** - * Test class for WirecardCEE_Client_QMore_Return_Success_Ideal. + * Test class for QentaCEE_Client_QPay_Return_Success_Ideal. * Generated by PHPUnit on 2011-06-24 at 13:26:06. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QMore_Return_Success_IdealTest extends TestCase +class QentaCEE_QPay_Return_Success_IdealTest extends TestCase { /** - * @var WirecardCEE_QMore_Return_Success_Ideal + * @var QentaCEE_QPay_Return_Success_Ideal */ protected $object; + protected $_returnData = Array( 'amount' => '1', 'currency' => 'EUR', @@ -70,7 +71,7 @@ class WirecardCEE_QMore_Return_Success_IdealTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QMore_Return_Success_Ideal($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QPay_Return_Success_Ideal($this->_returnData, $this->_secret); } /** @@ -103,4 +104,3 @@ public function testValidate() } } - diff --git a/tests/WirecardCEE/QPay/Return/Success/PaypalTest.php b/tests/QentaCEE/QPay/Return/Success/PaypalTest.php similarity index 85% rename from tests/WirecardCEE/QPay/Return/Success/PaypalTest.php rename to tests/QentaCEE/QPay/Return/Success/PaypalTest.php index f7212d6..8e3edf5 100644 --- a/tests/WirecardCEE/QPay/Return/Success/PaypalTest.php +++ b/tests/QentaCEE/QPay/Return/Success/PaypalTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Success_Paypal. + * Test class for QentaCEE_Client_QPay_Return_Success_Paypal. * Generated by PHPUnit on 2011-06-24 at 13:26:05. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_Success_PaypalTest extends TestCase +class QentaCEE_QPay_Return_Success_PaypalTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Success_PayPal + * @var QentaCEE_QPay_Return_Success_PayPal */ protected $object; @@ -80,7 +80,7 @@ class WirecardCEE_QPay_Return_Success_PaypalTest extends TestCase protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Success_PayPal($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QPay_Return_Success_PayPal($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QPay/Return/Success/SofortueberweisungTest.php b/tests/QentaCEE/QPay/Return/Success/SofortueberweisungTest.php similarity index 82% rename from tests/WirecardCEE/QPay/Return/Success/SofortueberweisungTest.php rename to tests/QentaCEE/QPay/Return/Success/SofortueberweisungTest.php index 070bd52..550c602 100644 --- a/tests/WirecardCEE/QPay/Return/Success/SofortueberweisungTest.php +++ b/tests/QentaCEE/QPay/Return/Success/SofortueberweisungTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Success_Sofortueberweisung. + * Test class for QentaCEE_Client_QPay_Return_Success_Sofortueberweisung. * Generated by PHPUnit on 2011-06-24 at 13:26:03. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_Success_SofortueberweisungTest extends TestCase +class QentaCEE_QPay_Return_Success_SofortueberweisungTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Success_Sofortueberweisung + * @var QentaCEE_QPay_Return_Success_Sofortueberweisung */ protected $object; @@ -76,7 +76,7 @@ class WirecardCEE_QPay_Return_Success_SofortueberweisungTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_Return_Success_Sofortueberweisung($this->_returnData, $this->_secret); + $this->object = new QentaCEE_QPay_Return_Success_Sofortueberweisung($this->_returnData, $this->_secret); } /** diff --git a/tests/WirecardCEE/QPay/Return/SuccessTest.php b/tests/QentaCEE/QPay/Return/SuccessTest.php similarity index 81% rename from tests/WirecardCEE/QPay/Return/SuccessTest.php rename to tests/QentaCEE/QPay/Return/SuccessTest.php index 6766da0..3a57899 100644 --- a/tests/WirecardCEE/QPay/Return/SuccessTest.php +++ b/tests/QentaCEE/QPay/Return/SuccessTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Return_Cancel. + * Test class for QentaCEE_Client_QPay_Return_Cancel. * Generated by PHPUnit on 2011-06-24 at 13:25:58. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_Return_SuccessTest extends TestCase +class QentaCEE_QPay_Return_SuccessTest extends TestCase { /** - * @var WirecardCEE_QPay_Return_Success + * @var QentaCEE_QPay_Return_Success */ protected $object; protected $_returnData = Array( @@ -67,8 +67,8 @@ class WirecardCEE_QPay_Return_SuccessTest extends TestCase */ protected function setUp(): void { - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); - $this->object = new WirecardCEE_QPay_Return_Success($this->_returnData, $this->_secret); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); + $this->object = new QentaCEE_QPay_Return_Success($this->_returnData, $this->_secret); } /** @@ -137,12 +137,12 @@ public function testValidate() public function testValidateFalse() { - $this -> expectException(WirecardCEE_Stdlib_Exception_UnexpectedValueException::class); - $object = new WirecardCEE_QPay_Return_Success($this->_returnData, ''); + $this -> expectException(QentaCEE_Stdlib_Exception_UnexpectedValueException::class); + $object = new QentaCEE_QPay_Return_Success($this->_returnData, ''); try { $returned = $object->validate(); $this->assertFalse($returned); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { $this->assertContains('Secret is empty', $e->getMessage()); } } @@ -151,11 +151,11 @@ public function testValidateNoFingerprintOrder() { $returnData = $this->_returnData; unset( $returnData['responseFingerprintOrder'] ); - $object = new WirecardCEE_QPay_Return_Success($returnData, $this->_secret); + $object = new QentaCEE_QPay_Return_Success($returnData, $this->_secret); try { $returned = $object->validate(); $this->assertFalse($returned); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { $this->assertContains('Parameter responseFingerprintOrder has not been returned', $e->getMessage()); } } diff --git a/tests/QentaCEE/QPay/ReturnFactoryTest.php b/tests/QentaCEE/QPay/ReturnFactoryTest.php new file mode 100644 index 0000000..b376f6b --- /dev/null +++ b/tests/QentaCEE/QPay/ReturnFactoryTest.php @@ -0,0 +1,213 @@ +object = null; + parent::tearDown(); + } + + /** + * Tests QentaCEE_QPay_ReturnFactory::getInstance() + */ + public function testGetInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertTrue(is_object($oInstance)); + } + + public function testSuccessInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Success_CreditCard', $oInstance); + } + + public function testSuccessPaypalInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'Paypal' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Success_PayPal', $oInstance); + } + + public function testSuccessSofortueberweisungInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'SOFORTUEBERWEISUNG' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Success_Sofortueberweisung', $oInstance); + } + + public function testSuccessIdealInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => 'IDL' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Success_Ideal', $oInstance); + } + + public function testSuccessDefaultInstance() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS, + 'paymentType' => '' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Success', $oInstance); + } + + public function testInstanceWIthNoPaymentType() + { + $this -> expectException(QentaCEE_QPay_Exception_InvalidResponseException::class); + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_SUCCESS + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testFailureState() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_FAILURE + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Failure', $oInstance); + } + + public function testCancelState() + { + $return = Array( + 'paymentState' => QentaCEE_QPay_ReturnFactory::STATE_CANCEL, + 'paymentType' => 'CCARD' + ); + + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + $this->assertInstanceOf('QentaCEE_QPay_Return_Cancel', $oInstance); + } + + public function testNoState() + { + $this -> expectException(QentaCEE_QPay_Exception_InvalidResponseException::class); + $return = Array( + 'paymentState' => 999 + ); + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testInstanceWithEmptyPaymentStateInArray() + { + $this -> expectException(QentaCEE_QPay_Exception_InvalidResponseException::class); + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance(Array(), $this->_secret); + } + + public function testWhenReturnIsNotArray() + { + $this -> expectException(QentaCEE_QPay_Exception_InvalidResponseException::class); + $return = ""; + $oInstance = QentaCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); + } + + public function testGenerateConfirmResponseNOKString() + { + $response = QentaCEE_QPay_ReturnFactory::generateConfirmResponseString('nok test'); + $this->assertEquals('', + $response); + } + + public function testGenerateConfirmResponseHtmlCommentNOKString() + { + $response = QentaCEE_QPay_ReturnFactory::generateConfirmResponseString('nok test', true); + $this->assertEquals('', + $response); + } + + public function testGenerateConfirmResponseOKString() + { + $response = QentaCEE_QPay_ReturnFactory::generateConfirmResponseString(); + $this->assertEquals('', $response); + } + + public function testGenerateConfirmResponseHtmlCommentOKString() + { + $response = QentaCEE_QPay_ReturnFactory::generateConfirmResponseString('', true); + $this->assertEquals('', $response); + } +} + diff --git a/tests/WirecardCEE/QPay/ToolkitClientTest.php b/tests/QentaCEE/QPay/ToolkitClientTest.php similarity index 71% rename from tests/WirecardCEE/QPay/ToolkitClientTest.php rename to tests/QentaCEE/QPay/ToolkitClientTest.php index 996f1e0..fefc2f7 100644 --- a/tests/WirecardCEE/QPay/ToolkitClientTest.php +++ b/tests/QentaCEE/QPay/ToolkitClientTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * WirecardCEE_QPay_ToolkitClient test case. + * QentaCEE_QPay_ToolkitClient test case. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_QPay_ToolkitClientTest extends TestCase +class QentaCEE_QPay_ToolkitClientTest extends TestCase { /** * - * @var WirecardCEE_QPay_ToolkitClient + * @var QentaCEE_QPay_ToolkitClient */ private $object; protected $_secret = 'B8AKTPWBRMNBV455FG6M2DANE99WU2'; @@ -60,7 +60,7 @@ class WirecardCEE_QPay_ToolkitClientTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_QPay_ToolkitClient(Array( + $this->object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -79,13 +79,13 @@ protected function tearDown(): void } /** - * Tests WirecardCEE_QPay_ToolkitClient->refund() + * Tests QentaCEE_QPay_ToolkitClient->refund() */ public function testRefund() { $oResult = $this->object->refund($this->_orderNumber, $this->_amount, $this->_currency); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_Refund', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_Refund', $oResult); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); @@ -94,7 +94,7 @@ public function testRefund() } /** - * Tests WirecardCEE_QPay_ToolkitClient->refundReversal() + * Tests QentaCEE_QPay_ToolkitClient->refundReversal() */ public function testRefundReversal() { @@ -102,7 +102,7 @@ public function testRefundReversal() $oResult = $this->object->refundReversal($this->_orderNumber, $iCreditNumber); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_RefundReversal', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_RefundReversal', $oResult); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); @@ -110,11 +110,11 @@ public function testRefundReversal() } /** - * Tests WirecardCEE_QPay_ToolkitClient->recurPayment() + * Tests QentaCEE_QPay_ToolkitClient->recurPayment() */ public function testRecurPayment() { - $object = new WirecardCEE_QPay_ToolkitClient(Array( + $object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -124,14 +124,14 @@ public function testRecurPayment() $oResult = $object->recurPayment($this->_sourceOrderNumber, $this->_amount, $this->_currency, $this->_orderDescription, $this->_orderNumber, $this->_depositFlag); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_RecurPayment', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_RecurPayment', $oResult); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); } /** - * Tests WirecardCEE_QPay_ToolkitClient->getOrderDetails() + * Tests QentaCEE_QPay_ToolkitClient->getOrderDetails() */ public function testGetOrderDetails() { @@ -141,33 +141,33 @@ public function testGetOrderDetails() $sPaymentType = $order->getPaymentType(); $this->assertEquals('VPG', $sPaymentType); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_Order', $order); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_Order', $order); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); } /** - * Tests WirecardCEE_QPay_ToolkitClient->approveReversal() + * Tests QentaCEE_QPay_ToolkitClient->approveReversal() */ public function testApproveReversal() { $oResult = $this->object->approveReversal($this->_orderNumber); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_ApproveReversal', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_ApproveReversal', $oResult); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); } /** - * Tests WirecardCEE_QPay_ToolkitClient->deposit() + * Tests QentaCEE_QPay_ToolkitClient->deposit() */ public function testDeposit() { $oResult = $this->object->deposit($this->_orderNumber, $this->_amount, $this->_currency); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_Deposit', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_Deposit', $oResult); $this->assertEquals($this->_orderNumber, $oResult->getPaymentNumber()); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); @@ -175,14 +175,14 @@ public function testDeposit() } /** - * Tests WirecardCEE_QPay_ToolkitClient->depositReversal() + * Tests QentaCEE_QPay_ToolkitClient->depositReversal() */ public function testDepositReversal() { $_paymentNumber = 123445; $oResult = $this->object->depositReversal($this->_orderNumber, $_paymentNumber); - $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_DepositReversal', $oResult); + $this->assertInstanceOf('QentaCEE_QPay_Response_Toolkit_DepositReversal', $oResult); $this->assertEquals($oResult->getStatus(), 0); $this->assertFalse($oResult->hasFailed()); $this->assertFalse($oResult->getError()); @@ -190,8 +190,8 @@ public function testDepositReversal() public function testCustomerIdIsEmpty() { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $object = new WirecardCEE_QPay_ToolkitClient(Array( + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => '', 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -202,8 +202,8 @@ public function testCustomerIdIsEmpty() public function testLanguageIsEmpty() { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $object = new WirecardCEE_QPay_ToolkitClient(Array( + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -214,8 +214,8 @@ public function testLanguageIsEmpty() public function testSecretIsEmpty() { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $object = new WirecardCEE_QPay_ToolkitClient(Array( + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => '', @@ -226,8 +226,8 @@ public function testSecretIsEmpty() public function testToolkitPasswordIsEmpty() { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidArgumentException::class); - $object = new WirecardCEE_QPay_ToolkitClient(Array( + $this -> expectException(QentaCEE_QPay_Exception_InvalidArgumentException::class); + $object = new QentaCEE_QPay_ToolkitClient(Array( 'CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, @@ -238,9 +238,9 @@ public function testToolkitPasswordIsEmpty() public function testConfigFallback() { - $object = new WirecardCEE_QPay_ToolkitClient(); + $object = new QentaCEE_QPay_ToolkitClient(); $oUserConfig = $object->getUserConfig(); - $this->assertInstanceOf('WirecardCEE_Stdlib_Config', $oUserConfig); + $this->assertInstanceOf('QentaCEE_Stdlib_Config', $oUserConfig); $this->assertEquals($oUserConfig->CUSTOMER_ID, 'D200001'); } diff --git a/tests/WirecardCEE/Stdlib/Basket/ItemTest.php b/tests/QentaCEE/Stdlib/Basket/ItemTest.php similarity index 73% rename from tests/WirecardCEE/Stdlib/Basket/ItemTest.php rename to tests/QentaCEE/Stdlib/Basket/ItemTest.php index 91207cc..f875fb0 100644 --- a/tests/WirecardCEE/Stdlib/Basket/ItemTest.php +++ b/tests/QentaCEE/Stdlib/Basket/ItemTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,14 +32,14 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_Basket_ItemTest extends TestCase +class QentaCEE_Stdlib_Basket_ItemTest extends TestCase { protected $object; public function setUp(): void { - $this->object = new WirecardCEE_Stdlib_Basket_Item('WirecardCEETestItem'); + $this->object = new QentaCEE_Stdlib_Basket_Item('QentaCEETestItem'); } public function testAllFunctions() @@ -57,7 +57,7 @@ public function testAllFunctions() $this->assertEquals(20.0, $this->object->getUnitTaxRate()); $this->assertEquals('unittest description', $this->object->getDescription()); $this->assertEquals('unittest name', $this->object->getName()); - $this->assertEquals('WirecardCEETestItem', $this->object->getArticleNumber()); + $this->assertEquals('QentaCEETestItem', $this->object->getArticleNumber()); $this->assertEquals('http://example.com/picture.png', $this->object->getImageUrl()); } diff --git a/tests/WirecardCEE/Stdlib/BasketTest.php b/tests/QentaCEE/Stdlib/BasketTest.php similarity index 75% rename from tests/WirecardCEE/Stdlib/BasketTest.php rename to tests/QentaCEE/Stdlib/BasketTest.php index 0dfcb7e..c473827 100644 --- a/tests/WirecardCEE/Stdlib/BasketTest.php +++ b/tests/QentaCEE/Stdlib/BasketTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardBasket extends WirecardCEE_Stdlib_Basket +class QentaBasket extends QentaCEE_Stdlib_Basket { public function getCurrency() @@ -61,17 +61,17 @@ public function increaseQuantity($mArticleNumber, $iQuantity) } } -class WirecardCEE_Stdlib_BasketTest extends TestCase +class QentaCEE_Stdlib_BasketTest extends TestCase { protected $object; public function setUp(): void { - $this->object = new WirecardBasket(); + $this->object = new QentaBasket(); for ($i = 0; $i < 10; $i ++) { - $_item = new WirecardCEE_Stdlib_Basket_Item("WirecardCEE_{$i}"); + $_item = new QentaCEE_Stdlib_Basket_Item("QentaCEE_{$i}"); $_item->setUnitGrossAmount(( $i + 1 ) * 10) ->setUnitNetAmount(( $i + 1 ) * 8) ->setUnitTaxAmount(( $i + 1 ) * 2) @@ -92,16 +92,16 @@ public function testAddNewItem() public function testIncreaseQuantity() { - $oItem = $this->object->getItem('WirecardCEE_0'); + $oItem = $this->object->getItem('QentaCEE_0'); $this->object->addItem($oItem['instance']); - $this->assertEquals(2, $this->object->getItemQuantity('WirecardCEE_0')); + $this->assertEquals(2, $this->object->getItemQuantity('QentaCEE_0')); } public function testGetData() { $array = $this->object->getData(); $this->assertIsArray($array); - $this->assertEquals(count($this->object->getItems()), $array[WirecardCEE_Stdlib_Basket::BASKET_ITEMS]); + $this->assertEquals(count($this->object->getItems()), $array[QentaCEE_Stdlib_Basket::BASKET_ITEMS]); } public function testIncreaseQuantityForException() diff --git a/tests/WirecardCEE/Stdlib/Client/ClientAbstractTest.php b/tests/QentaCEE/Stdlib/Client/ClientAbstractTest.php similarity index 76% rename from tests/WirecardCEE/Stdlib/Client/ClientAbstractTest.php rename to tests/QentaCEE/Stdlib/Client/ClientAbstractTest.php index 6ff40ec..19ec29f 100644 --- a/tests/WirecardCEE/Stdlib/Client/ClientAbstractTest.php +++ b/tests/QentaCEE/Stdlib/Client/ClientAbstractTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class TestClient extends WirecardCEE_Stdlib_Client_ClientAbstract +class TestClient extends QentaCEE_Stdlib_Client_ClientAbstract { public function __construct($aConfig = null) { @@ -60,14 +60,14 @@ public function getHttpClient() } } -class WirecardCEE_Stdlib_Client_ClientAbstractTest extends TestCase +class QentaCEE_Stdlib_Client_ClientAbstractTest extends TestCase { protected $object; public function setUp(): void { - $this->object = new TestClient(WirecardCEE_Stdlib_Module::getClientConfig()); + $this->object = new TestClient(QentaCEE_Stdlib_Module::getClientConfig()); } public function testSetZendHttpClient() @@ -88,7 +88,7 @@ public function testUserAgentString() { $sUserAgent = $this->object->getUserAgentString(); $this->assertStringContainsString(get_class($this->object), $sUserAgent); - $this->assertStringContainsString('WirecardCEE_Stdlib', $sUserAgent); + $this->assertStringContainsString('QentaCEE_Stdlib', $sUserAgent); } public function testGetRequestData() diff --git a/tests/WirecardCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php b/tests/QentaCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php similarity index 63% rename from tests/WirecardCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php rename to tests/QentaCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php index 0b08272..fb4b143 100644 --- a/tests/WirecardCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php +++ b/tests/QentaCEE/Stdlib/Client/Exception/InvalidResponseExceptionTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ /** - * Test class for WirecardCEE_Client_QPay_Exception. + * Test class for QentaCEE_Client_QPay_Exception. * Generated by PHPUnit on 2011-06-24 at 13:25:52. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_Client_Exception_InvalidResponseExceptionTest extends TestCase +class QentaCEE_Stdlib_Client_Exception_InvalidResponseExceptionTest extends TestCase { /** @@ -51,7 +51,7 @@ class WirecardCEE_Stdlib_Client_Exception_InvalidResponseExceptionTest extends T */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException('objectMessage', 666); + $this->object = new QentaCEE_Stdlib_Client_Exception_InvalidResponseException('objectMessage', 666); } /** @@ -66,8 +66,8 @@ protected function tearDown(): void public function testThrowExceptionWithoutData() { try { - throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException(); - } catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) { + throw new QentaCEE_Stdlib_Client_Exception_InvalidResponseException(); + } catch (QentaCEE_Stdlib_Client_Exception_InvalidResponseException $e) { $this->assertEquals('', $e->getMessage()); $this->assertEquals(0, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -77,8 +77,8 @@ public function testThrowExceptionWithoutData() public function testThrowExceptionWithData() { try { - throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException('message', 1234); - } catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) { + throw new QentaCEE_Stdlib_Client_Exception_InvalidResponseException('message', 1234); + } catch (QentaCEE_Stdlib_Client_Exception_InvalidResponseException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -88,8 +88,8 @@ public function testThrowExceptionWithData() public function getThrowExceptionWithPrevious() { try { - throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException('message', 111, $this->object); - } catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) { + throw new QentaCEE_Stdlib_Client_Exception_InvalidResponseException('message', 111, $this->object); + } catch (QentaCEE_Stdlib_Client_Exception_InvalidResponseException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals($this->object, $e->getPrevious()); diff --git a/tests/WirecardCEE/Stdlib/ConsumerData/AddressTest.php b/tests/QentaCEE/Stdlib/ConsumerData/AddressTest.php similarity index 84% rename from tests/WirecardCEE/Stdlib/ConsumerData/AddressTest.php rename to tests/QentaCEE/Stdlib/ConsumerData/AddressTest.php index 2cee462..18f7026 100644 --- a/tests/WirecardCEE/Stdlib/ConsumerData/AddressTest.php +++ b/tests/QentaCEE/Stdlib/ConsumerData/AddressTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_QPay_Request_Initiation_ConsumerData_Address. + * Test class for QentaCEE_Client_QPay_Request_Initiation_ConsumerData_Address. * Generated by PHPUnit on 2011-06-24 at 13:17:12. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_ConsumerData_AddressTest extends TestCase +class QentaCEE_Stdlib_ConsumerData_AddressTest extends TestCase { /** - * @var WirecardCEE_Stdlib_ConsumerData_Address + * @var QentaCEE_Stdlib_ConsumerData_Address */ protected $object; @@ -50,7 +50,7 @@ class WirecardCEE_Stdlib_ConsumerData_AddressTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_SHIPPING); + $this->object = new QentaCEE_Stdlib_ConsumerData_Address(QentaCEE_Stdlib_ConsumerData_Address::TYPE_SHIPPING); } /** diff --git a/tests/WirecardCEE/Stdlib/ConsumerDataTest.php b/tests/QentaCEE/Stdlib/ConsumerDataTest.php similarity index 84% rename from tests/WirecardCEE/Stdlib/ConsumerDataTest.php rename to tests/QentaCEE/Stdlib/ConsumerDataTest.php index 988efe7..4c0bc7b 100644 --- a/tests/WirecardCEE/Stdlib/ConsumerDataTest.php +++ b/tests/QentaCEE/Stdlib/ConsumerDataTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * Test class for WirecardCEE_Stdlib_ConsumerData. + * Test class for QentaCEE_Stdlib_ConsumerData. * Generated by PHPUnit on 2011-06-24 at 13:17:00. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_ConsumerDataTest extends TestCase +class QentaCEE_Stdlib_ConsumerDataTest extends TestCase { /** - * @var WirecardCEE_Stdlib_ConsumerData + * @var QentaCEE_Stdlib_ConsumerData */ protected $object; @@ -51,7 +51,7 @@ class WirecardCEE_Stdlib_ConsumerDataTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_ConsumerData(); + $this->object = new QentaCEE_Stdlib_ConsumerData(); } /** @@ -121,7 +121,7 @@ public function testAddAddressInformation() { $firstname = 'Kein'; $lastname = 'Name'; - $billingAddress = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_BILLING); + $billingAddress = new QentaCEE_Stdlib_ConsumerData_Address(QentaCEE_Stdlib_ConsumerData_Address::TYPE_BILLING); $billingAddress->setFirstname($firstname); $billingAddress->setLastname($lastname); $this->object->addAddressInformation($billingAddress); diff --git a/tests/WirecardCEE/Stdlib/ErrorTest.php b/tests/QentaCEE/Stdlib/ErrorTest.php similarity index 70% rename from tests/WirecardCEE/Stdlib/ErrorTest.php rename to tests/QentaCEE/Stdlib/ErrorTest.php index e48c3f5..50eb773 100644 --- a/tests/WirecardCEE/Stdlib/ErrorTest.php +++ b/tests/QentaCEE/Stdlib/ErrorTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,15 +32,15 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_ErrorTest_Mock extends WirecardCEE_Stdlib_Error +class QentaCEE_Stdlib_ErrorTest_Mock extends QentaCEE_Stdlib_Error { } -class WirecardCEE_Stdlib_ErrorTest extends TestCase +class QentaCEE_Stdlib_ErrorTest extends TestCase { /** - * @var WirecardCEE_Stdlib_ErrorTest_Mock + * @var QentaCEE_Stdlib_ErrorTest_Mock */ protected $object; @@ -50,7 +50,7 @@ class WirecardCEE_Stdlib_ErrorTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_ErrorTest_Mock(); + $this->object = new QentaCEE_Stdlib_ErrorTest_Mock(); $this->object->setMessage('testMessage'); $this->object->setConsumerMessage('testConsumerMessage'); } diff --git a/tests/QentaCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php b/tests/QentaCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php new file mode 100644 index 0000000..b1eeae5 --- /dev/null +++ b/tests/QentaCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php @@ -0,0 +1,99 @@ +object = new QentaCEE_Stdlib_Exception_InvalidArgumentException('objectMessage', 666); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown(): void + { + + } + + public function testThrowExceptionWithoutData() + { + try { + throw new QentaCEE_Stdlib_Exception_InvalidArgumentException(); + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { + $this->assertEquals('', $e->getMessage()); + $this->assertEquals(0, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function testThrowExceptionWithData() + { + try { + throw new QentaCEE_Stdlib_Exception_InvalidArgumentException('message', 1234); + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function getThrowExceptionWithPrevious() + { + try { + throw new QentaCEE_Stdlib_Exception_InvalidArgumentException('message', 111, $this->object); + } catch (QentaCEE_Stdlib_Exception_InvalidArgumentException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals($this->object, $e->getPrevious()); + } + } +} + +?> diff --git a/tests/WirecardCEE/Stdlib/Exception/InvalidFormatExceptionTest.php b/tests/QentaCEE/Stdlib/Exception/InvalidFormatExceptionTest.php similarity index 62% rename from tests/WirecardCEE/Stdlib/Exception/InvalidFormatExceptionTest.php rename to tests/QentaCEE/Stdlib/Exception/InvalidFormatExceptionTest.php index ad373a2..ac9e060 100644 --- a/tests/WirecardCEE/Stdlib/Exception/InvalidFormatExceptionTest.php +++ b/tests/QentaCEE/Stdlib/Exception/InvalidFormatExceptionTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -31,16 +31,16 @@ */ /** - * Test class for WirecardCEE_Client_Stdlib_Exception. + * Test class for QentaCEE_Client_Stdlib_Exception. * Generated by PHPUnit on 2011-06-24 at 13:25:52. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_Exception_InvalidFormatExceptionTest extends TestCase +class QentaCEE_Stdlib_Exception_InvalidFormatExceptionTest extends TestCase { /** - * @var WirecardCEE_Stdlib_Exception_InvalidFormatException + * @var QentaCEE_Stdlib_Exception_InvalidFormatException */ protected $object; @@ -50,7 +50,7 @@ class WirecardCEE_Stdlib_Exception_InvalidFormatExceptionTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_Exception_InvalidFormatException('objectMessage', 666); + $this->object = new QentaCEE_Stdlib_Exception_InvalidFormatException('objectMessage', 666); } /** @@ -65,8 +65,8 @@ protected function tearDown(): void public function testThrowExceptionWithoutData() { try { - throw new WirecardCEE_Stdlib_Exception_InvalidFormatException(); - } catch (WirecardCEE_Stdlib_Exception_InvalidFormatException $e) { + throw new QentaCEE_Stdlib_Exception_InvalidFormatException(); + } catch (QentaCEE_Stdlib_Exception_InvalidFormatException $e) { $this->assertEquals('', $e->getMessage()); $this->assertEquals(0, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -76,8 +76,8 @@ public function testThrowExceptionWithoutData() public function testThrowExceptionWithData() { try { - throw new WirecardCEE_Stdlib_Exception_InvalidFormatException('message', 1234); - } catch (WirecardCEE_Stdlib_Exception_InvalidFormatException $e) { + throw new QentaCEE_Stdlib_Exception_InvalidFormatException('message', 1234); + } catch (QentaCEE_Stdlib_Exception_InvalidFormatException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals('', $e->getPrevious()); @@ -87,8 +87,8 @@ public function testThrowExceptionWithData() public function getThrowExceptionWithPrevious() { try { - throw new WirecardCEE_Stdlib_Exception_InvalidFormatException('message', 111, $this->object); - } catch (WirecardCEE_Stdlib_Exception_InvalidFormatException $e) { + throw new QentaCEE_Stdlib_Exception_InvalidFormatException('message', 111, $this->object); + } catch (QentaCEE_Stdlib_Exception_InvalidFormatException $e) { $this->assertEquals('message', $e->getMessage()); $this->assertEquals(1234, $e->getCode()); $this->assertEquals($this->object, $e->getPrevious()); diff --git a/tests/QentaCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php b/tests/QentaCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php new file mode 100644 index 0000000..c3066fd --- /dev/null +++ b/tests/QentaCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php @@ -0,0 +1,99 @@ +object = new QentaCEE_Stdlib_Exception_UnexpectedValueException('objectMessage', 666); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown(): void + { + + } + + public function testThrowExceptionWithoutData() + { + try { + throw new QentaCEE_Stdlib_Exception_UnexpectedValueException(); + } catch (QentaCEE_Stdlib_Exception_UnexpectedValueException $e) { + $this->assertEquals('', $e->getMessage()); + $this->assertEquals(0, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function testThrowExceptionWithData() + { + try { + throw new QentaCEE_Stdlib_Exception_UnexpectedValueException('message', 1234); + } catch (QentaCEE_Stdlib_Exception_UnexpectedValueException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals('', $e->getPrevious()); + } + } + + public function getThrowExceptionWithPrevious() + { + try { + throw new QentaCEE_Stdlib_Exception_UnexpectedValueException('message', 111, $this->object); + } catch (QentaCEE_Stdlib_Exception_UnexpectedValueException $e) { + $this->assertEquals('message', $e->getMessage()); + $this->assertEquals(1234, $e->getCode()); + $this->assertEquals($this->object, $e->getPrevious()); + } + } +} + +?> diff --git a/tests/WirecardCEE/Stdlib/FingerprintOrderTest.php b/tests/QentaCEE/Stdlib/FingerprintOrderTest.php similarity index 72% rename from tests/WirecardCEE/Stdlib/FingerprintOrderTest.php rename to tests/QentaCEE/Stdlib/FingerprintOrderTest.php index 9aa18df..9974a29 100644 --- a/tests/WirecardCEE/Stdlib/FingerprintOrderTest.php +++ b/tests/QentaCEE/Stdlib/FingerprintOrderTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,12 +32,12 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_FingerprintOrderTest extends TestCase +class QentaCEE_Stdlib_FingerprintOrderTest extends TestCase { /** * - * @var WirecardCEE_Stdlib_FingerprintOrder + * @var QentaCEE_Stdlib_FingerprintOrder */ protected $object; @@ -46,14 +46,14 @@ class WirecardCEE_Stdlib_FingerprintOrderTest extends TestCase */ protected function setUp(): void { - $this->object = new WirecardCEE_Stdlib_FingerprintOrder(); + $this->object = new QentaCEE_Stdlib_FingerprintOrder(); parent::setUp(); } public function testContructorForException() { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidArgumentException::class); - $object = new WirecardCEE_Stdlib_FingerprintOrder(new stdClass()); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidArgumentException::class); + $object = new QentaCEE_Stdlib_FingerprintOrder(new stdClass()); } public function testSetOrderWithString() @@ -73,7 +73,7 @@ public function testSetOrderWithArray() public function testToString() { $sData = "first,second,third"; - $this->object = new WirecardCEE_Stdlib_FingerprintOrder($sData); + $this->object = new QentaCEE_Stdlib_FingerprintOrder($sData); $this->assertEquals($sData, (string) $this->object); } diff --git a/tests/WirecardCEE/Stdlib/FingerprintTest.php b/tests/QentaCEE/Stdlib/FingerprintTest.php similarity index 61% rename from tests/WirecardCEE/Stdlib/FingerprintTest.php rename to tests/QentaCEE/Stdlib/FingerprintTest.php index 68c6307..1a76d0f 100644 --- a/tests/WirecardCEE/Stdlib/FingerprintTest.php +++ b/tests/QentaCEE/Stdlib/FingerprintTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,18 +32,18 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_FingerprintTest extends TestCase +class QentaCEE_Stdlib_FingerprintTest extends TestCase { public function setUp(): void { // set default value - WirecardCEE_Stdlib_Fingerprint::stripSlashes(false); + QentaCEE_Stdlib_Fingerprint::stripSlashes(false); } public function testSetStripSlashes() { - WirecardCEE_Stdlib_Fingerprint::stripSlashes(true); + QentaCEE_Stdlib_Fingerprint::stripSlashes(true); $this->addToAssertionCount(1); } @@ -52,9 +52,9 @@ public function testSetStripSlashes() */ public function testGenerate($values, $fingerprintOrder, $hash) { - WirecardCEE_Stdlib_Fingerprint::setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); - $this->assertEquals($hash, WirecardCEE_Stdlib_Fingerprint::generate($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder))); + QentaCEE_Stdlib_Fingerprint::setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512); + $this->assertEquals($hash, QentaCEE_Stdlib_Fingerprint::generate($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder))); } /** @@ -62,9 +62,9 @@ public function testGenerate($values, $fingerprintOrder, $hash) */ public function testGenerateStripSlashes($values, $fingerprintOrder, $hash) { - WirecardCEE_Stdlib_Fingerprint::stripSlashes(true); - $this->assertEquals($hash, WirecardCEE_Stdlib_Fingerprint::generate($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder))); + QentaCEE_Stdlib_Fingerprint::stripSlashes(true); + $this->assertEquals($hash, QentaCEE_Stdlib_Fingerprint::generate($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder))); } /** @@ -72,12 +72,12 @@ public function testGenerateStripSlashes($values, $fingerprintOrder, $hash) */ public function testGenerateException($values, $fingerprintOrder, $hash) { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidValueException::class); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidValueException::class); $fingerprintOrder[] = 'FailKey'; try { - WirecardCEE_Stdlib_Fingerprint::generate($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder)); - } catch (WirecardCEE_Stdlib_Exception_InvalidValueException $e) { + QentaCEE_Stdlib_Fingerprint::generate($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder)); + } catch (QentaCEE_Stdlib_Exception_InvalidValueException $e) { $this->assertEquals('Value for key FAILKEY not found in values array.', $e->getMessage()); throw $e; } @@ -88,8 +88,8 @@ public function testGenerateException($values, $fingerprintOrder, $hash) */ public function testCompare($values, $fingerprintOrder, $hash) { - $this->assertTrue(WirecardCEE_Stdlib_Fingerprint::compare($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); + $this->assertTrue(QentaCEE_Stdlib_Fingerprint::compare($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); } /** @@ -97,9 +97,9 @@ public function testCompare($values, $fingerprintOrder, $hash) */ public function testCompareStripSlashes($values, $fingerprintOrder, $hash) { - WirecardCEE_Stdlib_Fingerprint::stripSlashes(true); - $this->assertTrue(WirecardCEE_Stdlib_Fingerprint::compare($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); + QentaCEE_Stdlib_Fingerprint::stripSlashes(true); + $this->assertTrue(QentaCEE_Stdlib_Fingerprint::compare($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); } /** @@ -108,8 +108,8 @@ public function testCompareStripSlashes($values, $fingerprintOrder, $hash) public function testFalseCompare($values, $fingerprintOrder, $hash) { $hash = md5($hash); - $this->assertFalse(WirecardCEE_Stdlib_Fingerprint::compare($values, - new WirecardCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); + $this->assertFalse(QentaCEE_Stdlib_Fingerprint::compare($values, + new QentaCEE_Stdlib_FingerprintOrder($fingerprintOrder), $hash)); } public static function fingerprintProvider() @@ -121,7 +121,7 @@ public static function fingerprintProvider() 'key2' => 'value2', 'key3' => 'value3', 'key4' => 'value4', - 'secret' => WirecardCEE_QPay_Module::getConfig()['WirecardCEEQPayConfig']['SECRET'] + 'secret' => QentaCEE_QPay_Module::getConfig()['QentaCEEQPayConfig']['SECRET'] ), 'fingerprintOrder' => Array( 'key1', @@ -138,7 +138,7 @@ public static function fingerprintProvider() 'key2' => '#+ü', 'key3' => '///', 'key4' => 'bla', - 'secret' => WirecardCEE_QPay_Module::getConfig()['WirecardCEEQPayConfig']['SECRET'] + 'secret' => QentaCEE_QPay_Module::getConfig()['QentaCEEQPayConfig']['SECRET'] ), 'fingerprintOrder' => Array( 'key1', diff --git a/tests/WirecardCEE/Stdlib/Module/ModuleAbstractTest.php b/tests/QentaCEE/Stdlib/Module/ModuleAbstractTest.php similarity index 65% rename from tests/WirecardCEE/Stdlib/Module/ModuleAbstractTest.php rename to tests/QentaCEE/Stdlib/Module/ModuleAbstractTest.php index 074dbec..af3d2f5 100644 --- a/tests/WirecardCEE/Stdlib/Module/ModuleAbstractTest.php +++ b/tests/QentaCEE/Stdlib/Module/ModuleAbstractTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class FakeModule extends WirecardCEE_Stdlib_Module_ModuleAbstract +class FakeModule extends QentaCEE_Stdlib_Module_ModuleAbstract { public static function getConfig() { @@ -45,7 +45,7 @@ public static function getClientConfig() } } -class WirecardCEE_Stdlib_Module_ModuleAbstractTest extends TestCase +class QentaCEE_Stdlib_Module_ModuleAbstractTest extends TestCase { public function testConfigs() { @@ -58,8 +58,8 @@ public function testConfigs() $this->assertEquals('userConfig', $aUserConfig[0]); $this->assertEquals('clientConfig', $aClientConfig[0]); - WirecardCEE_Stdlib_Module_ModuleAbstract::getConfig(); - WirecardCEE_Stdlib_Module_ModuleAbstract::getClientConfig(); + QentaCEE_Stdlib_Module_ModuleAbstract::getConfig(); + QentaCEE_Stdlib_Module_ModuleAbstract::getClientConfig(); } } \ No newline at end of file diff --git a/tests/WirecardCEE/Stdlib/ModuleTest.php b/tests/QentaCEE/Stdlib/ModuleTest.php similarity index 61% rename from tests/WirecardCEE/Stdlib/ModuleTest.php rename to tests/QentaCEE/Stdlib/ModuleTest.php index 0136010..304ca1e 100644 --- a/tests/WirecardCEE/Stdlib/ModuleTest.php +++ b/tests/QentaCEE/Stdlib/ModuleTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,13 +32,13 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_ModuleTest extends TestCase +class QentaCEE_Stdlib_ModuleTest extends TestCase { public function testClientConfig() { - $aConfig = WirecardCEE_Stdlib_Module::getClientConfig(); + $aConfig = QentaCEE_Stdlib_Module::getClientConfig(); $this->assertIsArray($aConfig); $this->assertArrayHasKey('MODULE_NAME', $aConfig); - $this->assertEquals('WirecardCEE_Stdlib', $aConfig['MODULE_NAME']); + $this->assertEquals('QentaCEE_Stdlib', $aConfig['MODULE_NAME']); } } diff --git a/tests/WirecardCEE/Stdlib/PaymentTypeAbstractTest.php b/tests/QentaCEE/Stdlib/PaymentTypeAbstractTest.php similarity index 50% rename from tests/WirecardCEE/Stdlib/PaymentTypeAbstractTest.php rename to tests/QentaCEE/Stdlib/PaymentTypeAbstractTest.php index 25dc3b2..f6381b4 100644 --- a/tests/WirecardCEE/Stdlib/PaymentTypeAbstractTest.php +++ b/tests/QentaCEE/Stdlib/PaymentTypeAbstractTest.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,16 +32,16 @@ /** - * Test class for WirecardCEE_Stdlib_PaymentTypeTest. + * Test class for QentaCEE_Stdlib_PaymentTypeTest. * Generated by PHPUnit on 2011-06-24 at 13:17:01. */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_PaymentTypeTest extends TestCase +class QentaCEE_Stdlib_PaymentTypeTest extends TestCase { /** - * @var WirecardCEE_Stdlib_PaymentTypeTest + * @var QentaCEE_Stdlib_PaymentTypeTest */ protected $object; @@ -64,46 +64,46 @@ protected function tearDown(): void public function testHasFinancialInstitutions() { - $paymentType = WirecardCEE_Stdlib_PaymentTypeAbstract::EPS; - $this->assertTrue(WirecardCEE_Stdlib_PaymentTypeAbstract::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_Stdlib_PaymentTypeAbstract::EPS; + $this->assertTrue(QentaCEE_Stdlib_PaymentTypeAbstract::hasFinancialInstitutions($paymentType)); } public function testHasNoFinancialInstitutions() { - $paymentType = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD; - $this->assertFalse(WirecardCEE_Stdlib_PaymentTypeAbstract::hasFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_Stdlib_PaymentTypeAbstract::CCARD; + $this->assertFalse(QentaCEE_Stdlib_PaymentTypeAbstract::hasFinancialInstitutions($paymentType)); } public function testGetIdealFinancialInstitutions() { - $paymentType = WirecardCEE_Stdlib_PaymentTypeAbstract::IDL; + $paymentType = QentaCEE_Stdlib_PaymentTypeAbstract::IDL; $this->assertContains('ABN AMRO Bank', - WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); + QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); $this->assertArrayHasKey('REGIOBANK', - WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); + QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); } public function testGetEpsFinancialInstitutions() { - $paymentType = WirecardCEE_Stdlib_PaymentTypeAbstract::EPS; - $this->assertContains('BAWAG P.S.K. AG', WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_Stdlib_PaymentTypeAbstract::EPS; + $this->assertContains('BAWAG P.S.K. AG', QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); $this->assertArrayHasKey('ARZ|VB', - WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); + QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); } public function testGetEmptyFinancialInstitutions() { - $paymentType = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD; - $this->assertEmpty(WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); + $paymentType = QentaCEE_Stdlib_PaymentTypeAbstract::CCARD; + $this->assertEmpty(QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutions($paymentType)); } public function testgetFinancialInstitutionFullName() { $this->assertEquals('Bank Austria', - WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('BA-CA')); + QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('BA-CA')); $this->assertEquals('ABN AMRO Bank', - WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('ABNAMROBANK')); - $this->assertEquals('', WirecardCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('')); + QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('ABNAMROBANK')); + $this->assertEquals('', QentaCEE_Stdlib_PaymentTypeAbstract::getFinancialInstitutionFullName('')); } } diff --git a/tests/WirecardCEE/Stdlib/SerialApiTest.php b/tests/QentaCEE/Stdlib/SerialApiTest.php similarity index 86% rename from tests/WirecardCEE/Stdlib/SerialApiTest.php rename to tests/QentaCEE/Stdlib/SerialApiTest.php index b00cc8f..3ef7490 100644 --- a/tests/WirecardCEE/Stdlib/SerialApiTest.php +++ b/tests/QentaCEE/Stdlib/SerialApiTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class WirecardCEE_Stdlib_SerialApiTest extends TestCase +class QentaCEE_Stdlib_SerialApiTest extends TestCase { /** @@ -40,7 +40,7 @@ class WirecardCEE_Stdlib_SerialApiTest extends TestCase */ public function testEncodeOneLevel($data, $expected) { - $serializedString = WirecardCEE_Stdlib_SerialApi::encode($data); + $serializedString = QentaCEE_Stdlib_SerialApi::encode($data); $this->assertEquals($expected, $serializedString, 'SerialApi encode failed. Result: ' . $serializedString . ' Expected Value: ' . $expected); } @@ -54,7 +54,7 @@ public function testDecodeOneLevel($expected, $data) $expected[(string) $key] = (string) $value; } - $unserialized = WirecardCEE_Stdlib_SerialApi::decode($data); + $unserialized = QentaCEE_Stdlib_SerialApi::decode($data); $this->assertEquals($expected, $unserialized, 'SerialApi decode failed. Data: ' . $data); } @@ -64,7 +64,7 @@ public function testDecodeOneLevel($expected, $data) public function testEncodeMultiLevel($data, $expected) { - $serializedString = WirecardCEE_Stdlib_SerialApi::encode($data); + $serializedString = QentaCEE_Stdlib_SerialApi::encode($data); $this->assertEquals($expected, $serializedString, 'SerialApi encode failed. Result: ' . $serializedString . ' Expected Value: ' . $expected); } @@ -74,17 +74,17 @@ public function testEncodeMultiLevel($data, $expected) */ public function testDecodeMultiLevel($expected, $data) { - $unserialized = WirecardCEE_Stdlib_SerialApi::decode($data); + $unserialized = QentaCEE_Stdlib_SerialApi::decode($data); $this->assertEquals($expected, $unserialized, 'SerialApi decode failed.'); } public function testInvalidEncodeValue() { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidTypeException::class); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidTypeException::class); try { - WirecardCEE_Stdlib_SerialApi::encode('stringValue'); - } catch (WirecardCEE_Stdlib_Exception_InvalidTypeException $e) { - $this->assertEquals('Invalid type for WirecardCEE_Stdlib_SerialApi::encode. Array must be given.', + QentaCEE_Stdlib_SerialApi::encode('stringValue'); + } catch (QentaCEE_Stdlib_Exception_InvalidTypeException $e) { + $this->assertEquals('Invalid type for QentaCEE_Stdlib_SerialApi::encode. Array must be given.', $e->getMessage()); throw $e; } @@ -92,11 +92,11 @@ public function testInvalidEncodeValue() public function testinvalidDecodeFormat() { - $this -> expectException(WirecardCEE_Stdlib_Exception_InvalidFormatException::class); + $this -> expectException(QentaCEE_Stdlib_Exception_InvalidFormatException::class); try { - WirecardCEE_Stdlib_SerialApi::decode('test=test=test'); - } catch (WirecardCEE_Stdlib_Exception_InvalidFormatException $e) { - $this->assertEquals('Invalid format for WirecardCEE_Stdlib_SerialApi::decode. Expecting key=value pairs', + QentaCEE_Stdlib_SerialApi::decode('test=test=test'); + } catch (QentaCEE_Stdlib_Exception_InvalidFormatException $e) { + $this->assertEquals('Invalid format for QentaCEE_Stdlib_SerialApi::decode. Expecting key=value pairs', $e->getMessage()); throw $e; } diff --git a/tests/WirecardCEE/Stdlib/Validate/FingerprintTest.php b/tests/QentaCEE/Stdlib/Validate/FingerprintTest.php similarity index 71% rename from tests/WirecardCEE/Stdlib/Validate/FingerprintTest.php rename to tests/QentaCEE/Stdlib/Validate/FingerprintTest.php index 4606ea4..010a836 100644 --- a/tests/WirecardCEE/Stdlib/Validate/FingerprintTest.php +++ b/tests/QentaCEE/Stdlib/Validate/FingerprintTest.php @@ -3,8 +3,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -12,15 +12,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -32,7 +32,7 @@ */ use PHPUnit\Framework\TestCase; -class FingeprintTest extends WirecardCEE_Stdlib_Validate_Fingerprint +class FingeprintTest extends QentaCEE_Stdlib_Validate_Fingerprint { public function getFingerprintOrderField() { @@ -61,9 +61,9 @@ public function getMandatoryFieldsArray() } /** - * WirecardCEE_Stdlib_Validate_Fingerprint test case. + * QentaCEE_Stdlib_Validate_Fingerprint test case. */ -class WirecardCEE_Stdlib_Validate_FingerprintTest extends TestCase +class QentaCEE_Stdlib_Validate_FingerprintTest extends TestCase { /** @@ -108,7 +108,7 @@ protected function tearDown(): void } /** - * Tests WirecardCEE_Stdlib_Validate_Fingerprint->setFingerprintOrderField() + * Tests QentaCEE_Stdlib_Validate_Fingerprint->setFingerprintOrderField() */ public function testSetFingerprintOrderField() { @@ -117,7 +117,7 @@ public function testSetFingerprintOrderField() } /** - * Tests WirecardCEE_Stdlib_Validate_Fingerprint->setOrderType() + * Tests QentaCEE_Stdlib_Validate_Fingerprint->setOrderType() */ public function testSetOrderType() { @@ -126,14 +126,14 @@ public function testSetOrderType() } /** - * Tests WirecardCEE_Stdlib_Validate_Fingerprint->setOrder() + * Tests QentaCEE_Stdlib_Validate_Fingerprint->setOrder() */ public function testSetOrder() { $order = 'test1,test2,test3,test4,test5'; $this->object->setOrder($order); $oFingerprintOrder = $this->object->getFingerprintOrder(); - $this->assertInstanceOf('WirecardCEE_Stdlib_FingerprintOrder', $oFingerprintOrder); + $this->assertInstanceOf('QentaCEE_Stdlib_FingerprintOrder', $oFingerprintOrder); $this->assertIsArray($oFingerprintOrder->__toArray()); $this->assertIsString((string) $oFingerprintOrder); $this->assertEquals(5, count($oFingerprintOrder)); @@ -141,23 +141,23 @@ public function testSetOrder() } /** - * Tests WirecardCEE_Stdlib_Validate_Fingerprint->setHashAlgorithm() + * Tests QentaCEE_Stdlib_Validate_Fingerprint->setHashAlgorithm() */ public function testSetHashAlgorithm() { - $this->object->setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); - $this->assertEquals(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5, $this->object->getHashAlgorithm()); + $this->object->setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); + $this->assertEquals(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5, $this->object->getHashAlgorithm()); } /** - * Tests WirecardCEE_Stdlib_Validate_Fingerprint->isValid() + * Tests QentaCEE_Stdlib_Validate_Fingerprint->isValid() */ public function testIsValid() { - $this->object->setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); + $this->object->setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); $this->object->setSecret($this->_secret); - $this->object->setOrderType(WirecardCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); + $this->object->setOrderType(QentaCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); $this->object->setFingerprintOrderField('responseFingerprintOrder'); $this->assertTrue($this->object->isValid($this->_returnData['responseFingerprint'], $this->_returnData)); } @@ -180,34 +180,34 @@ public function testConstructWithZendConfigObject() $aConfig = Array( 'fingerprintOrder' => 'testField1,testField2,testField3', 'fingerprintOrderField' => 'fingerprintOrder', - 'hashAlgorithm' => WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5, + 'hashAlgorithm' => QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5, 'orderType' => 'dynamic', 'secret' => $this->_secret, ); - $oConfig = new WirecardCEE_Stdlib_Config($aConfig); + $oConfig = new QentaCEE_Stdlib_Config($aConfig); $this->object = new FingeprintTest($oConfig); $oFingerprintOrder = $this->object->getFingerprintOrder(); - $this->assertInstanceOf('WirecardCEE_Stdlib_FingerprintOrder', $oFingerprintOrder); + $this->assertInstanceOf('QentaCEE_Stdlib_FingerprintOrder', $oFingerprintOrder); $this->assertEquals(3, count($oFingerprintOrder)); - $this->assertEquals($this->object->getHashAlgorithm(), WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); + $this->assertEquals($this->object->getHashAlgorithm(), QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_MD5); } public function testIsValidWithWrongHashAlgorithm() { - $this -> expectException(WirecardCEE_Stdlib_Exception_UnexpectedValueException::class); + $this -> expectException(QentaCEE_Stdlib_Exception_UnexpectedValueException::class); $this->object->setHashAlgorithm('notExisting'); $this->object->setSecret($this->_secret); - $this->object->setOrderType(WirecardCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); + $this->object->setOrderType(QentaCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); $this->object->setFingerprintOrderField('responseFingerprintOrder'); $this->object->isValid($this->_returnData['responseFingerprint'], $this->_returnData); } public function testIsValidWithWrongStrLen() { - $this->object->setHashAlgorithm(WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512); + $this->object->setHashAlgorithm(QentaCEE_Stdlib_Fingerprint::HASH_ALGORITHM_SHA512); $this->object->setSecret($this->_secret); - $this->object->setOrderType(WirecardCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); + $this->object->setOrderType(QentaCEE_Stdlib_Validate_Fingerprint::TYPE_DYNAMIC); $this->object->setFingerprintOrderField('responseFingerprintOrder'); $this->assertFalse($this->object->isValid($this->_returnData['responseFingerprint'], $this->_returnData)); } diff --git a/tests/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php b/tests/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php deleted file mode 100644 index 46c0964..0000000 --- a/tests/WirecardCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php +++ /dev/null @@ -1,100 +0,0 @@ -object = new WirecardCEE_QMore_Exception_InvalidArgumentException('objectMessage', 666); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown(): void - { - - } - - public function testThrowExceptionWithoutData() - { - try { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException(); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { - $this->assertEquals('', $e->getMessage()); - $this->assertEquals(0, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function testThrowExceptionWithData() - { - try { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException('message', 1234); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function getThrowExceptionWithPrevious() - { - try { - throw new WirecardCEE_QMore_Exception_InvalidArgumentException('message', 111, $this->object); - } catch (WirecardCEE_QMore_Exception_InvalidArgumentException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals($this->object, $e->getPrevious()); - } - } -} - -?> diff --git a/tests/WirecardCEE/QMore/ReturnFactoryTest.php b/tests/WirecardCEE/QMore/ReturnFactoryTest.php deleted file mode 100644 index 850952f..0000000 --- a/tests/WirecardCEE/QMore/ReturnFactoryTest.php +++ /dev/null @@ -1,213 +0,0 @@ -object = null; - parent::tearDown(); - } - - /** - * Tests WirecardCEE_QMore_ReturnFactory::getInstance() - */ - public function testGetInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertTrue(is_object($oInstance)); - } - - public function testSuccessInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Success_CreditCard', $oInstance); - } - - public function testSuccessPaypalInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'Paypal' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Success_PayPal', $oInstance); - } - - public function testSuccessSofortueberweisungInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'SOFORTUEBERWEISUNG' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Success_Sofortueberweisung', $oInstance); - } - - public function testSuccessIdealInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'IDL' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Success_Ideal', $oInstance); - } - - public function testSuccessDefaultInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS, - 'paymentType' => '' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Success', $oInstance); - } - - public function testInstanceWIthNoPaymentType() - { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidResponseException::class); - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testFailureState() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_FAILURE - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Failure', $oInstance); - } - - public function testCancelState() - { - $return = Array( - 'paymentState' => WirecardCEE_QMore_ReturnFactory::STATE_CANCEL, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QMore_Return_Cancel', $oInstance); - } - - public function testNoState() - { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidResponseException::class); - $return = Array( - 'paymentState' => 999 - ); - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testInstanceWithEmptyPaymentStateInArray() - { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidResponseException::class); - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance(Array(), $this->_secret); - } - - public function testWhenReturnIsNotArray() - { - $this -> expectException(WirecardCEE_QMore_Exception_InvalidResponseException::class); - $return = ""; - $oInstance = WirecardCEE_QMore_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testGenerateConfirmResponseNOKString() - { - $response = WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString('nok test'); - $this->assertEquals('', - $response); - } - - public function testGenerateConfirmResponseHtmlCommentNOKString() - { - $response = WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString('nok test', true); - $this->assertEquals('', - $response); - } - - public function testGenerateConfirmResponseOKString() - { - $response = WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString(); - $this->assertEquals('', $response); - } - - public function testGenerateConfirmResponseHtmlCommentOKString() - { - $response = WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString('', true); - $this->assertEquals('', $response); - } -} - diff --git a/tests/WirecardCEE/QPay/Exception/InvalidParamLengthExceptionTest.php b/tests/WirecardCEE/QPay/Exception/InvalidParamLengthExceptionTest.php deleted file mode 100644 index a4f7966..0000000 --- a/tests/WirecardCEE/QPay/Exception/InvalidParamLengthExceptionTest.php +++ /dev/null @@ -1,99 +0,0 @@ -object = new WirecardCEE_QPay_Exception_InvalidParamLengthException('objectMessage', 666); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown(): void - { - - } - - public function testThrowExceptionWithoutData() - { - try { - throw new WirecardCEE_QPay_Exception_InvalidParamLengthException(); - } catch (WirecardCEE_QPay_Exception_InvalidParamLengthException $e) { - $this->assertEquals('', $e->getMessage()); - $this->assertEquals(0, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function testThrowExceptionWithData() - { - try { - throw new WirecardCEE_QPay_Exception_InvalidParamLengthException('message', 1234); - } catch (WirecardCEE_QPay_Exception_InvalidParamLengthException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function getThrowExceptionWithPrevious() - { - try { - throw new WirecardCEE_QPay_Exception_InvalidParamLengthException('message', 111, $this->object); - } catch (WirecardCEE_QPay_Exception_InvalidParamLengthException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals($this->object, $e->getPrevious()); - } - } -} - -?> diff --git a/tests/WirecardCEE/QPay/ReturnFactoryTest.php b/tests/WirecardCEE/QPay/ReturnFactoryTest.php deleted file mode 100644 index 0f55a1a..0000000 --- a/tests/WirecardCEE/QPay/ReturnFactoryTest.php +++ /dev/null @@ -1,213 +0,0 @@ -object = null; - parent::tearDown(); - } - - /** - * Tests WirecardCEE_QPay_ReturnFactory::getInstance() - */ - public function testGetInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertTrue(is_object($oInstance)); - } - - public function testSuccessInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Success_CreditCard', $oInstance); - } - - public function testSuccessPaypalInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'Paypal' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Success_PayPal', $oInstance); - } - - public function testSuccessSofortueberweisungInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'SOFORTUEBERWEISUNG' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Success_Sofortueberweisung', $oInstance); - } - - public function testSuccessIdealInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => 'IDL' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Success_Ideal', $oInstance); - } - - public function testSuccessDefaultInstance() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS, - 'paymentType' => '' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Success', $oInstance); - } - - public function testInstanceWIthNoPaymentType() - { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidResponseException::class); - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testFailureState() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_FAILURE - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Failure', $oInstance); - } - - public function testCancelState() - { - $return = Array( - 'paymentState' => WirecardCEE_QPay_ReturnFactory::STATE_CANCEL, - 'paymentType' => 'CCARD' - ); - - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - $this->assertInstanceOf('WirecardCEE_QPay_Return_Cancel', $oInstance); - } - - public function testNoState() - { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidResponseException::class); - $return = Array( - 'paymentState' => 999 - ); - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testInstanceWithEmptyPaymentStateInArray() - { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidResponseException::class); - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance(Array(), $this->_secret); - } - - public function testWhenReturnIsNotArray() - { - $this -> expectException(WirecardCEE_QPay_Exception_InvalidResponseException::class); - $return = ""; - $oInstance = WirecardCEE_QPay_ReturnFactory::getInstance($return, $this->_secret); - } - - public function testGenerateConfirmResponseNOKString() - { - $response = WirecardCEE_QPay_ReturnFactory::generateConfirmResponseString('nok test'); - $this->assertEquals('', - $response); - } - - public function testGenerateConfirmResponseHtmlCommentNOKString() - { - $response = WirecardCEE_QPay_ReturnFactory::generateConfirmResponseString('nok test', true); - $this->assertEquals('', - $response); - } - - public function testGenerateConfirmResponseOKString() - { - $response = WirecardCEE_QPay_ReturnFactory::generateConfirmResponseString(); - $this->assertEquals('', $response); - } - - public function testGenerateConfirmResponseHtmlCommentOKString() - { - $response = WirecardCEE_QPay_ReturnFactory::generateConfirmResponseString('', true); - $this->assertEquals('', $response); - } -} - diff --git a/tests/WirecardCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php b/tests/WirecardCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php deleted file mode 100644 index 09c7bb7..0000000 --- a/tests/WirecardCEE/Stdlib/Exception/InvalidArgumentExceptionTest.php +++ /dev/null @@ -1,99 +0,0 @@ -object = new WirecardCEE_Stdlib_Exception_InvalidArgumentException('objectMessage', 666); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown(): void - { - - } - - public function testThrowExceptionWithoutData() - { - try { - throw new WirecardCEE_Stdlib_Exception_InvalidArgumentException(); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { - $this->assertEquals('', $e->getMessage()); - $this->assertEquals(0, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function testThrowExceptionWithData() - { - try { - throw new WirecardCEE_Stdlib_Exception_InvalidArgumentException('message', 1234); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function getThrowExceptionWithPrevious() - { - try { - throw new WirecardCEE_Stdlib_Exception_InvalidArgumentException('message', 111, $this->object); - } catch (WirecardCEE_Stdlib_Exception_InvalidArgumentException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals($this->object, $e->getPrevious()); - } - } -} - -?> diff --git a/tests/WirecardCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php b/tests/WirecardCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php deleted file mode 100644 index 1a77db3..0000000 --- a/tests/WirecardCEE/Stdlib/Exception/UnexpectedValueExceptionTest.php +++ /dev/null @@ -1,99 +0,0 @@ -object = new WirecardCEE_Stdlib_Exception_UnexpectedValueException('objectMessage', 666); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown(): void - { - - } - - public function testThrowExceptionWithoutData() - { - try { - throw new WirecardCEE_Stdlib_Exception_UnexpectedValueException(); - } catch (WirecardCEE_Stdlib_Exception_UnexpectedValueException $e) { - $this->assertEquals('', $e->getMessage()); - $this->assertEquals(0, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function testThrowExceptionWithData() - { - try { - throw new WirecardCEE_Stdlib_Exception_UnexpectedValueException('message', 1234); - } catch (WirecardCEE_Stdlib_Exception_UnexpectedValueException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals('', $e->getPrevious()); - } - } - - public function getThrowExceptionWithPrevious() - { - try { - throw new WirecardCEE_Stdlib_Exception_UnexpectedValueException('message', 111, $this->object); - } catch (WirecardCEE_Stdlib_Exception_UnexpectedValueException $e) { - $this->assertEquals('message', $e->getMessage()); - $this->assertEquals(1234, $e->getCode()); - $this->assertEquals($this->object, $e->getPrevious()); - } - } -} - -?> diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 20e0b0f..bd83ee4 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * diff --git a/tests/configuration.xml b/tests/configuration.xml index 9867cae..ed3eb07 100644 --- a/tests/configuration.xml +++ b/tests/configuration.xml @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * -* The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH -* (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of +* The plugins offered are provided free of charge by Qenta Payment CEE GmbH +* (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * -* However, Wirecard CEE does not provide any guarantee or accept any liability for any errors +* However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * -* Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full -* functionality neither does Wirecard CEE assume liability for any disadvantages related to -* the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality +* Customers use the plugins at their own risk. Qenta CEE does not guarantee their full +* functionality neither does Qenta CEE assume liability for any disadvantages related to +* the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. * @@ -34,25 +34,25 @@ - - ./WirecardCEE/QMore/ + + ./QentaCEE/QMore/ - - ./WirecardCEE/QPay/ + + ./QentaCEE/QPay/ - - ./WirecardCEE/Stdlib/ + + ./QentaCEE/Stdlib/ - ../library/WirecardCEE + ../library/QentaCEE - ../WirecardCEE/QMore/Examples - ../WirecardCEE/QMore/Documentation - ../WirecardCEE/QPay/Examples - ../WirecardCEE/QPay/Documentation - ../WirecardCEE/Stdlib/Documentation + ../QentaCEE/QMore/Examples + ../QentaCEE/QMore/Documentation + ../QentaCEE/QPay/Examples + ../QentaCEE/QPay/Documentation + ../QentaCEE/Stdlib/Documentation diff --git a/tests/confirm.php b/tests/confirm.php index 51ec4ff..c309b00 100644 --- a/tests/confirm.php +++ b/tests/confirm.php @@ -2,8 +2,8 @@ /** * Shop System Plugins - Terms of Use * - * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH - * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of + * The plugins offered are provided free of charge by Qenta Payment CEE GmbH + * (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of * products and services. * * They have been tested and approved for full functionality in the standard configuration @@ -11,15 +11,15 @@ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under * the same terms. * - * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors + * However, Qenta CEE does not provide any guarantee or accept any liability for any errors * occurring when used in an enhanced, customized shop system configuration. * * Operation in an enhanced, customized configuration is at your own risk and requires a * comprehensive test phase by the user of the plugin. * - * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full - * functionality neither does Wirecard CEE assume liability for any disadvantages related to - * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality + * Customers use the plugins at their own risk. Qenta CEE does not guarantee their full + * functionality neither does Qenta CEE assume liability for any disadvantages related to + * the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality * for customized shop systems or installed plugins of other vendors of plugins within the same * shop system. *