Home Forums WoodMart support forum Payment Problem

Payment Problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #614460

    amac.palabiyik
    Participant

    Hello,

    I am getting an error in the payment system. When I use PHP 8.1, there is no problem. When I change the PHP version to 8.2 or 8.3, I get the following error when I go to the credit card payment screen. When I contacted the payment institution, they said they received the correct payment request. The error may be due to the theme.

    [21-Nov-2024 12:54:19 UTC] PHP Fatal error: Uncaught Error: Undefined constant “Iyzipay\CURLOPT_CUSTOMREQUEST” in /home2/yrlskurn/public_html/wp-content/plugins/iyzico-woocommerce/vendor/iyzico/iyzipay-php/src/Iyzipay/DefaultHttpClient.php:46
    Stack trace:
    #0 /home2/yrlskurn/public_html/wp-content/plugins/iyzico-woocommerce/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/CheckoutFormInitialize.php(14): Iyzipay\DefaultHttpClient->post(‘https://api.iyz…’, Array, ‘{“locale”:”TR”,…’)
    #1 /home2/yrlskurn/public_html/wp-content/plugins/iyzico-woocommerce/includes/Checkout/CheckoutForm.php(207): Iyzipay\Model\CheckoutFormInitialize::create(Object(Iyzipay\Request\CreateCheckoutFormInitializeRequest), Object(Iyzipay\Options))
    #2 /home2/yrlskurn/public_html/wp-content/plugins/iyzico-woocommerce/includes/Checkout/CheckoutForm.php(237): Iyzico\IyzipayWoocommerce\Checkout\CheckoutForm->create_payment(9715)
    #3 /home2/yrlskurn/public_html/wp-includes/class-wp-hook.php(324): Iyzico\IyzipayWoocommerce\Checkout\CheckoutForm->checkout_form(9715)
    #4 /home2/yrlskurn/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #5 /home2/yrlskurn/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/templates/checkout/order-receipt.php(44): do_action(‘woocommerce_rec…’, 9715)
    #7 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home2/yrlskurn…’)
    #8 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(245): wc_get_template(‘checkout/order-…’, Array)
    #9 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(61): WC_Shortcode_Checkout::order_pay(9715)
    #10 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output(Array)
    #11 /home2/yrlskurn/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, Array)
    #12 /home2/yrlskurn/public_html/wp-includes/shortcodes.php(434): WC_Shortcodes::checkout(Array, ”, ‘woocommerce_che…’)
    #13 [internal function]: do_shortcode_tag(Array)
    #14 /home2/yrlskurn/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(woocom…’, ‘do_shortcode_ta…’, ‘[woocommerce_ch…’)
    #15 /home2/yrlskurn/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘[woocommerce_ch…’)
    #16 /home2/yrlskurn/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[woocommerce_ch…’, Array)
    #17 /home2/yrlskurn/public_html/wp-content/themes/woodmart/inc/template-tags/template-tags.php(604): apply_filters(‘the_content’, ‘<!– wp:shortco…’)
    #18 /home2/yrlskurn/public_html/wp-content/themes/woodmart/page.php(33): woodmart_get_the_content()
    #19 /home2/yrlskurn/public_html/wp-includes/template-loader.php(106): include(‘/home2/yrlskurn…’)
    #20 /home2/yrlskurn/public_html/wp-blog-header.php(19): require_once(‘/home2/yrlskurn…’)
    #21 /home2/yrlskurn/public_html/index.php(17): require(‘/home2/yrlskurn…’)
    #22 {main}
    thrown in /home2/yrlskurn/public_html/wp-content/plugins/iyzico-woocommerce/vendor/iyzico/iyzipay-php/src/Iyzipay/DefaultHttpClient.php on line 46

    Attachments:
    You must be logged in to view attached files.
    #614528

    Artem Temos
    Keymaster

    Hello,

    We don’t see anything related to our theme in these logs. Could you please test how it works wit the default WordPress theme or WooCommerce Storefront?

    Kind Regards

    #614590

    amac.palabiyik
    Participant

    You can close this ticket, I found the probem CURL.

    Thank you

    #614622

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Payment Problem’ is closed to new replies.