Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
@kanagalingam

Description

@kanagalingam

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions