-
Notifications
You must be signed in to change notification settings - Fork 42
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 environment variable handling to Google Pay #608
Conversation
@nikolas4175-godaddy I cherry-picked the FW version number changes to the release/5.11.7 branch, so that we can PR other fixes and changes to the release. I've also adjusted the base branch here so your PR gets merged into the release branch first. |
* load payment form assets for gateways that support adding payment methods also * use flexbox for aligning payment gateway icons * extract selector styles to method * Ensure FW gateways with no CC icons still align to the right * Add since version to newly added method * Update changelog --------- Co-authored-by: Fulvio Notarstefano <[email protected]>
@nikolas4175-godaddy @ragulka this branch has been rebased to use #611 (5.11.8 release branch) since we have tagged v5.11.7 |
Discussed in Slack (thread), but for clarity: It seems that more changes are needed at the plugin (and possibly also FW) level to get Google Pay txns working in Prod (AC2 above), but the change in this PR is certainly a part of that and meets AC1 so I'll move this out of draft to prevent further blockers or rebasing work while we sort this out. |
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
Summary
This PR adds handling for passing the appropriate Environment variable (i.e.
PRODUCTION
orTEST
) when setting up the Google Pay JS client for gateways that implement the Google Pay Frontend class. Previously no environment variable was passed, which will cause txns to default to TEST according to the Google Pay docs.Closes #566
Story: MWC-3539
Acceptance Criteria