Skip to content
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

Merged
merged 12 commits into from
Aug 23, 2023

Conversation

nikolas4175-godaddy
Copy link
Contributor

@nikolas4175-godaddy nikolas4175-godaddy commented Jul 25, 2023

Summary

This PR adds handling for passing the appropriate Environment variable (i.e. PRODUCTION or TEST) 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

  • Appropriate environment variable is passed according to plugin settings
  • Able to process txns in both Prod and Test envs

@nikolas4175-godaddy nikolas4175-godaddy self-assigned this Jul 25, 2023
@ragulka ragulka mentioned this pull request Jul 26, 2023
1 task
@ragulka ragulka changed the base branch from master to release/5.11.7 July 26, 2023 10:16
@ragulka
Copy link
Contributor

ragulka commented Jul 26, 2023

@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.

ragulka and others added 2 commits July 27, 2023 10:44
* 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 <fulvio.notarstefano@gmail.com>
Base automatically changed from release/5.11.7 to master July 28, 2023 09:08
@unfulvio-godaddy unfulvio-godaddy mentioned this pull request Jul 28, 2023
2 tasks
@unfulvio-godaddy unfulvio-godaddy changed the base branch from master to release/5.11.8 July 28, 2023 09:15
@unfulvio-godaddy
Copy link
Member

@nikolas4175-godaddy @ragulka this branch has been rebased to use #611 (5.11.8 release branch) since we have tagged v5.11.7

@nikolas4175-godaddy
Copy link
Contributor Author

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.

@nikolas4175-godaddy nikolas4175-godaddy marked this pull request as ready for review August 22, 2023 14:53
Copy link
Contributor

@itambek-godaddy itambek-godaddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@itambek-godaddy itambek-godaddy merged commit 59ec4a0 into release/5.11.8 Aug 23, 2023
@itambek-godaddy itambek-godaddy deleted the mwc-3539/google-pay-env branch August 23, 2023 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google Pay Missing Environment Variable
5 participants