Zen Cart Logo
Forums / General Questions / An occasional missing capture payment ability

An occasional missing capture payment ability

Views: 1,297

Results 1 to 5 of 5
24 Aug 2016, 6:40 PM
#1
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

An occasional missing capture payment ability

We usually get this, completed orders with buttons to
capture, capture portions, to cancel, or to refund orders:

Attachment 16605

but every now and then we get this, where we're missing
almost everything including the ability to capture:

Attachment 16606

I did do a search of the forums, but found nothing. I'm
totally lost. I have no idea where to start on this one.

Any help is appreciated.

Dr Doug

25 Aug 2016, 4:56 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: An occasional missing capture payment ability

When no data is shown in the dark-grey table it means there was no data retrieved from the payment gateway for that transaction.

Looks like you're using PayPal Pro, so I'll comment based on that assumption.

Possible causes:
a) if it happens "all the time" then it's because you've changed your PayPal credentials and the transaction IDs aren't available to the new PayPal account ID.
b) if it happens "occasionally, but no pattern", maybe it's a communication failure when attempting to retrieve the data. Consult the logs folder if it happens regularly.
c) if it "always happens to just this order", then it could be that the status of that order has been upgraded on PayPal's end in a way that the original transaction ID can't be used to "look up" the payment details. I've seen this happen sometimes on sites that do "pre-auth" of payments, and then later "capture" them in an unusual way (can't recall what way). Also, if PayPal has made a change to that sale on their end it might be affecting the ability to lookup using original Txn ID.

Usually the PayPal log files will reveal more info, if you've got logging enabled.

Several years ago I recall doing some fixes to accommodate some quirks in this stuff. But that was a long time ago. You can always find the fixes in the latest version of Zen Cart code. So at the very least maybe consider comparing your v1.5.1 PayPal files against the v1.5.4 files (or v1.5.5 if you don't mind the massive number of improvements and modernizations added in the v155 version of the module).

25 Aug 2016, 6:22 PM
#3
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Re: An occasional missing capture payment ability

DrByte:

Possible causes:

<snip>

Usually the PayPal log files will reveal more info, if you've got logging enabled.

<snip>

Thank you!

Gateways, ACH, PayPal, logs, CURL, capturing,
etc..., it's all so foreign. How do I get myself to
an expert-enough level to know what all the parts
are of everything I need to be considering?

My mind's reeling. Don't hold my hand, but point
me to FAQs, etc., please.

DrDoug

26 Aug 2016, 12:46 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: An occasional missing capture payment ability

Turning on logging: Debug Logging - PayPal

Then trigger the problem, and look into the logs directory on the server, and find out what the errors are that were recorded when the problem occurred.

26 Aug 2016, 3:36 AM
#5
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Re: An occasional missing capture payment ability

Thank you. PayPal logging enabled.

Possibly related, I found a sha1 code change that had been generating
a dozen or more log entries on occasion. The code change from, IIRC,

/includes/something-or-other.php

to

SETUP_ID . SETUP_DIR . something-or-other.php

may play into some of these timing issues. We'll see. Time will tell.

Cue waiting... :sleep:

Unrelated, how to I force the column width of these columns, here, to
something narrower? IMHO, it reads much nicer when it's not spanning
the whole page. YMMV.