Hi guys,
My Ubercart deployment (v5.x-1.6) is rejecting credit card numbers with spaces in them. Based on my reading of the code in uc_credit:uc_payment_method_credit() and uc_credit:_valid_card_number(), this is how it's supposed to be (though I find that a bit surprising). What is unusual is that drupal is completing the transaction anyway, and then on the thank you / confirmation page, showing an 'Invalid credit card number' warning. I have verified that the payment has actually gone through.
My questions are
1) Is this expected behavior? The internets, #drupal-ubercart, and ubercart.org don't seem to turn up a lot of people complaining about the rejection of cards with spaces in them.
2) Is anyone else experiencing this same behavior? Flagging the card as invalid then processing anyway seems like a bug to me. Is this just me, or is this standard behavior?
I might add I'm also running the uc_donations module here, and have pushed the cart review page straight to the product node, to skip a step on making this donation. Still, the billing and CC info page seems to be in a good state, so I don't think that's causing problems here.
Help? Thoughts? Thanks!


) - it just occurred to me that as well as the above, I'm using uc_optional_checkout_review to immediately process the payment, so the workflow looks like this: