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

Allow configuration of sandbox endpoint for testing #86

Merged
merged 1 commit into from
May 11, 2020

Conversation

cjfreeze
Copy link
Contributor

I would like to be able to use Bypass to test code that calls out to Braintree. Because the endpoints are hardcoded, this is not possible without modifying the library. I would prefer to not be using a fork of the library though, so this PR would solve that.

All in all, this PR does the following:

  • Allows sandbox endpoint configuration of :braintree with config key :sandbox_endpoint which uses @sandbox_endpoint if no config is provided
  • Moves production endpoint definition to attribute @production_endpoint
  • Builds keyword list at runtime to prevent stale config
  • Updates README.md to inform library users of new config option

* Allows sandbox endpoint configuration, uses `@sandbox_endpoint` as
  default
* Builds keyword list at runtime to prevent stale config
* Updates readme to inform library users of new config
Copy link
Contributor

@chris-allen-pepsi chris-allen-pepsi left a comment

Choose a reason for hiding this comment

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

LGTM. Going to be very useful being able to use bypass

Copy link
Owner

@sorentwo sorentwo left a comment

Choose a reason for hiding this comment

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

Love it! This is a great set of changes 💛

@sorentwo sorentwo merged commit fcc1e36 into sorentwo:master May 11, 2020
@sorentwo
Copy link
Owner

I've release v0.11.0 with these changes, plus a lot of others. It had been over a year since the last release!

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