Getting spree to work with Gateways without delivery options

18 views
Skip to first unread message

Abe

unread,
Feb 10, 2012, 6:27:25 PM2/10/12
to Spree
Hi All,

Just thought I'd post on here as I'm having a hard time getting things
up and running.

I've successfully got the app working on heroku, customized the layout
and the checkout process.

I've skipped the delivery step and disabled validation on the shipping
id.

The problem now is I cannot for the life of me get the paypal gateway
working. I've even tried to use the Bogus gateway but all I get is:

"Payment could not be processed, please check the details you entered"

Surely the bogus gateway lets everything through? Have I missed
something in the validation check on the checkout state process? Here
is what I changed:

Commented out this on line 32:
#validate :has_available_shipment

changed the next cycle to:

event :next do
transition :from => 'cart', :to => 'address'
transition :from => 'address', :to => 'payment', :if
=> :payment_required?
transition :from => 'address', :to => 'complete'
transition :from => 'confirm', :to => 'complete'

and commented out these two lines:

#after_transition :to => 'delivery', :do => :create_tax_charge!
#after_transition :to => 'payment', :do => :create_shipment!

Can anyone help me get this working, I'm quite willing to pay $100
dollars to just get the damn thing through an order
Reply all
Reply to author
Forward
0 new messages