radar/better_spree_paypal_express — pull request #26 by jhawthorn (2013-09-28 01:20:15+00:00)
Title: Don't instantiate provider in provider_class

It was possible for payment_class to be called, which instantiated a new`PayPal::SDK::Merchant::API` object before paypal was configured by the code in .provider. This caused the error:

No such file or directory - config/paypal.yml

This changes provider_class to just return the class itself. It also overrides `.provides?` to be more explicit about the behaviour.

Fixes #15