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: remove default environment configuration #195

Merged
merged 76 commits into from
Aug 22, 2024

Conversation

mvarlic
Copy link
Contributor

@mvarlic mvarlic commented Aug 19, 2024

This PR removes the default configuration for integration environment on all products.
Now is necessary use a build method for integration or production environment to create an object.
This is a breaking change, now the integrator must always have control of the environment in which they will use the product, using the corresponding method and credentials.

For example, to create a Webpay Plus Transaction now you must call their corresponding build method.

Integration:
WebpayPlus.Transaction transaction = WebpayPlus.Transaction.buildForIntegration("productionCommerceCode", "productionApiKey");

Production:
WebpayPlus.Transaction transaction = WebpayPlus.Transaction.buildForProduction("productionCommerceCode", "productionApiKey");

image
image

Copy link

sonarcloud bot commented Aug 21, 2024

Copy link
Member

@mastudillot mastudillot left a comment

Choose a reason for hiding this comment

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

LGTM

@mvarlic mvarlic merged commit 485ab73 into develop Aug 22, 2024
6 checks passed
@mvarlic mvarlic deleted the feat/remove-default-environment-configuration branch August 22, 2024 20:55
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.

3 participants