Support » Plugin: Braintree For WooCommerce » Order status stuck at ‘Processing’

  • Resolved M.Sc. Denis Golovin

    (@denis_golovin)


    Hi, we set up the plugin and processed our first orders. However, the order status is stuck at ‘processing’ in the WooCommerce view. I looked up the order in Braintree and it is already sattled (since a few days). So I thought that I missconfigured the webhook setting, but it is correctly configured. In fact Braintree For WooCommerce receives the webhooks. Here is an exempt from the log:

    INFO Subscription 0 not found in your database.
    2019-11-07T06:14:33+00:00 INFO Processing payment for order 1422. Transaction args: Array
    (
        [amount] => xxx
        [taxAmount] => 0
        [shippingAmount] => 0.00
        [discountAmount] => 0
        [customer] => Array
            (
                [firstName] => xxx
                [lastName] => xxx
                [phone] => 
                [email] => xxx
                [company] => 
            )
    
        [orderId] => 1422
        [billing] => Array
            (
                [firstName] => xxx
                [lastName] => xxx
                [locality] => xxx
                [postalCode] => xxx
                [region] => xxx
                [streetAddress] => xxx
                [extendedAddress] => 
                [countryCodeAlpha2] => US
            )
    
        [shipping] => Array
            (
            )
    
        [merchantAccountId] => xxx
        [channel] => PaymentPlugins_BT
        [options] => Array
            (
                [submitForSettlement] => 1
                [storeInVaultOnSuccess] => 
            )
    
        [descriptor] => Array
            (
            )
    
        [deviceData] => 
        [lineItems] => Array
            (
                [0] => Array
                    (
                        [description] => xxx
                        [kind] => debit
                        [name] => xxx
                        [productCode] => 1289
                        [quantity] => 1
                        [totalAmount] => xxx
                        [unitAmount] => xxx
                        [taxAmount] => 0
                    )
    
            )
    
        [customerId] => xxx
        [paymentMethodNonce] => xxx
        [creditCard] => Array
            (
                [cardholderName] => xxx
            )
    
    )
    
    2019-11-07T10:11:56+00:00 INFO Webhook received. Kind: subscription_charged_successfully.
    2019-11-07T10:11:56+00:00 INFO Subscription 0 not found in your database.

    I do not understand why the webhook type should be subscription_charged_successfully? We are not using subscriptions in our shop.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mr.clayton

    (@mrclayton)

    Hi @denis_golovin,

    You only need to configure the subscription webhook if you are using our plug-in’s subscription functionality.

    As for the orders status being set to processing. If you look at our plug-ins order status option you will see a very detailed write up about why statuses are set the way they are. This is not a bug in our plug-in, it’s because of how woocommerce works.

    By default products that require shipping are set to processing where as virtual and downloadable products are set to complete. You can control that using our plug-ins order status option at the gateway level.

    Unfortunately Braintree does not offer a Webhook for when transaction statuses change to settled.

    Kind regards

    • This reply was modified 1 year, 7 months ago by mr.clayton.
    Thread Starter M.Sc. Denis Golovin

    (@denis_golovin)

    Hi @mrclayton thank you for your fast reply! We just noticed that the subscription stuff is completely unrelated to this issue. It appears in the log, because we have a different instance which processes subscriptions (so this one also receives the events via the webhook, without having the context to handle them).

    It is also good to know that the plugin automatically sets the order status based on the product type (shippable, virtual, downloadable). Thank you for that information! I think this explains the situation for now. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order status stuck at ‘Processing’’ is closed to new replies.