-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration options to SolidusPaypalCommercePlatform #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall!
One nit is that in other extension the config class is named Configuration
and might make sense to stay consistent. About the commits I would suggest keeping the whole rename into the first one, and the order-simulator addition in the second, that should make for a really clean "blame" for our future selves 🕵️
6a4c962
to
8ab0587
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one final fix that will save us a headache in the future 😄
spec/lib/solidus_paypal_commerce_platform/configuration_spec.rb
Outdated
Show resolved
Hide resolved
Renames Environment to Config so that we can set up extension configuration. Now instead of just `SolidusPaypalCommercePlatform.env` you reference the config object first like `SolidusPaypalCommercePlatform.config.env` - this PR updates existing code to conform to this new standard.
Adds ability to configure the configuration setup, and adds an order_simulator_class so that the order_simulator class is configurable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Adds ability to configure SPCP with:
instead of just setting options directly onto SolidusPaypalCommercePlatform. Also makes order_simulator a customizable class to solve #36