mangopay2-php-sdk
mangopay2-php-sdk copied to clipboard
GetUserRecipients() missing recipient properties
When getting user recipients using GetUserRecipients() multiple non-null properties are retrieved as null, which prevents us from using that missing data such as CreationDate and forces us to retrieve recipients one by one using the Get() method. Specifically CreationDate is important for us since we need it to sort the recipients and get the latest one. We also tried to pass a Sorting object as the GetUserRecipients() $sorting param, but the data is getting back to us unsorted.
Example of a recipient retrieved using GetUserRecipients() method:
0 => MangoPay\Recipient {#5065
+Id: "rec_01xxxx"
+Tag: null
+CreationDate: null
+Status: "ACTIVE"
+DisplayName: "adel"
+PayoutMethodType: "LocalBankTransfer"
+RecipientType: "Individual"
+Currency: "EUR"
+Country: "GR"
+RecipientScope: "PAYOUT"
+UserId: "user_m_01xxxx"
+IndividualRecipient: null
+BusinessRecipient: null
+LocalBankTransfer: null
+InternationalBankTransfer: null
+PendingUserAction: null
}
Hi thanks for raising this @adel-batal , I've raised the lack of CreationDate and sorting with the team in charge of the List Recipients endpoint.
Hi @adel-batal Please re-try, I reported to MangoPay that they had missing informations all as null and it is fixed they said.
Hello @anthonyh-m and @williamdes. I updated to the latest version and still no CreationDate :(
Hello @anthonyh-m and @williamdes. I updated to the latest version and still no
CreationDate:(
I reported to them yesterday that get all is missing most of the data. Get one is better.
@williamdes That's what we're currently using. However, the Get method gets one account at a time which forces us to send multiple requests to Mangopay's server every time.
@williamdes That's what we're currently using. However, the
Getmethod gets one account at a time which forces us to send multiple requests to Mangopay's server every time.
I said to them that I will continue using users get bank accounts because it has all the data needed
Hi everyone,
I will pass this to the API team.
Hi @adel-batal I believe your team has been in touch with ours through other channels about this.
Just to confirm that the CreationDate is now returned on the list Recipients endpoint and so is available via GetUserRecipients(). Regarding Sorting, this is not available at present but the need has been raised with the API team, who will look at adding it later this year.
So I'll close this issue, thanks for raising it 🙏