-
Notifications
You must be signed in to change notification settings - Fork 34
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
[#319] Refactor add credit module configuration. #323
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.
Added comments. Do we have instructions/issue to track doc changes that need to be done?
I believe we need:
- Kickstart docs: Update instructions for setting up monetization during installer
- Kickstart docs: Update/create how to install monetization after installing if not done during installer
- M10n docs: Update/create Steps needed to configure m10n
Can we add a ticket w/this info?
modules/custom/apigee_kickstart_m10n_add_credit/apigee_kickstart_m10n_add_credit.info.yml
Show resolved
Hide resolved
@@ -97,6 +98,27 @@ public static function createPaymentGateway(array $values, array &$context) { | |||
$context['results']['$gateway'] = $gateway; | |||
$context['message'] = t('Created a default payment gateway.'); | |||
} | |||
catch (\Exception $exception) { |
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.
See message above, createPaymentGateway
is not being called, but should be
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.
Fixed :)
@cnovak I've addressed the changes, could you review again please? |
Added documentation issues: apigee/apigee-m10n-drupal#226 and #330. |
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.
LGTM
This PR needs apigee/apigee-m10n-drupal#223 (Compatibility with commerce 8.x-2.16), and together fix #319 .
The
Apigee Kickstart Monetization
submodule of Kickstart (apigee_kickstart_m10n_add_credit
) is a configuration only module, and it is meant to be enabled during the initial Drupal installation, in the monetization step if the "Enable Add Credit module" is checked. If so, the Kickstart installer provided supplemental initialization in code. If the module is enabled after the installer completed, the other logic isn't run.To solve this issue, efforts were made in the
apigee_m10n
module to allow a simpler configuration post-installation, andapigee_m10n 8.x-1.3
includes a way to configure the "Add credit" module in a simple way from a requirements page at:/admin/reports/requirements
apigee_m10n
during the install phase if "Enable Add Credit module" is checked.apigee_kickstart_m10n_add_credit
submodule, as it's no longer needed, and removes the confusion of having a module that should not be installed after the initial installation.apigee_m10n_add_credit
configuration page at:/admin/reports/requirements
@drupalninja: To test:
Apigee Kickstart Monetization
module. Just enableapigee_m10n_add_credit
(Apigee Monetization Add Credit), and complete the requirements listed under/admin/reports/requirements