Page 1 of 1

Cyclos 4.6 - How to list all possible payments to one user?

Posted: Fri Oct 14, 2016 2:04 pm
by devrui
Hello, everyone.

I seem to have some trouble in listing all possible payment types for one user to then pick the correct payment type. I could this with transactionService.resolvePaymentType(), but it returns null (probably because I have more than one payment type associated with that client) or with getPaymentData() - which always returns me an error saying that it can't find the second InternalAccountOwner (the "to" entity).

Until now, I have only been able to perform payments by passing the payment type's name in the scripting parameter and getting to it with accountService and entityManagerHandler (and I was successful with this way, so it's NOT an issue accessing the payee's username). However, no matter what client I put in the destiny, it keeps giving me an error in getPaymentData. Any

What can it possibly be? Or is it another way to get all possible payment types?

Thanks in advance!