solidusio-contrib / solidus_afterpay

Apache License 2.0
1 stars 1 forks source link

Introduce the use_solidus_api preference #17

Closed ChristianRimondi closed 3 years ago

ChristianRimondi commented 3 years ago

Until now the SolidusAfterpay::Api::CheckoutsController only handles a cookie-based authentication. If a store wants to use an API-based authentication, it can set the use_solidus_api preference to true. Under the hood that preference changes the parent class of the controller from SolidusAfterpay::BaseController to ::Spree::Api::BaseController.