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

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
Posts: 7
Joined: Thu Aug 25, 2016 12:43 pm

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

Post 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!

Post Reply