Payment Type Required

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
muazzamazaz
Posts: 28
Joined: Mon Jul 07, 2014 9:12 am

Payment Type Required

Post by muazzamazaz » Thu Dec 20, 2018 9:03 am

I am using PHP Client library for user to user(System user) payment and when I try to do following operation

Code: Select all

$data = $transactionService->getPaymentData(
array('username' => 'u1'),
array('username' => 'u2'),
null);
it gives me error
Payment type is required
While I have already created transfer types in system user configuration section of Account Type.

JSON Output:

Code: Select all

"{"class":"org.cyclos.model.ValidationException","errorCode":"VALIDATION","validation":{"class":"org.cyclos.utils.ValidationResult","properties":["type"],"propertyErrors":{"type":["Payment type is required"]},"firstError":"Payment type is required","allErrors":["Payment type is required"]}}"

Post Reply