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,
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”
@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,
-
This reply was modified 6 years, 10 months ago by
Clayton R.
@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.
-
This reply was modified 6 years, 10 months ago by
Clayton R.
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).
@chadwickhugh,
Please reference my last reply.
Thanks,
Awesome. You move too fast for me.
So I just got some new orders and it still marked them as processing.
@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,
Looks like it was an issue on my end. Cleared cache, rechecked and it worked
Thanks for the assistance!