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

V6010 (invalid TransactionType) whenever I try Direct Connection via PHP SDK in sandbox with PCI enabled #7

Closed
meglio opened this issue Mar 28, 2016 · 3 comments

Comments

@meglio
Copy link

meglio commented Mar 28, 2016

eWay PHP SDK version v1.2.3

I setup my 3 Sandbox accounts (AUS, NZ and UK) to make sure the issue persists everywhere.

I enabled PCI for all of them. I'm using PHP SDK and Direct Connection method. Whenever I create a new transaction, code V6010 is returned, which means "Invalid TransactionType, account not certified for eCome only MOTO or Recurring available".

Looks like a bug, unless I'm doing something wrong. And I'm stuck with this and can't test my Direct Connection integration in sandbox.

@meglio
Copy link
Author

meglio commented Mar 28, 2016

Request

$api = \Eway\Rapid::createClient($apiKey, $apiPassword, $eWayClientContractMode);
$transResponse = $api->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transactionReq);

The value of $transactionReq:

image

@incarnate
Copy link
Member

Hi Anton,

Thanks for submitting this issue. The error message could be more clear, in this instance it is only the first part which is a problem: "Invalid TransactionType"

You should just need to add a TransactionType to your request and you should be good to go!

I'll see if we can improve the validation around that field for the next release.

@meglio
Copy link
Author

meglio commented Mar 28, 2016

Thanks, it worked. Improving the validation around that field would be useful.

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