Skip to content

ExternalAccount.verify always throws CoreProApiException #3

@becca-bailey

Description

@becca-bailey

In our code, we need to verify an external account.

First, we are getting the ExternalAccount object with the customer ID and external account ID. This step is succeeding without any errors.

ExternalAccount account = ExternalAccount.get(
    request.getCustomerId(),
    request.getExternalAccountId(),
    connection,
    null
);

However, when we call account.verify(), this step is failing even though the account exists in core pro.

return account.verify(
    request.getAmountOne(),
    request.getAmountTwo(),
    connection,
    null
);

This is the exception that is being thrown:

CoreProApiException: Invalid ExternalAccountId '305014' See Errors property for full list of error details.

We have also tried using ExternalAccount.getByTag(), but always get the same results.

While I am not positive whether this is a problem with the SDK or the CorePro sandbox, I have had success testing this process against the CorePro sandbox API, but I haven't been able to replicate it using this SDK.

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