• Resolved BlueSteam

    (@bluesteam)


    Hello,

    We have been struggling now for a few days trying to get the Payfast plugin working correctly. During payment, we are getting a signature mismatch in the error log.

    I have made sure that PHP is on 7.2 and all plugins and themes are up to date.

    I have set the memory_limit to 368M so thats plenty.

    I even tried this line of code in functions.php and that didnt help:

    
    add_filter( 'woocommerce_gateway_payfast_is_valid_ip', '__return_true' );
    

    I also made sure the merchant id, merchant key and passphrase were all identical to the payfast account. Still no go…

    We contacted Payfast support and they said to contact Woocommerce as they are the ones who wrote the plugin.

    Nothing we do solves this issue. If we need to get paid support then we will but we are getting desperate now. Please can someone assist me to solve this issue as it is eluding us completely.

    
    10-11-2018 @ 11:21:17 - 
    ----------
    PayFast ITN call received
    ----------
    10-11-2018 @ 11:21:17 - Get posted data
    10-11-2018 @ 11:21:17 - PayFast Data: Array
    (
        [m_payment_id] => 2975
        [pf_payment_id] => 14450020
        [payment_status] => COMPLETE
        [item_name] => We Wear What - 2975
        [item_description] => New order from We Wear What
        [amount_gross] => 97.50
        [amount_fee] => -2.30
        [amount_net] => 95.20
        [custom_str1] => wc_order_5bbf31d859357
        [custom_str2] => WooCommerce/3.4.5; https://wewearwhat.co.za
        [custom_str3] => 2975
        [custom_str4] => 
        [custom_str5] => 
        [custom_int1] => 
        [custom_int2] => 
        [custom_int3] => 
        [custom_int4] => 
        [custom_int5] => 
        [name_first] => Test
        [name_last] => test
        [email_address] => [email protected]
        [merchant_id] => removed for obvious reasons
        [signature] => 248b455c1de217125ae30dc1cdabade3
    )
    
    10-11-2018 @ 11:21:17 - Verify security signature
    10-11-2018 @ 11:21:17 - Signature = invalid
    10-11-2018 @ 11:21:17 - Error occurred: Security signature mismatch
    10-11-2018 @ 11:21:17 - 
    ----------
    End ITN call
    ----------
    
    
    ### WordPress Environment ###
    
    Home URL: https://wewearwhat.co.za
    Site URL: https://wewearwhat.co.za
    WC Version: 3.4.5
    Log Directory Writable: ?
    WP Version: 4.9.8
    WP Multisite: –
    WP Memory Limit: 368 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.2.10
    PHP Post Max Size: 32 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    cURL Version: 7.60.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 10.1.36-MariaDB
    Max Upload Size: 16 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.4.5
    WC Database Prefix: wp4v_
    MaxMind GeoIP Database: ?
    Total Database Size: 11.73MB
    Database Data Size: 8.75MB
    Database Index Size: 2.98MB
    wp4v_woocommerce_sessions: Data: 0.14MB + Index: 0.01MB
    wp4v_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB
    wp4v_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_order_items: Data: 0.08MB + Index: 0.04MB
    wp4v_woocommerce_order_itemmeta: Data: 0.51MB + Index: 0.38MB
    wp4v_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    wp4v_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB
    wp4v_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    wp4v_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    wp4v_commentmeta: Data: 0.04MB + Index: 0.03MB
    wp4v_comments: Data: 0.53MB + Index: 0.09MB
    wp4v_duplicator_packages: Data: 0.00MB + Index: 0.00MB
    wp4v_links: Data: 0.00MB + Index: 0.00MB
    wp4v_options: Data: 0.71MB + Index: 0.10MB
    wp4v_participants_database: Data: 0.00MB + Index: 0.00MB
    wp4v_participants_database_fields: Data: 0.00MB + Index: 0.00MB
    wp4v_participants_database_groups: Data: 0.00MB + Index: 0.00MB
    wp4v_pmxe_exports: Data: 0.00MB + Index: 0.00MB
    wp4v_pmxe_google_cats: Data: 0.26MB + Index: 0.05MB
    wp4v_pmxe_posts: Data: 0.00MB + Index: 0.00MB
    wp4v_pmxe_templates: Data: 0.00MB + Index: 0.00MB
    wp4v_postmeta: Data: 3.57MB + Index: 1.15MB
    wp4v_posts: Data: 1.76MB + Index: 0.27MB
    wp4v_signups: Data: 0.02MB + Index: 0.01MB
    wp4v_sm_sessions: Data: 0.00MB + Index: 0.00MB
    wp4v_termmeta: Data: 0.00MB + Index: 0.01MB
    wp4v_terms: Data: 0.01MB + Index: 0.03MB
    wp4v_term_relationships: Data: 0.03MB + Index: 0.07MB
    wp4v_term_taxonomy: Data: 0.01MB + Index: 0.01MB
    wp4v_usermeta: Data: 0.98MB + Index: 0.61MB
    wp4v_users: Data: 0.09MB + Index: 0.09MB
    wp4v_wc_download_log: Data: 0.00MB + Index: 0.00MB
    wp4v_wc_webhooks: Data: 0.00MB + Index: 0.00MB
    wp4v_yoast_seo_links: Data: 0.01MB + Index: 0.00MB
    wp4v_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    attachment: 991
    customize_changeset: 5
    mt_pp: 7
    nav_menu_item: 29
    page: 11
    post: 39
    product: 79
    product_variation: 542
    revision: 341
    shop_coupon: 7
    shop_order: 278
    shop_order_refund: 6
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (18) ###
    
    Duplicator: by Snap Creek – 1.2.48
    Export Users to CSV: by Matt Cromwell – 1.1.1
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.2.0
    Login Redirect: by Arefly – 1.0.5
    User Profile Picture: by Ronald Huereca – 1.5.5
    Google Analytics for WordPress: by praveenchauhan1984 – 1.1
    Profile Builder: by Cozmoslabs – 2.9.0
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.0.5
    
    WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 1.1.6
    Vafpress Post Formats UI: by vafpress – 1.5
    Woo Preview Emails: by Digamber Pradhan – 1.4.1
    WooCommerce PayFast Gateway: by WooCommerce – 1.4.10
    WooCommerce: by Automattic – 3.4.5
    Yoast SEO: by Team Yoast – 8.4
    WP All Export: by Soflyy – 1.2.1
    WP Instagram Widget: by Scott Evans – 2.0.3
    WP Mail SMTP: by WPForms – 1.3.3
    WP Remote: by maekit – 2.8.4.1
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: ZAR (R)
    Currency Position: left
    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)
    
    ### WC Pages ###
    
    Shop base: #34 - /shop/
    Cart: #190 - /cart/
    Checkout: #192 - /checkout/
    My account: #194 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Odier Child
    Version: 1.0.0
    Author URL: https://zthemes.net/
    Child Theme: ?
    Parent Theme Name: Odier
    Parent Theme Version: 1.3.4
    Parent Theme Author URL: https://zthemes.net
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BlueSteam

    (@bluesteam)

    Just letting you know that we have resolved the issue. It ended up being a typo in the passphrase. When that darn comma catches you out like a tiger on heat!

    Plugin Support Steve E.a11n

    (@woosteve)

    Automattic Happiness Engineer

    Thanks for the update. I’m glad you were able to find the typo in the passphrase. I’ll go ahead and mark this thread as resolved. Please don’t hesitate to start a new thread if you have any further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Signature Mismatch with Payfast plugin’ is closed to new replies.