Twint-AG / twint-woocommerce-extension

0 stars 0 forks source link

Checkout for order payment does not work for all views #2

Open samuelhurni opened 2 weeks ago

samuelhurni commented 2 weeks ago

Hello

When I do the checkout in my WooCommerce Shop by forwarding to the payment link directly, the Twint checkout is available but does not work at all, so not even the QR code is appearing, just a blank page. I tested it also with the other options like Kredit Card from WooPayment and this was working smoothly. So it looks to me that the plugin is running into an error.

image

In the screenshot you should see the site from where I do the payment. The URL to this site was in my configuration this one: https://domainname.ch/kasse/order-pay/188/?pay_for_order=true&key=wc_order_vFrosOcO55BHG

I did some further investigations and activated the WordPress Debug function and found this in my debug.log file after clicking the button with Twint as payment method selected:

_``` wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17 [09-Nov-2024 03:44:20 UTC] PHP Warning: Class "TwintWoo\Deprecated" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 27 [09-Nov-2024 03:44:21 UTC] PHP Warning: Class "TwintWoo\SensitiveParameter" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 10 [09-Nov-2024 03:44:21 UTC] PHP Warning: Class "TwintWoo\Override" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17 [09-Nov-2024 03:44:21 UTC] PHP Warning: Class "TwintWoo\Deprecated" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 27 [09-Nov-2024 03:44:21 UTC] PHP Notice: Die Funktion wpdb::prepare wurde fehlerhaft aufgerufen. Nicht unterstützter ValueType (array). Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 4.8.2 hinzugefügt.) in /home/samuel4/www/payment.mealorder.ch/wp-includes/functions.php on line 6085 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\SensitiveParameter" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 10 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\Override" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\Deprecated" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 27 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\SensitiveParameter" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 10 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\Override" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17 [09-Nov-2024 03:44:22 UTC] PHP Warning: Class "TwintWoo\Deprecated" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 27 [09-Nov-2024 03:44:25 UTC] PHP Warning: Class "TwintWoo\SensitiveParameter" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 10 [09-Nov-2024 03:44:25 UTC] PHP Warning: Class "TwintWoo\Override" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17 [09-Nov-2024 03:44:25 UTC] PHP Warning: Class "TwintWoo\Deprecated" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 27 [09-Nov-2024 03:44:35 UTC] PHP Warning: Class "TwintWoo\SensitiveParameter" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 10 [09-Nov-2024 03:44:35 UTC] PHP Warning: Class "TwintWoo\Override" not found in /home/samuel4/www/payment.mealorder.ch/wp-content/plugins/Archive/vendor/twint-ag/sdk/src/polyfill.php on line 17

samuelhurni commented 1 week ago

Additional information to the given Issue tested with RC22 where the payment process still runs into an error:

Video Link from WeTransfer about the procedure and the debugger tools in Chrome: https://we.tl/t-r93nmsCmbC

Related Debug Log: [19-Nov-2024 11:07:05 UTC] PHP Notice: Die Funktion wpdb::prepare wurde fehlerhaft aufgerufen. Nicht unterstützter ValueType (array). Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 4.8.2 hinzugefügt.) in /home/samuel4/www/payment.mealorder.ch/wp-includes/functions.php on line 6114

wpdb::prepare should be a function called from this plugin.