It was possible for payment_class to be called, which instantiated a newPayPal::SDK::Merchant::API object before paypal was configured by the code in .provider. This caused the error as seen in #15:
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.
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 as seen in #15:This changes provider_class to just return the class itself. It also overrides
.provides?
to be more explicit about the behaviour.