• Resolved Chadwickhugh

    (@chadwickhugh)


    I’ve tried changing the order status to a custom one “Received” as well as “On Hold” but all the new orders are just being set to “Processing”

    I have transaction type set to “authorize” so that I can manually review orders before capturing the payment. I use the order status to see what needs to be reviewed.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @chadwickhugh,

    In the current version of the Release Candidate, the order status option is set when the WC_Order::payment_complete() method is called. That method is only called if the plugin’s charge type is set to capture.

    Here is the exact line of code where processing is being passed to the order status.

    https://docs.paymentplugins.com/wc-braintree/api/source-class-WC_Braintree_Payment_Gateway.html#483

    You can use the plugin’s filter to update your own status. I’ll take a look at setting the plugin’s order status option at this point as well when we release the 3.0.0 version.

    Kind Regards,

    Thread Starter Chadwickhugh

    (@chadwickhugh)

    I’m not quite understanding you. There’s an option under the payment types for what order status to set once payment is complete. I’ve tried “On Hold” as well as a custom order type “Received” and neither work. It always sets to processing. This is with the Transaction set to “authorize”

    Plugin Author Payment Plugins

    (@mrclayton)

    @chadwickhugh,

    In the current version of the Release Candidate, the Order Status option only has relevancy when you have the Charge Type option set to capture.

    If you the Charge Type option is set to Authorize then the plugin sets the order status to processing.

    The link I provided you shows you the exact line of code where this is happening. You can use the plugin’s filter to alter the status to whatever you want. I will look in to using the Order Status option when the Capture Type is Authorize in a future update.

    Thanks,

    Plugin Author Payment Plugins

    (@mrclayton)

    @chadwickhugh,

    Just updated the Release Candidate so that order status is used for captured and authorized orders.

    https://support.paymentplugins.com/hc/en-us/articles/360026512014-3-0-0-Release-Candidate

    You can just re-download the RC and the updates will be there.

    Thread Starter Chadwickhugh

    (@chadwickhugh)

    The filters seem to be above my skill level. I can’t even find what file that link is referring to in the edit plugins.

    As a feature recommendation I’d have options for what order status for authorized orders, as well as captured order.

    Our work flow is Received->(capture payment if legit)->Processing->Completed (our shipping site automatically sets orders to complete).

    Plugin Author Payment Plugins

    (@mrclayton)

    @chadwickhugh,

    Please reference my last reply.

    Thanks,

    Thread Starter Chadwickhugh

    (@chadwickhugh)

    Awesome. You move too fast for me.

    Thread Starter Chadwickhugh

    (@chadwickhugh)

    So I just got some new orders and it still marked them as processing.

    Plugin Author Payment Plugins

    (@mrclayton)

    @chadwickhugh,

    You’re gonna have to provide more detail than that.

    1. Did you deactivate, delete, then re-install the plugin, making sure to download the latest version from the link I provided?

    2. What payment method did the orders come through? CC, PayPal, Google Pay, Apple Pay? The order status is specific to each gateway so if you want it to be the same for each gateway you need to maintain it.

    Here is the link to the exact line of code:

    https://docs.paymentplugins.com/wc-braintree/api/source-class-WC_Braintree_Payment_Gateway.html#493

    As you can see, the order status is set on authorized orders based on the order status setting. I personally tested this code and it worked perfectly for me, using a number of different order statuses.

    Thanks,

    Thread Starter Chadwickhugh

    (@chadwickhugh)

    Looks like it was an issue on my end. Cleared cache, rechecked and it worked

    Thanks for the assistance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Order Status Not Changing’ is closed to new replies.