Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
122 stars 133 forks source link

Can not create a new user #562

Closed d4rk0snet closed 1 year ago

d4rk0snet commented 2 years ago

Hi there,

I just upgraded from 3.6 to 3.15 and i can't create a new natural user in mango pay sandbox. Here is my object :

object(MangoPay\UserNatural)#1687 (20) { ["FirstName"]=> string(6) "hello" ["LastName"]=> string(6) "you" ["Address"]=> NULL ["Birthday"]=> int(1656672943) ["Nationality"]=> string(2) "FR" ["CountryOfResidence"]=> string(2) "FR" ["Occupation"]=> string(14) "Administrateur" ["IncomeRange"]=> int(3) ["ProofOfIdentity"]=> NULL ["ProofOfAddress"]=> NULL ["Capacity"]=> NULL ["PersonType"]=> string(7) "NATURAL" ["Email"]=> string(24) "michael@gmail.com" ["KYCLevel"]=> NULL ["TermsAndConditionsAccepted"]=> NULL ["TermsAndConditionsAcceptedDate"]=> NULL ["UserCategory"]=> NULL ["Id"]=> NULL ["Tag"]=> string(17) "Utilisateur #3161" ["CreationDate"]=> NULL }

I checked again sdk documentation, and i don't see anything invalid or missing. When i try to create it, i get a 400 exception.

Any clues ?

fredericdelordm commented 2 years ago

Hello @d4rk0snet,

Could you share an example of the api response please ?

fredericdelordm commented 1 year ago

Hello @d4rk0snet,

Do you still have the issue?