Forums / Built-in Shipping and Payment Modules / Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Views: 1,201

Results 1 to 19 of 19
23 Apr 2015, 8:07 PM
#1
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

See module settings

Please note I did not change/touch these settings (nor did I have to) before or after the upgrade. EVERY order comes in with the status set to "Pending". (should be "Processing")

**========================================================

Enable Authorize.net (AIM) Module
True

**Login ID


**Transaction Key


**MD5 Hash


**Transaction Mode
Production

**Authorization Type
Authorize

**Enable Database Storage
True

**Customer Notifications
False

**Merchant Notifications
False

**Request CVV Number
True

**Sort order of display.
5

**Payment Zone
--none--

**Set Completed Order Status
Processing [2]

**Set Refunded Order Status
Pending [1]

**Debug Mode
Off


[TABLE="width: 100%"]

[TABLE="width: 100%"]

[TABLE="width: 100%"]

Payment Modules |

[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 100%"]

Modules |
|
Sort Order |
Orders Status |
Action |

Authorize.net (SIM) |
authorizenet |
|
|
|

Authorize.net (AIM) |
authorizenet_aim |
5 |
** Pending** |
|

Authorize.net - eCheck |
authorizenet_echeck |
|
|
|

Cash on Delivery |
cod |
|
|
|

Free Order |
freecharger |
100 |
Shipped |
|

FirstData/Linkpoint/YourPay API |
linkpoint_api |
|
|
|

Check/Money Order |
moneyorder |
|
|
|

PayPal Payments Standard |
PayPal |
|
|
|

PayPal Payments Pro |
PayPal |
|
|
|

PayPal Express Checkout |
PayPal |
20 |
Processing

[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[/TABLE]

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Apr 2015, 9:16 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Time to ask the DOOOH question,
Did you uninstall and re-install the Mod to set any changes in the new files

Zen cart PCI compliant Hosting

23 Apr 2015, 9:59 PM
#3
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Merlinpa1969:

Time to ask the DOOOH question,
Did you uninstall and re-install the Mod to set any changes in the new files
Not until it was reported that there was an issue.. I then uninstalled and then re-installed the payment module.. No change..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

25 Apr 2015, 12:22 AM
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Sooooo.. hate to bump this post, but I am PLUM out of options to try.. replacing the module with a fresh copy didn't work, neither did uninstalling and re-installing..

What else could be the issue here??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

27 Apr 2015, 12:59 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

For reals folks.. Need help here.. I am OUT OF IDEAS.. EVERY order comes in with the status set to "Pending". (should be "Processing")

Does ANYONE know where I SHOULD look???????

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

27 Apr 2015, 1:07 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

What value is returned when you search for MODULE_PAYMENT_AUTHORIZENET_AIM_ORDER_STATUS_ID using the admin's Tools->Developers Tool Kit (enter that value in the very top search area)?

27 Apr 2015, 1:18 PM
#7
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

What happens if you change the

Authorization Type

From: Authorize

To: Authorize + Capture

That is the only way that I was able to duplicate what you are seeing.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

27 Apr 2015, 1:39 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

RixStix:

What happens if you change the

Authorization Type

From: Authorize

To: Authorize + Capture

That is the only way that I was able to duplicate what you are seeing.

Thank you.. :hug:and doh to me.. :laugh:

Honestly I have SO FEW clients using Authorize.net that I couldn't see it.. (most use PayPal Payflow or PayPal Payments Pro, or PayPal Express) I just KNEW that nothing had changed with this module so I had not touched it in the upgrade.. Was driving me crazy!! So again.. thanks..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Apr 2015, 4:53 PM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

DivaVocals:

Thank you.. :hug:and doh to me.. :laugh:

Honestly I have SO FEW clients using Authorize.net that I couldn't see it.. (most use PayPal Payflow or PayPal Payments Pro, or PayPal Express) I just KNEW that nothing had changed with this module so I had not touched it in the upgrade.. Was driving me crazy!! So again.. thanks..
Okay.. So I'm back now that the client has explained WHY she thought this was broken..

Apparently she wants this configured for "Capture" BUT she wants the order status to be set to "Processing" anyway.. She will then Authorize the order and set the status to Shipped.. Does anyone know what I need to modify to support this workflow??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Apr 2015, 6:09 PM
#10
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

If the store does not have paid "downloadable content", the following should work. If the store does include "downloadable content", one may need to change some additional settings accordingly (after the following code change).

Edit the class constructor in "includes/modules/payment/authorizenet_aim.php" (change is in red):

    // Reset order status to pending if capture pending:
    [B]//[/B]if (MODULE_PAYMENT_AUTHORIZENET_AIM_AUTHORIZATION_TYPE == 'Authorize') $this->order_status = 1;

NOTE: This post by DrByte mentions this line (and the thread includes a brief discussion around this line of code).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

28 Apr 2015, 6:19 PM
#11
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Okay, so going back and re-reading everything.... The last post may not be relevant.... I'm a little confused as to the flow the client wants...

Does the client want Authorize.NET set for Authorize + Capture? (Capture funds immediately and set to Processing, then manually change to Shipped when a tracking number is available)

Or do they want Authorize.NET set to Authorize (No capture of funds and status set to Processing, Change the status to Shipped when they manually Capture)?

Or something different yet?

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

28 Apr 2015, 6:28 PM
#12
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

lhungil:

Okay, so going back and re-reading everything.... The last post may not be relevant.... I'm a little confused as to the flow the client wants...

Does the client want Authorize.NET set for Authorize + Capture? (Capture funds immediately and set to Processing, then manually change to Shipped when a tracking number is available)

Or do they want Authorize.NET set to Authorize (No capture of funds and status set to Processing, Change the status to Shipped when they manually Capture)?

Or something different yet?
Sorry you are right.. it's the SECOND option.. (Authorize.. then manually capture..)

lhungil:

If the store does not have paid "downloadable content", the following should work. If the store does include "downloadable content", one may need to change some additional settings accordingly (after the following code change).

Edit the class constructor in "includes/modules/payment/authorizenet_aim.php" (change is in red):

// Reset order status to pending if capture pending:
[B]//[/B]if (MODULE_PAYMENT_AUTHORIZENET_AIM_AUTHORIZATION_TYPE == 'Authorize') $this->order_status = 1;
> 
> 
> **NOTE:** [This post by DrByte](http://www.zen-cart.com/showthread.php?135336-set-order-status-to-processing-after-capture-%28AIM%29&p=773768#post773768) mentions this line (and the thread includes a brief discussion around this line of code).

I think I can change that line as follows:
// Reset order status to pending if capture pending:
if (MODULE_PAYMENT_AUTHORIZENET_AIM_AUTHORIZATION_TYPE == 'Authorize') $this->order_status = 2;

but the question then becomes what about downloadable products?? I'm sure she wouldn't want them downloaded unless and until the Capture has been completed..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Apr 2015, 7:00 PM
#13
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Just my personal opinion... But, I believe it would be better to comment out that line. Commenting out the line will allow the settings you configure in the Payment Module to be used (instead of manually overridden). This also allows the value to be changed from the Zen Cart admin.

Long term, may be worth updating the module to allow an additional configuration options (status when authorized, but not captured).

DivaVocals:

... But the question then becomes what about downloadable products?? I'm sure she wouldn't want them downloaded unless and until the Capture has been completed..
On stores doing Drop Shipping, I usually run with something similiar to the following:

1 - Pending = Payment not Present. Need to contact customer to arrange payment.
2 - Processing = Payment has been Authorized / Captured. Order is being processed.
3 - Shipped = Shipped (and freight / parcel tracking information added).
4 - Update = Used mostly when there is a problem with a physical order or to reset the download count.
5 - Complete = Order has been completed (shipment received, refund time exceeded, etc).
6 - Cancelled = Order was cancelled.

You can then adjust the Zen Cart settings for downloads in "admin" -> "configuration" -> "downloads":
Downloads Controller Order Status Value >= lower value = 3
Downloads Controller Order Status Value <= upper value = 5

If using another payment module which DOES capture immediately... You may need to adjust the payment module to set the status to Complete (or Shipped) in order to allow immediate downloads... Otherwise all downloads will be blocked until the store owner changes the order status.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

28 Apr 2015, 7:23 PM
#14
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

One small footnote about order status is that when Authorize.net returns response code 4 older versions of Authorize.net will cause orders not to fully complete and create duplicate order numbers.

For that fix see here:
https://github.com/zencart/zencart/pull/236/files

28 Apr 2015, 7:41 PM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

Thanks Larry and Andrew.. Gonna mull this all over over a BIG glass of Merlot tonight, and make the changes needed accordingly.. :smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Apr 2015, 7:43 PM
#16
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

DivaVocals:

Apparently she wants this configured for "Capture" BUT she wants the order status to be set to "Processing" anyway.. She will then Authorize the order and set the status to Shipped.

Can't help with the workflow dilemma other than

Terminology is a bit bassackwards.

Authorize: does that, check the card for validity and puts the customer funds on hold.
Capture: puts the funds into the merchant account

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

28 Apr 2015, 8:13 PM
#17
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

RixStix:

Can't help with the workflow dilemma other than

Terminology is a bit bassackwards.

Authorize: does that, check the card for validity and puts the customer funds on hold.
Capture: puts the funds into the merchant account
You are right.. and it's a total "my bad" on my part here.. I think we already settled the typo I made on this score a little earlier.. :smile: (see Andrew's post end of page 1 of this thread, and my subsequent response..)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

2 May 2015, 12:43 AM
#18
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

lhungil:

You can then adjust the Zen Cart settings for downloads in "admin" -> "configuration" -> "downloads":
Downloads Controller Order Status Value >= lower value = 3
Downloads Controller Order Status Value <= upper value = 5

Not seeing this admin option.. a little guidance por favor..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

2 May 2015, 1:35 AM
#19
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Authorize.net (AIM) not setting correct order status (started post v1.5.4 upgrade)

My bad, it is under "Attribute Settings".

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker