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

Implement test mode checks #10

Open
judgej opened this issue Aug 2, 2017 · 0 comments
Open

Implement test mode checks #10

judgej opened this issue Aug 2, 2017 · 0 comments
Assignees

Comments

@judgej
Copy link
Member

judgej commented Aug 2, 2017

Since the core Omnipay supports a test mode it would be nice to make use of it.

Wirecard uses the live gateway endpoints for all live, test and demo access, but has a range of customer IDs set aside to trigger various test modes. Since test mode is boolean - we are in test mode or not - we cannot use that flag to set the customer IDs and other parameters. However, if test mode is enabled, we can at least check that a known test customer ID is being used, and throw an exception if not.

This would just be an additional check to help prevent accidentally using live credentials in a test system or vice-versa. Not essential, just a nice-to-have.

@judgej judgej self-assigned this Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant