Error while calling transactionService.getPaymentData: LOCATE_USER

Any issue about Cyclos 4 scripting and Webservices

Moderators: rmvanarkel, hugo, alexandre

Post Reply
Posts: 6
Joined: Sun Feb 16, 2020 9:50 pm

Error while calling transactionService.getPaymentData: LOCATE_USER

Post by faisal »

I am trying to get login via WEB-RPC but i am getting this error

`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";


    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");
can someone please point me the right direction ?
and what does actually LOCATE_USER error mean ?
is there any list of cyclos error ?
Post Reply