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

Environment not set. Set environment using setter or use overloaded method to pass appropriate environment #163

Open
kanagalingam opened this issue Mar 13, 2020 · 1 comment

Comments

@kanagalingam
Copy link

kanagalingam commented Mar 13, 2020

Hi all ,
I am stuck with an error while performing Payment using accept suite.

CreateTransactionController controller = new CreateTransactionController(apiRequest);
controller.execute();

Debugging the controller object, shows the following error

Environment not set. Set environment using setter or use overloaded method to pass appropriate environment

I am using the class

CreateAnAcceptPaymentTransaction

The version of the SDK I am using is v2.0.1 !

I' m setting the environment as the example, didn't change anything:
ApiOperationBase.setEnvironment(Environment.SANDBOX);

Any headsup will be really helpful!

@agent-reed
Copy link

If you did indeed follow the correct steps for setting the environment. It is very likely that you are using a JDK version that is higher than what is supported by Authnet.

If your logs give you ERROR net.authorize.util.HttpUtility - Execution error for http post Message: 'javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. that is because following Java 8 some dependencies are no longer include, but Authnet is expecting them to exist.

shalin-shaji added a commit that referenced this issue Sep 23, 2024
…r use overloaded method to pass appropriate environment #163" Changed 'nullEnvironmentErrorMessage' as a constant to avoid confusion.
shalin-shaji added a commit that referenced this issue Sep 23, 2024
…r use overloaded method to pass appropriate environment #163" Changed 'nullEnvironmentErrorMessage' as a constant to avoid confusion.
shalin-shaji added a commit that referenced this issue Sep 24, 2024
…r use overloaded method to pass appropriate environment #163" Changed 'nullEnvironmentErrorMessage' as a constant to avoid confusion.
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

No branches or pull requests

2 participants