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

feat(appstore): Add configurable host to store client #305

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

lubnin
Copy link
Contributor

@lubnin lubnin commented Nov 26, 2024

Hardcoded hosts complicate testability of the API layer.
It would be much easier to override the host when testing logic that uses this library, enabling the response to be mocked using tools like Wiremock or Postman.
As a solution, I propose a small change to allow configuring a debug host in the store settings.

Copy link
Member

@takecy takecy left a comment

Choose a reason for hiding this comment

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

Thanks for your PR :)
It will be easier to test.

Looks good to me 👍

@takecy takecy merged commit c81f2e3 into awa:master Nov 27, 2024
2 checks passed
@takecy
Copy link
Member

takecy commented Nov 27, 2024

Please check new version 😁
https://github.com/awa/go-iap/releases/tag/v1.40.0

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