9 replies [Last post]
jblank's picture
Offline
Joined: 08/25/2008
Juice: 56
Was this information Helpful?

We have our store set up to Auth Only and then we capture when the product ships.

On test orders with a real credit card this works fine. We get a successful auth message and then go in to process the payment and use the capture form to capture the previously authorized payment.

However we have an order now that won't capture. It is giving me this error in the recent log entries:

Could not figure out cc type: 0364 /

This is strange since the authorization was successful.

Any help would be much appreciated.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: PayPal Error on Capture

Interesting... I'm not sure how it's working even in test mode. It's truncating the CC number during authorization and then forces it to try and determine the card number again when capturing. By then, if you haven't enabled the card type fieldset, it'll try to determine the card type from the truncated number... so I guess if the last 4 digits of your card started with a 3, 4, 5, or 6 it would've worked.

So... I think this is a bug, but I'll have to duplicate it on the Livetest to be sure. I'm gonna bookmark this post for review. Thanks for posting!

jblank's picture
Offline
Joined: 08/25/2008
Juice: 56
Re: Re: PayPal Error on Capture

Well that explains why it worked when I ran my card through as the last 4 starts with a 6!

Any work arounds in the mean time? Should I enable the card type?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: PayPal Error on Capture

Sure, enabling the card type is a quick fix. I'll have the file patched for the 2.0-RC1.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: PayPal Error on Capture

In fact, here's the patch to test... I'm testing it on the Livetest right now.

AttachmentSize
uc_paypal_card_type.patch 4.04 KB
jblank's picture
Offline
Joined: 08/25/2008
Juice: 56
Re: Re: Re: Re: Re: PayPal Error on Capture

Thanks Ryan. I am running Drupal 5 and UC 1.x will this patch work on this or just 2.x?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Re: Re: PayPal Error on Capture

You'll probably just need to manually apply the changes for 1.x.

ongdesign's picture
Offline
Joined: 02/23/2009
Juice: 39
Can you please clarify a bit?

I have the same issue, also running 1.x. I was unable to apply the patch. Can you explain how to manually apply those changes, or roll up another diff that will work with 1.x? Thanks a lot!

jblank's picture
Offline
Joined: 08/25/2008
Juice: 56
Re: Can you please clarify a bit?

I ended up just turning on credit card type on checkout. It is not ideal as it adds one more thing to the form but it did solve the problem.

ongdesign's picture
Offline
Joined: 02/23/2009
Juice: 39
Re: Re: Can you please clarify a bit?

Yes, same here. I actually don't have a problem with it from a usability standpoint, as I think users expect to have to provide a credit card type. It just like how we don't actually need a user to fill in their state if we have their Zip code, but it seems so weird not to ask it, that we just do anyway.