Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined constant error in BLIK payment processing #45

Open
bpetrynski opened this issue Feb 13, 2025 · 1 comment
Open

Undefined constant error in BLIK payment processing #45

bpetrynski opened this issue Feb 13, 2025 · 1 comment

Comments

@bpetrynski
Copy link

Description

The plugin throws a critical error during BLIK payment processing due to an undefined constant WP_TPAY_BLIK_PREFIX. This occurs when attempting to process payments using the BLIK payment method.

Error Details

Uncaught Error: Undefined constant "Tpay\Helpers\WP_TPAY_BLIK_PREFIX" in /wp-content/plugins/tpay-woocommerce/includes/Helpers/GatewayHelper.php:94

Environment

  • WordPress version: 6.7.1
  • WooCommerce version: 9.6.1
  • Tpay WooCommerce plugin version: 1.7.15
  • Tpay OpenAPI PHP version: 1.8.0
  • PHP version: 8.3.16

Stack Trace

#0 .../includes/TpayBlik.php(237): Tpay\Helpers\GatewayHelper->user_blik_status()
#1 .../includes/TpayBlik.php(188): Tpay\TpayBlik->init_blik_user_info()
#2 .../includes/TpayBlik.php(79): Tpay\TpayBlik->additional_payment_data()
#3 .../includes/class-wc-checkout.php(1083): Tpay\TpayBlik->process_payment(...)

Steps to Reproduce

  1. Add items to cart
  2. Proceed to checkout
  3. Select BLIK as payment method
  4. Attempt to complete the order

Expected Behavior

The payment process should proceed without errors and create a BLIK transaction.

Actual Behavior

The checkout process fails with a critical error due to the undefined constant. The error appears consistently across multiple payment attempts.

Additional Context

  • API communication with Tpay servers is successful (HTTP 200 responses)
  • The error occurs specifically during the BLIK payment status check
  • Multiple customers have encountered this issue
  • Logs show successful API communication before the error occurs

Impact

This issue blocks all BLIK payment processing, affecting customer checkout completion.

@kwojc
Copy link
Contributor

kwojc commented Mar 25, 2025

We will try to reproduce issue soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants