Page 1 of 1

payment system to user error

Posted: Sun Feb 12, 2017 6:01 am
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");

Re: payment system to user error

Posted: Mon Feb 17, 2020 7:14 am
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