• Resolved diamantigreece

    (@diamantigreece)


    Hi all,
    I have troubles with payments on my website (still in sandbox mode) where the payment process goes smoothly when simulating a payment via the PayPal process, but not being confirmed correctly when using the Stripe process (although it worked a week ago).
    While trying to pin down the problem, I noticed that the webhook can be tested in the WooCommerce>Settings>Payments>Stripe>Settings
    Despite checking the settings multiple times, de- and reinstalling the stripe payments for Woocommerce plugin and entering the stripe settings again, I get the following error when I test my stripe webhook (https://diamanti-greece.com/?wc-api=wc_stripe) in the plugin:
    Warning: The most recent test webhook, received at 2021-12-15 20:32:50 UTC, could not be processed. Reason: The webhook was not signed with the expected signing secret. (No test webhooks have been processed successfully since monitoring began at 2021-12-04 15:22:39 UTC.)
    
    I turned on logging and in the fatal errors I found numerous errors similar to this one:
    2021-12-15T20:04:14+00:00 CRITICAL Uncaught Stripe\Exception\SignatureVerificationException: No signatures found matching the expected signature for payload in /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Exception/SignatureVerificationException.php:28
    Stack trace:
    #0 /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/WebhookSignature.php(61): Stripe\Exception\SignatureVerificationException::factory()
    #1 /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Webhook.php(29): Stripe\WebhookSignature::verifyHeader()
    #2 /var/www/wptbox/wp-content/themes/wprentals/stripecharge.php(15): Stripe\Webhook::constructEvent()
    #3 /var/www/wptbox/wp-includes/template-loader.php(106): include('/var/www/wptbox...')
    #4 /var/www/wptbox/wp-blog-header.php(19): require_once('/var/www/wptbox...')
    #5 /var/www/wptbox/index.php(17): require('/var/www/wptbox...')
    #6 {main}
      thrown in /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Exception/SignatureVerificationException.php on line 28
    
    Regarding the webhook event I test on: I go to my stripe account, it is in test mode, go to the webhook https://diamanti-greece.com/?wc-api=wc_stripe and send a test event (tried different ones, including payment_intend.succeeded. Then I refreshed in my admin panel>WooCommerce>Settings>Payments>Stripe>Settings the account details panel. Other settings I have there are "enable stripe" and "enable test mode", both activated. In "edit account keys">Test I put the information from my stripe test environment (like publishable key = pk_test_51Jo9a3IyY87qnqdtTy8xhQEn6prF1ViDVjnEuc1RmuHvp7zSxph3pQceqnvhkdcIwJRj8NOrgtlpzbdpjDTeO5W60056EqOCUY, etc. also the webhook key for the appropriate webhook).
    All plugins are up to date as of 15.12.2021
    Any clue what I did wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter diamantigreece

    (@diamantigreece)

    Hello, thanks for your answer! Sure thing, here we go:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://diamanti-greece.com
    Site address (URL): https://diamanti-greece.com
    WC Version: 6.0.0
    REST API Version: ? 6.0.0
    WC Blocks Version: ? 6.3.3
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.9.4
    Log Directory Writable: ?
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 128 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: nginx/1.18.0
    PHP Version: 7.4.12
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 5000
    cURL Version: 7.77.0
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.26-29-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.0.0
    WC Database Prefix: wp_
    Total Database Size: 12.72MB
    Database Data Size: 8.96MB
    Database Index Size: 3.76MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.06MB + Index: 0.13MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.52MB + Index: 0.06MB + Engine InnoDB
    wp_postmeta: Data: 3.52MB + Index: 2.02MB + Engine InnoDB
    wp_posts: Data: 1.52MB + Index: 0.13MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpairbnb_post_templates: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpairbnb_reviews: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 96
    cookielawinfo: 6
    customize_changeset: 31
    elementor_library: 4
    estate_agent: 5
    estate_property: 6
    membership_package: 6
    nav_menu_item: 34
    page: 64
    post: 13
    postman_sent_mail: 26
    product: 20
    revision: 58
    shop_order: 12
    shop_order_refund: 1
    user_request: 1
    wpestate_booking: 3
    wpestate_invoice: 8
    wpestate_message: 48
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (18) ###
    
    Ultimate Addons for WPBakery Page Builder: by Brainstorm Force – 3.19.11
    Elementor: by Elementor.com – 3.5.0
    Envato Market: by Envato – 2.0.6
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.7.0
    MyCryptoCheckout: by edward_plainview – 2.109
    One Click Demo Import: by OCDI – 3.0.2
    Post SMTP: by Yehuda Hassine – 2.0.23
    WpRentals  - Gutenberg Blocks: by wpestate.org – 2.3.1
    Slider Revolution: by ThemePunch – 6.5.11
    WooCommerce Stripe Gateway: by WooCommerce – 5.9.0
    WooCommerce PayPal Payments: by WooCommerce – 1.6.3
    WooCommerce: by Automattic – 6.0.0
    WP Airbnb Review Slider: by LJ Apps – 2.6
    WP Crontrol: by John Blackbourn & crontributors – 1.12.0
    WP Simple Mail Sender: by Enrique Chavez – 1.0.2
    WPForms Lite: by WPForms – 1.7.1.2
    WpRentals -Theme Core Functionality: by wpestate – 3.5
    WpRentals Elementor Widgets: by WpEstate – 3.5
    
    ### Inactive Plugins (9) ###
    
    Akismet Anti-Spam: by Automattic – 4.2.1
    Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.2.1
    GDPR Cookie Consent: by WebToffee – 2.0.6
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.3.0
    Google Listings and Ads: by WooCommerce – 1.8.0
    Jetpack: by Automattic – 10.4
    MailPoet 3 (New): by MailPoet – 3.75.1
    WooCommerce Shipping & Tax: by WooCommerce – 1.25.20
    Yoast SEO: by Team Yoast – 17.8
    
    ### Dropin Plugins (1) ###
    
    object-cache.php: Redis Object Cache Drop-In
    
    ### Must Use Plugins (1) ###
    
    EasyWP Plugin: by Namecheap
    Inc. – 0.9.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #29 - /shop/
    Cart: #30 - /cart/
    Checkout: #31 - /checkout/
    My account: #32 - /my-account/
    Terms and conditions: #356 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: WpRentals
    Version: 3.5
    Author URL: https://themeforest.net/user/wpestate
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ? Not declared
    
    ### Templates ###
    
    Overrides: –
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ?
    Shop country code: GR
    WooCommerce currency supported: ?
    PayPal card processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: –
    Vault enabled: ?
    Logging enabled: ?
    Reference Transactions: ?
    Used PayPal Checkout plugin: –
    
    ### Action Scheduler ###
    
    Complete: 124
    Oldest: 2021-12-03 14:36:17 +0000
    Newest: 2021-12-15 20:31:40 +0000
    
    Pending: 5
    Oldest: -0001-11-30 00:00:00 +0000
    Newest: 2021-12-19 04:45:19 +0000
    
    ### Status report information ###
    
    Generated at: 2021-12-16 14:50:29 +00:00
    

    @diamantigreece

    This kind of problem is usually caused by a conflict with your theme or with another plugin. 
    ?
    The best way to determine this is to:
    <ul>
    <li>Temporarily switch your theme to <a href="https://www.woocommerce.com/storefront/" target="_blank">Storefront</a></li>
    <li>Disable all plugins except for WooCommerce</li>
    <li>Repeat the action that is causing the problem</li>
    </ul>
    
    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. <a href="https://docs.woocommerce.com/document/how-to-test-for-conflicts/">You can find a more detailed explanation on how to do a conflict test here.</a>

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The most recent test webhook could not be processed’ is closed to new replies.