`Error while calling transactionService.getPaymentData: LOCATE_USER`
i already give permission of web service permission to my admin account but still nothing
below i share my code
[ Note: i am using cyclos php 4.8 library]
autoload file
Code: Select all
function load($c) {
if (strpos($c, "Cyclos\\") >= 0) {
include str_replace("\\", "/", $c) . ".php";
}
}
spl_autoload_register('load');
Cyclos\Configuration::setRootUrl("url");
Cyclos\Configuration::setAuthentication("admin_account_username", "admin_account_password");
transaction file
Code: Select all
$transactionService = new Cyclos\TransactionService();
$paymentService = new Cyclos\PaymentService();
try {
$data = $transactionService->getPaymentData('c1', array('username' => 'c2'),null);
$parameters = new stdclass();
$parameters->from = $data->from;
$parameters->to = $data->to;
$parameters->type = $data->paymentTypes[0];
$parameters->amount = 5000;
$parameters->description = "Test from user to user";
$paymentResult = $paymentService->perform($parameters);
if ($paymentResult->authorizationStatus == 'PENDING_AUTHORIZATION') {
echo("Not yet authorized\n");
} else {
echo("Payment done with id $paymentResult->id\n");
}
} catch (Cyclos\ServiceException $e) {
echo("Error while calling $e->service.$e->operation: $e->errorCode");
}
and what does actually LOCATE_USER error mean ?
is there any list of cyclos error ?