Strange payment type and error message

3 views
Skip to first unread message

Jeffrey J. Early

unread,
Feb 27, 2010, 2:06:10 PM2/27/10
to potion...@googlegroups.com
I have a user trying to make a purchase and he's getting "500 Server Errors". When I look at the log I find the following (last bit) of stack trace:

NoMethodError (undefined method `create_checkout_command' for nil:NilClass):
/app/models/order.rb:469:in `send_to_google_checkout'    /app/controllers/store/order_controller.rb:192:in `purchase'
/vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'

I do *not* have it setup to for google checkout. It appears to be getting there from the source code by failing the if statement in order_controller.rb lines 187-192

if @order.cc_order?
      success = @order.paypal_directcharge(request)
      finish_order(success)
    else
      # Google Checkout order
      redirect_url = @order.send_to_google_checkout(url_for(:action => 'index'))

Perhaps more interestingly, in the preceding parameter dump it shows the payment_type to be "visaelectron." (I suppose this is why its failing the if statement). I have no idea where that is coming from. I can't find it in the potion store source, and grepping our log file he's the only user to have that payment_type.

Other credit card and Paypal purchases seem to be going through normally.

Any ideas on what's causing this error message? How is getting 'visaelectron' in there?

Jeffrey

Andy Kim

unread,
Mar 3, 2010, 8:09:15 PM3/3/10
to potion...@googlegroups.com
Hmm… That's odd. I can't see how that's happening either. If it happens again, though, let us know.

- Andy Kim


--
You received this message because you are subscribed to the Google Groups "Potion Store Discussions" group.
To post to this group, send email to potion...@googlegroups.com.
To unsubscribe from this group, send email to potion-store...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/potion-store?hl=en.

Jeffrey J. Early

unread,
Mar 3, 2010, 8:32:23 PM3/3/10
to potion...@googlegroups.com
Andy, I do have a partial answer I that I haven't investigated further yet. Apparently the user was using 1Password to autofill the page when this occurred. Ultimately he just had to manually fill it out.

Somehow 1Password is filling out this variable?

Michael Zornek

unread,
Mar 3, 2010, 9:10:57 PM3/3/10
to potion...@googlegroups.com
On 3/3/10 8:32 PM, "Jeffrey J. Early" <jef...@earlyinnovations.com> wrote:

> Andy, I do have a partial answer I that I haven't investigated further yet.
> Apparently the user was using 1Password to autofill the page when this
> occurred. Ultimately he just had to manually fill it out.
>
> Somehow 1Password is filling out this variable?

I could see how that might happen. In all honesty web software needs to be
prepared for any and all fields returning strange bizarre values. There are
plenty of add-ons for Firefox that will let you do just that.

Interesting.

~ Mike
--
Michael Zornek
Clickable Bliss
http://clickablebliss.com/

Reply all
Reply to author
Forward
0 new messages