qenta-cee / magento2-qcp Goto Github PK
View Code? Open in Web Editor NEWQENTA Checkout Page extension for Magento 2
License: GNU General Public License v2.0
QENTA Checkout Page extension for Magento 2
License: GNU General Public License v2.0
Hello Wirecard-Team,
I figured out an error which i want to report here:
Preconditions
Install Magento 2.1
Steps to reproduce:
Expected result
Order is being placed/redirect to wirecard
Actual result
Validation message for unaccepted Term and Condition appears
Hello Wirecard-Team,
I figured out an error which already occured in #6
Preconditions
Install Magento 2.2.3 - I suppose it doesnt occur on Magento 2.1 or 2.0
Steps to reproduce:
Expected result
Order is being placed/redirect to wirecard
Actual result
Validation message for unaccepted Term and Condition appears
Please check source file Model/Plugin/FixSession.php
There is a <!-- comment at line 3 which generated an error when running setup:di:compile on Magento 2.3.6
Hello Wirecard-Team,
We figured out an error which we want to report here:
Install Magento 2.1
Install Wirecard WCP Plugin
Use the Test-data from https://guides.wirecard.at/wcp:test_mode( 3-D Secure based )
In frontend: Create an Order using a Test-Creditcard.
In admin panel: Have a look at this Order
Order is completed without any notices.
Order is completed but reported as a fraud
We traced this error back to the compareQuoteChecksum method. We included a few additional debug-outputs to the plugin to find out the reason:
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::compareQuoteChecksum:mine: 45ad47e86d4c5378cf31702199495eb6152eb1d4d8dd9c84ec8fa89da70a0598ff58994e85ae055a20b3820f322ef63d6c7fa433fe8643be2a63ea9092f30532 {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::compareQuoteChecksum:his: 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913 {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Model\OrderManagement::confirmOrder:Ein Betrugsversuch wurde festgestellt. Der Warenkorb wurde während des Bezahlvorganges verändert. {"is_exception":false} []
The error is triggered due a hash mismatch. The webservice returns a hash and this hash is compared to another hash which is calculated from the quote. Both Hashes are different but should be same.
We are thinking that the wirecard-server-side hash calculation differs from the calculation in magento.
Could you provide us some help with this Error? We are stuck at the development right now.
Feel free to contact us anytime for more information and debug Logs.(Email : [email protected])
Many thanks in Advance,
Elias
[2016-11-07 13:19:27] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::calculateQuoteChecksum:calculation-result: [email protected] Elias KotlyarMünchen81377DEDEBayernWelfenstrasse 22Herr Elias KotlyarMünchen81377DEDEBayernWelfenstrasse 22 {"is_exception":false} []
[2016-11-07 13:19:27] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:Array
(
[customerId] => D200411
[shopId] => 3D
[language] => de
[pluginVersion] => TWFnZW50bzI7Mi4xLjE7V2lyZWNhcmRDRUVfUVBheSAzLjQuMDtXaXJlY2FyZC9DaGVja291dFBhZ2U7MS4wLjI=
[confirmUrl] => http://local.dalton.dev/wirecardcheckoutpage/checkout/confirm/
[orderReference] => 0000000080
[uniqueId] => 8v2x3n6g7C
[amount] => 24.8
[currency] => EUR
[paymentType] => CCARD
[orderDescription] => [email protected] Elias Kotlyar
[successUrl] => http://local.dalton.dev/wirecardcheckoutpage/checkout/back/
[pendingUrl] => http://local.dalton.dev/wirecardcheckoutpage/checkout/back/
[cancelUrl] => http://local.dalton.dev/wirecardcheckoutpage/checkout/back/
[failureUrl] => http://local.dalton.dev/wirecardcheckoutpage/checkout/back/
[serviceUrl] => https://www.google.de/?gws_rd=ssl
[consumerIpAddress] => 10.10.0.1
[consumerUserAgent] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
[consumerEmail] => [email protected]
[consumerBillingFirstname] => Elias
[consumerBillingLastname] => Kotlyar
[consumerBillingAddress1] => Welfenstrasse 22
[consumerBillingAddress2] =>
[consumerBillingZipCode] => 81377
[consumerBillingCity] => München
[consumerBillingCountry] => DE
[consumerBillingState] => BAY
[consumerBillingPhone] =>
[consumerBillingFax] =>
[consumerShippingFirstname] => Elias
[consumerShippingLastname] => Kotlyar
[consumerShippingAddress1] => Welfenstrasse 22
[consumerShippingAddress2] =>
[consumerShippingZipCode] => 81377
[consumerShippingCity] => München
[consumerShippingCountry] => DE
[consumerShippingState] => BAY
[consumerShippingPhone] =>
[consumerShippingFax] =>
[mage_orderId] => 000000080
[mage_quoteId] => 299
[mage_orderCreation] => after
[customerStatement] => Web Shop Id:0000000080
[duplicateRequestCheck] => yes
[iframeUsed] =>
[quoteHash] => 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913
)
{"is_exception":false} []
[2016-11-07 13:20:51] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Back::execute:Array
(
[amount] => 24.8
[currency] => EUR
[paymentType] => CCARD
[financialInstitution] => Visa
[language] => de
[orderNumber] => 45906389
[paymentState] => SUCCESS
[uniqueId] => 8v2x3n6g7C
[mage_orderId] => 000000080
[mage_quoteId] => 299
[mage_orderCreation] => after
[iframeUsed] =>
[quoteHash] => 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913
[authenticated] => Yes
[anonymousPan] => 1003
[expiry] => 01/2019
[cardholder] => Elias Kotlyar
[maskedPan] => 401200******1003
[gatewayReferenceNumber] => C963472147852484476281
[gatewayContractNumber] => 70003
[responseFingerprintOrder] => amount,currency,paymentType,financialInstitution,language,orderNumber,paymentState,uniqueId,mage_orderId,mage_quoteId,mage_orderCreation,iframeUsed,quoteHash,authenticated,anonymousPan,expiry,cardholder,maskedPan,gatewayReferenceNumber,gatewayContractNumber,secret,responseFingerprintOrder
[responseFingerprint] => 4a43553145a431feb73b15b14db979b3d1316a644de8f9aeb3da6ed73ec2dfdd4a69bbf9c4e6d52fad802d2ad2da968bca02c30d5126ef3c71d64497f7875033
)
{"is_exception":false} []
[2016-11-07 13:20:51] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Back::execute:order not processed via confirm server2server request, check your packetfilter! {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::calculateQuoteChecksum:calculation-result: [email protected] Elias KotlyarMünchen81377DEDEBayernWelfenstrasse 22Herr Elias KotlyarMünchen81377DEDEBayernWelfenstrasse 22 {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::compareQuoteChecksum:quote checksum mismatch {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::compareQuoteChecksum:mine: 45ad47e86d4c5378cf31702199495eb6152eb1d4d8dd9c84ec8fa89da70a0598ff58994e85ae055a20b3820f322ef63d6c7fa433fe8643be2a63ea9092f30532 {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Helper\Data::compareQuoteChecksum:his: 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913 {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Model\OrderManagement::confirmOrder:Ein Betrugsversuch wurde festgestellt. Der Warenkorb wurde während des Bezahlvorganges verändert. {"is_exception":false} []
[2016-11-07 13:20:53] report.DEBUG: Wirecard\CheckoutPage\Model\OrderManagement::confirmOrder:payment-state:payment_approved allowed operations:DEPOSIT,APPROVEREVERSAL {"is_exception":false} []
Hello Wirecard-Team,
I figured out an error which i want to report here.
Same as in #8
Same as in
#8
The only exception is, that you have to select EPS-Payment instead of Sofortbanking.
Order is being placed/redirect to wirecard
Redirect to Cart with "There was an Error with your Transaction"
same as #8.
We have seen some Errors in the /var/log/debug.log:
[2017-05-02 19:22:35] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:Array
(
[customerId] => D200411
[shopId] => 3D
[language] => de
[pluginVersion] => TWFnZW50bzI7Mi4xLjQ7V2lyZWNhcmRDRUVfUVBheSAzLjQuMDtXaXJlY2FyZC9DaGVja291dFBhZ2U7MS4wLjI=
[confirmUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/confirm/
[orderReference] => 0000000394
[uniqueId] => 7o5B2W3X8I
[amount] => 36.8
[currency] => EUR
[paymentType] => EPS
[orderDescription] => [email protected] Elias Kotlyar
[successUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[pendingUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[cancelUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[failureUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[serviceUrl] => https://www.google.de/?gws_rd=ssl
[consumerIpAddress] => 62.245.145.114
[consumerUserAgent] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
[consumerEmail] => [email protected]
[consumerBirthDate] => 1990-04-23
[consumerBillingFirstname] => Elias
[consumerBillingLastname] => Kotlyar
[consumerBillingAddress1] => Welfenstrasse 22
[consumerBillingAddress2] =>
[consumerBillingZipCode] => 813541
[consumerBillingCity] => München
[consumerBillingCountry] => DE
[consumerBillingState] => SAS
[consumerBillingPhone] =>
[consumerBillingFax] =>
[consumerShippingFirstname] => Elias
[consumerShippingLastname] => Kotlyar
[consumerShippingAddress1] => Welfenstrasse 22
[consumerShippingAddress2] =>
[consumerShippingZipCode] => 813541
[consumerShippingCity] => München
[consumerShippingCountry] => DE
[consumerShippingState] => SAS
[consumerShippingPhone] =>
[consumerShippingFax] =>
[mage_orderId] => 000000394
[mage_quoteId] => 1113
[mage_orderCreation] => after
[customerStatement] => Web Shop Id:0000000394
[duplicateRequestCheck] => yes
[iframeUsed] =>
[quoteHash] => 432eb69782bcc6db8af24f1031f0f036039e26bdd87172b402860cc6d8cd66f5c2ffb47ff1ce474c5e8ab716a3f3157d75d04edabc676b4ac4425791c6c1ba7a
)
{"is_exception":false} []
[2017-05-02 19:22:35] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:PAYMENTTYPE is not activated. {"is_exception":false} []
[2017-05-02 19:22:35] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Start::execute:Während des Bezahlprozesses ist ein Fehler aufgetreten. {"is_exception":false} []
[2017-05-02 19:22:36] report.DEBUG: cache_invalidate: {"method":"GET","url":"http://staging.dalton-cosmetics.com/checkout/cart/","invalidateInfo":{"identifier":"TARGET_RULE_3_285_1_1_1"},"is_exception":false} []
Thanks for your support,
Magento 2 version: 2.3.0
PHP version: 7.2
Problem description:
When will your extension be compatible with magento 2.3 ? Currently it is not possible to pay with wcp on a magento2.3 installation cause when the user comes back from wirecard interface an error shows with message "Invalid Form Key. Please refresh the page."
...
Steps to reproduce:
...
Hello Wirecard-Team,
We figured out an error which we want to report here:
Install Magento 2.1
Install Wirecard WCP Plugin
Use the Test-data from https://guides.wirecard.at/wcp:test_mode( 3-D Secure based ) for configuring
Configure "Wirecard Creditcard" payment method in Magento Backend as follows:
-> Display Mode needs to be set to "Redirection"(Weiterleitung)
In frontend:
1. Proceed to Checkout, use wirecard creditcard as payment method
2. Click on "place order" and proceed to wirecard
3. Click the "return" Button on your Browser
4. Try again to place an Order
You can perform a Payment and you are redirected to wirecard.
You cannot perform a Payment. You are redirected back to cart page.
We suppose that this debug-entry is the trigger of the issue:
[2016-11-23 10:21:17] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:FINGERPRINT cannot be used twice. Probably the transaction has already been processed. {"is_exception":false} []
We are thinking that this occurs due the same Data in the Request.
Could you provide us some help with this Error? We are stuck at the development right now.
Feel free to contact us anytime for more information and debug Logs.(Email : [email protected])
Many thanks in Advance,
Elias
[2016-11-23 10:20:35] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:Array
(
[customerId] => D200411
[shopId] => 3D
[language] => de
[pluginVersion] => TWFnZW50bzI7Mi4xLjE7V2lyZWNhcmRDRUVfUVBheSAzLjQuMDtXaXJlY2FyZC9DaGVja291dFBhZ2U7MS4wLjI=
[confirmUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/confirm/
[orderReference] => 0000000128
[uniqueId] => 2r6S3Q4x0k
[amount] => 24.8
[currency] => EUR
[paymentType] => CCARD
[orderDescription] => [email protected] Elias Kotlyar
[successUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[pendingUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[cancelUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[failureUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[serviceUrl] => https://www.google.de/?gws_rd=ssl
[consumerIpAddress] => 62.245.145.114
[consumerUserAgent] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
[consumerEmail] => [email protected]
[consumerBillingFirstname] => Elias
[consumerBillingLastname] => Kotlyar
[consumerBillingAddress1] => Welfenstrasse 22
[consumerBillingAddress2] =>
[consumerBillingZipCode] => 81377
[consumerBillingCity] => München
[consumerBillingCountry] => DE
[consumerBillingState] => BAY
[consumerBillingPhone] =>
[consumerBillingFax] =>
[consumerShippingFirstname] => Elias
[consumerShippingLastname] => Kotlyar
[consumerShippingAddress1] => Welfenstrasse 22
[consumerShippingAddress2] =>
[consumerShippingZipCode] => 81377
[consumerShippingCity] => München
[consumerShippingCountry] => DE
[consumerShippingState] => BAY
[consumerShippingPhone] =>
[consumerShippingFax] =>
[mage_orderId] => 000000128
[mage_quoteId] => 429
[mage_orderCreation] => after
[customerStatement] => Web Shop Id:0000000128
[duplicateRequestCheck] => yes
[iframeUsed] =>
[quoteHash] => 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913
)
{"is_exception":false} []
[2016-11-23 10:21:17] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:Array
(
[customerId] => D200411
[shopId] => 3D
[language] => de
[pluginVersion] => TWFnZW50bzI7Mi4xLjE7V2lyZWNhcmRDRUVfUVBheSAzLjQuMDtXaXJlY2FyZC9DaGVja291dFBhZ2U7MS4wLjI=
[confirmUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/confirm/
[orderReference] => 0000000128
[uniqueId] => 2r6S3Q4x0k
[amount] => 24.8
[currency] => EUR
[paymentType] => CCARD
[orderDescription] => [email protected] Elias Kotlyar
[successUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[pendingUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[cancelUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[failureUrl] => http://staging.dalton-cosmetics.com/wirecardcheckoutpage/checkout/back/
[serviceUrl] => https://www.google.de/?gws_rd=ssl
[consumerIpAddress] => 62.245.145.114
[consumerUserAgent] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
[consumerEmail] => [email protected]
[consumerBillingFirstname] => Elias
[consumerBillingLastname] => Kotlyar
[consumerBillingAddress1] => Welfenstrasse 22
[consumerBillingAddress2] =>
[consumerBillingZipCode] => 81377
[consumerBillingCity] => München
[consumerBillingCountry] => DE
[consumerBillingState] => BAY
[consumerBillingPhone] =>
[consumerBillingFax] =>
[consumerShippingFirstname] => Elias
[consumerShippingLastname] => Kotlyar
[consumerShippingAddress1] => Welfenstrasse 22
[consumerShippingAddress2] =>
[consumerShippingZipCode] => 81377
[consumerShippingCity] => München
[consumerShippingCountry] => DE
[consumerShippingState] => BAY
[consumerShippingPhone] =>
[consumerShippingFax] =>
[mage_orderId] => 000000128
[mage_quoteId] => 429
[mage_orderCreation] => after
[customerStatement] => Web Shop Id:0000000128
[duplicateRequestCheck] => yes
[iframeUsed] =>
[quoteHash] => 46bd91e9dbd77a398235f3e2301201c76b2be5fbdef4b674b491c7691b4b033759d837c1c2113427902bddc04b3287d8ed611cb68f930df2a53dde22c0711913
)
{"is_exception":false} []
[2016-11-23 10:21:17] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:FINGERPRINT cannot be used twice. Probably the transaction has already been processed. {"is_exception":false} []
[2016-11-23 10:21:17] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Start::execute:Während des Bezahlprozesses ist ein Fehler aufgetreten. {"is_exception":false} []
[2016-11-23 10:21:18] report.DEBUG: cache_invalidate: {"method":"GET","url":"http://staging.dalton-cosmetics.com/checkout/cart/","invalidateInfo":{"identifier":"TARGET_RULE_3_116_1_0_1"},"is_exception":false} []
Add explicit amount precision for base grand total, price, and tax amount when calculating the quote checksum.
Magento 2 version: 2.5.x
PHP version: 7.1.22
Problem description:
With 5f6c386 the status of orders is set to PROCESSING which triggers order confirmation email sending by Magento Core. As the OrderManagement class sends the order confirmation email itself, it is sent twice.
Hello Wirecard-Team,
We have debugged the Extension and found the reason for this error. It turned out, that we havent filled out the "imprint-url" field. After correcting it,everything worked fine. But this error-description is completely misleading, and therefore it would be good if you could use a more precise error description.
Greetings
Elias
Hello Wirecard-Team,
I figured out an error which i want to report here.
Same as in #8
Same as in
#8
The only exception is, that you have to select Paypal instead of Sofortbanking.
Order is being placed/redirect to wirecard
Redirect to Cart with "There was an Error with your Transaction"
same as #8.
We have seen some Errors in the /var/log/debug.log:
[2016-10-07 14:55:34] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:PAYMENTTYPE is not activated. {"is_exception":false} []
[2016-10-07 14:55:34] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Start::execute:Während des Bezahlprozesses ist ein Fehler aufgetreten. {"is_exception":false} []
Thanks for your support,
Greetings
Elias
Hello Wirecard-Team,
I figured out an error which i want to report here:
Install Magento 2.1
Install Wirecard WCP Plugin
Provide the Test-data from https://guides.wirecard.at/wcp:test_mode( 3-D Secure based )
Go to Checkout with any Products
Select Sofortbanking(Sofortüberweisung)
Click Place Order
Order is being placed/redirect to wirecard
Redirect to Cart with "There was an Error with your Transaction"
We have seen some Errors in the /var/log/debug.log:
[2016-10-07 14:55:34] report.DEBUG: Wirecard\CheckoutPage\Model\AbstractPayment::initPaymentByCart:PAYMENTTYPE is not activated. {"is_exception":false} []
[2016-10-07 14:55:34] report.DEBUG: Wirecard\CheckoutPage\Controller\Checkout\Start::execute:Während des Bezahlprozesses ist ein Fehler aufgetreten. {"is_exception":false} []
We have researched, that the Message "PAYMENTTYPE is not activated." is transfered from the Webservice, but we havent investigated why. We suppose that the Sofortbanking is not opened up yet for testing. Could you provide us some informations?
Greetings
Elias
After installing the Magento2 version of the plugin and completing the checkout process, I get the error "Cardholder is missing" in the frontend.
The checkout method is Wirecard Checkout Seamless Credit Card.
The checkout is currently set to Test and I tested with several testing creditcards (non-3d secure, 3d secure etc..)
In the debug.log I see the following message:
[2017-10-25 11:12:04] main.DEBUG: Wirecard\CheckoutSeamless\Controller\Checkout\Back::execute:Magento orderCreation is missing {"is_exception":false} []
Hello it looks like payment iframe does not present best on smaller screens:
https://s3.amazonaws.com/uploads.hipchat.com/430331/2703129/c4LGkGa2MPqsvnI/Zrzut%20ekranu%202016-12-15%20o%2014.54.23.png
(Magento 2.1)
Have a working Magento 2.2 Installation .
Magento Version : CE and EE
Newest Magento2-WCP-Plugin from Master Branch
Third party modules : No
Install Plugin into Magento 2.2
Start compiling process using /bin/magento setup:di:compile
You can compile your di
Proxies code generation... 1/7 [====>-----------------------] 14% 2 secs 70.0 MiB
Repositories code generation... 1/7 [====>-----------------------] 14% 2 secs 70.0 MiB
Repositories code generation... 2/7 [========>-------------------] 28% 48 secs 246.0 MiB
Service data attributes generation... 2/7 [========>-------------------] 28% 48 secs 246.0 MiB
Service data attributes generation... 3/7 [============>---------------] 42% 48 secs 246.0 MiB
Application code generator... 3/7 [============>---------------] 42% 48 secs 246.0 MiB
Application code generator... 4/7 [================>-----------] 57% 1 min 266.0 MiB
Interceptors generation... 4/7 [================>-----------] 57% 1 min 266.0 MiB
Interceptors generation... 5/7 [====================>-------] 71% 2 mins 304.0 MiB
Area configuration aggregation... 5/7 [====================>-------] 71% 2 mins 304.0 MiB
[ReflectionException]
Class Magento\Framework\App\Config\ScopePool does not exist
Since Magento 2 is compatible with PHP 7 we also have to test compatibility and change the composer.json to allow PHP 7.
Magento 2 version: 2.4.6-p3
PHP version: 8.2
Problem description:
Exception: Deprecated Functionality: trim(): Passing null to parameter ($string) of type string is deprecated in /www/html/vendor/qenta/magento2-qcp/Model/AbstractPayment.php on line 576
If instructions are empty the function below pass null to trim, and this is not allowed anymore.
Maybe there are some more trims where a null value can happend.
We should change this:
public function getInstructions()
{
return trim($this->getConfigData('instructions'));
}
to:
public function getInstructions()
{
return trim($this->getConfigData('instructions') ?? '');
}
Steps to reproduce:
Activate module and payment method, leave instruction field blank, go to cart. Check debug or system log, the error message should appeare.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.