rubyonrailsin

A Ruby and Rails talk

Thursday, April 1, 2010


[spree-user] Re: Sagepay (protx) error when trying to use undefined method `authorize'

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hi Paul
I get the above error even with your patch installed
regards
Martin

On Apr 1, 6:32 pm, Paul Callaghan <p...@railsdog.com> wrote:
> Yes: a piece of code needed for AM's SagePay module got removed a while back
> (not by me). I fixed edge yesterday. See change
> 161dcffeb41f27aa10aba0bd63f5e6075d63ac05 (which you can monkey-patch into
> the CC model if you are using a gem)
>
> Paul
>
> On Thu, Apr 1, 2010 at 3:39 PM, lostcaggy <mar...@domeweb.co.uk> wrote:
> > Processing CheckoutsController#update (for 87.127.65.182 at 2010-03-31
> > 19:33:59) [PUT]
> >  Parameters:
> > {"payment_source"=>{"842616225"=>{"number"=>"[FILTERED]",
> > "month"=>"3", "year"=>"2010", "last_name"=>"name",
> > "verification_value"=>"[FILTERED]", "first_name"=>"Mar$
>
> > ArgumentError (The credit card type must be provided):
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:207:in `map_card_type'
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:197:in `add_credit_card'
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:82:in `authorize'
> >  vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb:10:in
> > `authorize'
> >  app/models/creditcard.rb:18:in `process!'
> >  app/models/payment.rb:32:in `process!'
> >  /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
> > will_paginate/finder.rb:168:in `method_missing'
> >  /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
> > will_paginate/finder.rb:168:in `method_missing'
> >  app/models/checkout.rb:117:in `process_payment'
>
> > On Mar 31, 9:29 pm, Paul Callaghan <p...@railsdog.com> wrote:
> > > can you paste in the first 20 lines of the backtrace?
>
> > > Paul
>
> > > On Wed, Mar 31, 2010 at 5:26 PM, lostcaggy <mar...@domeweb.co.uk> wrote:
> > > > get error message when trying to make a purchase
> > > > undefined method `authorize'
>
> > > > can someone give me an idea of what I need to do to fix it
> > > > Thanks
> > > > Martin
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Spree" group.
> > > > To post to this group, send email to spree-user@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > spree-user+unsubscribe@googlegroups.com<spree-user%2Bunsubscribe@googlegroups.com>
> > <spree-user%2Bunsubscribe@googlegroups.com<spree-user%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/spree-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Spree" group.
> > To post to this group, send email to spree-user@googlegroups.com.
> > To unsubscribe from this group, send email to
> > spree-user+unsubscribe@googlegroups.com<spree-user%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/spree-user?hl=en.
>
>

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

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive