rubyonrailsin

A Ruby and Rails talk

Monday, March 29, 2010


Re: [spree-user] Re: Paypal Express 500 internal server error

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

So I've merged Peter's fix [1] which solves the error when PayPal is the only defined Payment Method.


The next problem is forcing some kind of validation / disabling the "Save and Continue" button when PPE payment method is selected.


[1] http://github.com/railsdog/spree/commit/f6f34e544ffd0be05624185711054f25f3245b72

On 27 March 2010 13:39, Sean Schofield <sean@railsdog.com> wrote:
Well that definitely sounds like a bug to me.  Should probably ticket
that - patches welcome.

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------



On Sat, Mar 27, 2010 at 7:15 AM, Peter Berkenbosch
<peterberkenbosch@me.com> wrote:
> I have an error saying:
> undefined method `payment_profiles_supported?' for nil:NilClass
> When I only use PaymentMethod::Check and PayPal.
> It seems that Gateway is not available???
> When I add a bogus Gateway it works, but that I only need check, paypal
> ----
> Peter Berkenbosch
> peterberkenbosch@me.com
> peterberkenbosch.wordpress.com
> What's not possible has never happend
>
>
> On Mar 27, 2010, at 8:09 AM, Chris wrote:
>
> I've actually never looked at the code.  I just installed it because I
> knew I'd need it in the future and Sean was asking if anyone else was
> seeing the problem.  I figured I better check while they were actively
> working on it.
>
> Brian or Sean would have a much better idea of what was going on than
> I would at this point.
>
> A quick browse of the code shows that there is a PaypalExpressGateway
> and a PaypalExpressUkGateway class.  The UK version sets the default
> currency to GBP and the supported countries to "GB".  Wondering if you
> need something like that for New Zealand?
>
> Just a thought.
>
> -Chris
>
>
> On Sat, Mar 27, 2010 at 3:54 PM, Cameron <czcar123@gmail.com> wrote:
>
> Hi Chris,
>
> Thanks for the email, downloaded your install set it up and same
>
> problem,
>
>
> ActiveMerchant::ResponseError (Failed with 500 Internal Server Error):
>
>  activemerchant (1.5.1) lib/active_merchant/lib/connection.rb:153:in
>
> `handle_response'
>
>  activemerchant (1.5.1) lib/active_merchant/lib/connection.rb:74:in
>
> `request'
>
>  activemerchant (1.5.1) lib/active_merchant/lib/connection.rb:136:in
>
> `retry_exceptions'
>
>  activemerchant (1.5.1) lib/active_merchant/lib/connection.rb:54:in
>
> `request'
>
>  activemerchant (1.5.1) lib/active_merchant/lib/posts_data.rb:43:in
>
> `ssl_request'
>
>  activemerchant (1.5.1) lib/active_merchant/lib/posts_data.rb:26:in
>
> `ssl_post'
>
>  activemerchant (1.5.1) lib/active_merchant/billing/gateways/paypal/
>
> paypal_common_api.rb:298:in `commit'
>
>  vendor/extensions/paypal_express/lib/active_merchant/billing/
>
> gateways/paypal_express.rb:19:in `setup_authorization'
>
>  vendor/extensions/paypal_express/lib/spree/paypal_express.rb:28:in
>
> `paypal_payment'
>
> Rendered rescues/_trace (109.2ms)
>
> Rendered rescues/_request_and_response (4.1ms)
>
> Rendering rescues/layout (internal_server_error)
>
> I'm actually thinking it maybe looks like a SSL + Activemerchant
>
> problem, thoughts?
>
> Regards,
>
> --
> 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.
>
>
> --
> 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.
>

--
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.




--
Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

--
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