• customfitknits

    (@customfitknits)


    For almost a year, I’ve been having issues where when a Customer cancels their subscription, the API errors saying it has a security error. It’s only happening on cancellations.

    This is causing a major support burden and bad feelings from customers.

    This is an example log:

    2024-04-21T15:09:11+00:00 Info Subscription Request Parameters: Array
    (
        [method] => POST
        [uri] => https://api-3t.paypal.com/nvp
        [user-agent] => WooCommerce-Subscriptions-PayPal/7.0.0 (WooCommerce/8.8.2; WordPress/6.4.3)
        [headers] => Array
            (
            )
    
        [body] => Array
    (
        [USER] => ************************************
        [PWD] => ****************
        [SIGNATURE] => ********************************************************
        [VERSION] => 124
        [METHOD] => ManageRecurringPaymentsProfileStatus
        [PROFILEID] => <redacted for posting>
        [ACTION] => Suspend
        [NOTE] => Suspend subscription event triggered at Amy Herzog Designs
    )
    
        [duration] => 0.33529s
    )
    2024-04-21T15:09:11+00:00 Info Subscription Request Response: Array
    (
        [code] => 200
        [message] => OK
        [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [content-type] => text/plain
                        [content-length] => 224
                        [date] => Sun, 21 Apr 2024 15:09:10 GMT
                        [cache-control] => max-age=0, no-cache, no-store, must-revalidate
                        [paypal-debug-id] => 5f7806752152d
                        [traceparent] => 00-00000000000000000005f7806752152d-a87264ab16b755fc-01
                        [vary] => Accept-Encoding
                        [x-paypal-operation-name] => ManageRecurringPaymentsProfileStatus
                        [strict-transport-security] => max-age=31536000; includeSubDomains
                    )
    
            )
    
        [body] => Array
    (
        [TIMESTAMP] => 2024-04-21T08:09:10Z
        [CORRELATIONID] => 5f7806752152d
        [ACK] => Failure
        [VERSION] => 124
        [BUILD] => 0
        [L_ERRORCODE0] => 10002
        [L_SHORTMESSAGE0] => Security error
        [L_LONGMESSAGE0] => Security header is not valid
        [L_SEVERITYCODE0] => Error
    )
    

    Versions:


    WooCommerce Version 8.8.2
    WooCommerce PayPal Payments Version 2.6.1
    Woo Subscriptions Version 6.2.0

Viewing 1 replies (of 1 total)
  • Plugin Support Krystian

    (@inpsydekrystian)

    Hello @customfitknits

    This log does not come from PayPal Payments though. It seems you are using a different plugin, as the endpoint https://api-3t.paypal.com/nvp belongs to the NVP/SOAP API, whereas our PayPal Payments plugin utilizes PayPal’s JavaScript SDK and REST API.

    Additionally, the “Security header is not valid” error likely indicates an issue with a different plugin. I’ve seen it around with PayPal Standard, PayPal Pro, and PayPal Checkout Payment Gateway.

    If its related to PayPal Payments, we can digg into logs. Please note that these log files are only generated if “Logging” is activated in your plugin settings.

    You can enable this feature from the “Connection” tab in your plugin settings. Once “Logging” is enabled, every transaction will generate a log entry. It’s important to understand that if “Logging” wasn’t enabled before, there will be no previous records of the transactions.

    In that situation, we’ll need to wait for upcoming failed orders to generate new log entries. You can retrieve these logs from the path:

    Access the WooCommerce > Status > Logs section, and proceed to choose the most recent “woocommerce-paypal-payments” file associated with the date of the failed order.

    Please provide those log entries on our PrivateBin. After uploading, send us the link, so we can review them in detail.

    Looking forward to your response.

    Kind regards,
    Krystian

Viewing 1 replies (of 1 total)
  • The topic ‘Errors when subscriptions cancel’ is closed to new replies.