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 different kinds of payment buttons #160

Merged
merged 6 commits into from
May 10, 2021
Merged

Add different kinds of payment buttons #160

merged 6 commits into from
May 10, 2021

Conversation

huwr
Copy link
Contributor

@huwr huwr commented May 10, 2021

Previously, we just had one payment button. Now, we have a few more options for different wording.

Summary of Changes

  • Add a few more different versions of the payment button
  • Move the SVG storing code around a bit to make it easier to use and to add more SVG sources in future
  • Add button kinds to the readme.

Items of Note

It's not a massive change, but it gives merchants a few more options

huwr added 5 commits May 10, 2021 08:30
Previously, we just had one payment button. Now, we have a few more options for different wording.
Previously, there was a very big switch statement for finding the right SVG. This worked, but it is unsustainable as we add more different kinds of palettes and button kinds and locales. Now, we moved the logic for finding the SVG to the SVG struct itself.

I have also moved SVG sources to new file. Before, all the SVG sources were in the SVG.swift file. This was too much for that file. I want to separate out the long, bland SVG source from the other logic in the SVG struct. This will be more important as we add more logic to the SVG struct.
@huwr huwr requested a review from k-obrien May 10, 2021 01:01
@huwr huwr requested a review from adamjcampbell as a code owner May 10, 2021 01:01
@huwr huwr self-assigned this May 10, 2021
@huwr huwr requested a review from Rypac as a code owner May 10, 2021 01:01
It is flakey because it is using the real bootstrap and the real widget. We will have a better way to test this by using a mock bootstrap. Soon.
@huwr huwr merged commit 5718a7a into master May 10, 2021
@huwr huwr deleted the huwr/svgs branch May 10, 2021 03:29
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.

2 participants