[Skip to main content](#vessel-content)

#   TaxCloud API Call on "Confirmed" not Trigged

##

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

10 years 11 months ago [\#225025](#225025) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[TaxCloud API Call on "Confirmed" not Trigged](/forum/40-taxes/881261-taxcloud-api-call-on-confirmed-not-trigged#225025 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.6.13 -- Browser(s) name and version -- : any  What I've found is if your payment method sets an order status to &quot;confirmed&quot; (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.  Even if I switch the status to &quot;shipped&quot; it won't make the API calls.  However if you set the status back to &quot;created&quot; and then set it to &quot;confirmed&quot; it will trigger the API calls to TaxCloud correctly.  I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to &quot;instant capture&quot; payment. Another person I know I believe is happening with PayPal too.  I've never noticed it before as I've never had this exact setup needed until now.  I suppose a work around for now is to set the Verified Status to go to &quot;created&quot;. Then the site owner/manger would have to switch to &quot;confirmed&quot; to trigger the API call. I think that might cause other confusion with various email and other things that trigger.  Or just do as I described above per order (which is going to get old quickly).  I'm thinking bug and not a design choice.")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.7
-- PHP version -- : 5.6.13
-- Browser(s) name and version -- : any

What I've found is if your payment method sets an order status to "confirmed" (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.

Even if I switch the status to "shipped" it won't make the API calls.

However if you set the status back to "created" and then set it to "confirmed" it will trigger the API calls to TaxCloud correctly.

I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to "instant capture" payment. Another person I know I believe is happening with PayPal too.

I've never noticed it before as I've never had this exact setup needed until now.

I suppose a work around for now is to set the Verified Status to go to "created".
Then the site owner/manger would have to switch to "confirmed" to trigger the API call.
I think that might cause other confusion with various email and other things that trigger.

Or just do as I described above per order (which is going to get old quickly).

I'm thinking bug and not a design choice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4MTI2MS10YXhjbG91ZC1hcGktY2FsbC1vbi1jb25maXJtZWQtbm90LXRyaWdnZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 11 months ago [\#225030](#225030) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[TaxCloud API Call on "Confirmed" not Trigged](/forum/40-taxes/881261-taxcloud-api-call-on-confirmed-not-trigged#225030 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.6.13 -- Browser(s) name and version -- : any  What I've found is if your payment method sets an order status to &quot;confirmed&quot; (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.  Even if I switch the status to &quot;shipped&quot; it won't make the API calls.  However if you set the status back to &quot;created&quot; and then set it to &quot;confirmed&quot; it will trigger the API calls to TaxCloud correctly.  I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to &quot;instant capture&quot; payment. Another person I know I believe is happening with PayPal too.  I've never noticed it before as I've never had this exact setup needed until now.  I suppose a work around for now is to set the Verified Status to go to &quot;created&quot;. Then the site owner/manger would have to switch to &quot;confirmed&quot; to trigger the API call. I think that might cause other confusion with various email and other things that trigger.  Or just do as I described above per order (which is going to get old quickly).  I'm thinking bug and not a design choice.")*

Hi,

Thank you for your feedback.
I don't think that the problem is with the instant capture setting, but that it is with the API mode you're using.
If you're using the AIM mode, then the order is directly confirmed at the creation of the order and thus the order status isn't changed to confirmed as an update but directly set at the creation of the order.
And looking at the code of the TaxCloud plugin, that's indeed not taken into account.
But I can't see how this could happen with the PayPal plugin since it cannot create orders already confirmed at the creation. So I suppose that this is not related.

To fix that, try adding the code: Code:

//for newly CONFIRMED ORDERS, call to AuthorizedWithCaptured if(!empty($order-&gt;order_status)){ //getting the confirmed/cancelled statuses $config =&amp; hikashop_config(); $confirmed_statuses = explode(',', trim($config-&gt;get('invoice_order_statuses','confirmed,shipped'), ',')); if(empty($confirmed_statuses)) $confirmed_statuses = array('confirmed','shipped'); if(in_array($order-&gt;order_status,$confirmed_statuses) &amp;&amp; !in_array($order-&gt;old-&gt;order_status,$confirmed_statuses)){//if the actual status is confirmed and the old status wasn't confirmed $this-&gt;AuthorizedWithCaptured($order); return; } }

after the code: Code:

$this-&gt;lookupAfterOrderCreate($order);

in the file plugins/hikashop/taxcloud/taxcloud.php

The following user(s) said Thank You: [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4MTI2MS10YXhjbG91ZC1hcGktY2FsbC1vbi1jb25maXJtZWQtbm90LXRyaWdnZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

10 years 11 months ago [\#225063](#225063) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[TaxCloud API Call on "Confirmed" not Trigged](/forum/40-taxes/881261-taxcloud-api-call-on-confirmed-not-trigged#225063 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.6.13 -- Browser(s) name and version -- : any  What I've found is if your payment method sets an order status to &quot;confirmed&quot; (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.  Even if I switch the status to &quot;shipped&quot; it won't make the API calls.  However if you set the status back to &quot;created&quot; and then set it to &quot;confirmed&quot; it will trigger the API calls to TaxCloud correctly.  I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to &quot;instant capture&quot; payment. Another person I know I believe is happening with PayPal too.  I've never noticed it before as I've never had this exact setup needed until now.  I suppose a work around for now is to set the Verified Status to go to &quot;created&quot;. Then the site owner/manger would have to switch to &quot;confirmed&quot; to trigger the API call. I think that might cause other confusion with various email and other things that trigger.  Or just do as I described above per order (which is going to get old quickly).  I'm thinking bug and not a design choice.")*

I believe if you set the pending state to be "confirmed" vs. "created" with any payment method. it will cause this.

That is what my friend was seeing with PayPal and what lead me to look into this.
She tried my trick of switching status after an order from "confirmed" to "created" then back to "confirmed" (which worked).

Obviously not the default configuration, but I've done that on at least one other site (but it doesn't use/need TaxCloud).

I'll try this out on my test install first and let you know if I have any problems still.

Thanks again and don't work on holiday!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4MTI2MS10YXhjbG91ZC1hcGktY2FsbC1vbi1jb25maXJtZWQtbm90LXRyaWdnZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

10 years 10 months ago [\#225268](#225268) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[TaxCloud API Call on "Confirmed" not Trigged](/forum/40-taxes/881261-taxcloud-api-call-on-confirmed-not-trigged#225268 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.6.13 -- Browser(s) name and version -- : any  What I've found is if your payment method sets an order status to &quot;confirmed&quot; (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.  Even if I switch the status to &quot;shipped&quot; it won't make the API calls.  However if you set the status back to &quot;created&quot; and then set it to &quot;confirmed&quot; it will trigger the API calls to TaxCloud correctly.  I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to &quot;instant capture&quot; payment. Another person I know I believe is happening with PayPal too.  I've never noticed it before as I've never had this exact setup needed until now.  I suppose a work around for now is to set the Verified Status to go to &quot;created&quot;. Then the site owner/manger would have to switch to &quot;confirmed&quot; to trigger the API call. I think that might cause other confusion with various email and other things that trigger.  Or just do as I described above per order (which is going to get old quickly).  I'm thinking bug and not a design choice.")*

This patch works at least with Authorize.net as the payment method.

I didn't try it with any other payment method but I did test it with UPS shipping and Manual Shipping.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4MTI2MS10YXhjbG91ZC1hcGktY2FsbC1vbi1jb25maXJtZWQtbm90LXRyaWdnZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 10 months ago [\#225311](#225311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[TaxCloud API Call on "Confirmed" not Trigged](/forum/40-taxes/881261-taxcloud-api-call-on-confirmed-not-trigged#225311 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.6.13 -- Browser(s) name and version -- : any  What I've found is if your payment method sets an order status to &quot;confirmed&quot; (by-passing created) then it will not trigger the API calls to TaxCloud to confirm an order.  Even if I switch the status to &quot;shipped&quot; it won't make the API calls.  However if you set the status back to &quot;created&quot; and then set it to &quot;confirmed&quot; it will trigger the API calls to TaxCloud correctly.  I've tested this with a few payment methods but the key one of note I've found was Authorize.net when it is set to &quot;instant capture&quot; payment. Another person I know I believe is happening with PayPal too.  I've never noticed it before as I've never had this exact setup needed until now.  I suppose a work around for now is to set the Verified Status to go to &quot;created&quot;. Then the site owner/manger would have to switch to &quot;confirmed&quot; to trigger the API call. I think that might cause other confusion with various email and other things that trigger.  Or just do as I described above per order (which is going to get old quickly).  I'm thinking bug and not a design choice.")*

Thank you for your feedback. We'll add that patch for next release of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4MTI2MS10YXhjbG91ZC1hcGktY2FsbC1vbi1jb25maXJtZWQtbm90LXRyaWdnZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
