payment system to user error

Any issue about Cyclos 4 scripting and Webservices

Moderators: rmvanarkel, hugo, alexandre

Post Reply
Posts: 3
Joined: Mon Nov 28, 2016 10:27 am

payment system to user error

Post by nakataf1 »

hello everyone.
i'm using cyclos 4.7, i have problem when i try to make a payment from system to user.
"error calling payementservice.perform VALIDATION"
the script is

Code: Select all

require_once 'configureCyclos.php';

$transactionService = new Cyclos\TransactionService();
$paymentService = new Cyclos\PaymentService();

$data = $transactionService->getPaymentData('SYSTEM', array('username' => 'c1'));

$parameters = new stdclass();
$parameters->from = $data->from;
$parameters->to = $data->to;
$parameters->type = $data->paymentTypes[0];
$parameters->amount = 5;
$parameters->description = 'Test from system to user';

$paymentResult = $paymentService->perform($parameters);
$paymentId = $paymentResult->id;
$transferId = $paymentResult->transferId;
if ($transferId == NULL) {
    echo("Not yet authorized\n");
} else {
    echo("Payment done!\n");
Posts: 6
Joined: Sun Feb 16, 2020 9:50 pm

Re: payment system to user error

Post by faisal »

did u able to slove this issue coz i am also facing issue in TransactionService
though i get a bit different type of issue. if you able to work out the TransactionService please give me a bit details about solving issue
Post Reply