Mangopay / mangopay2-php-sdk

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

Invalid examples #590

Closed psociety closed 1 year ago

psociety commented 1 year ago

If you copy examples like

$mangoUser = new \MangoPay\UserNatural();
        $mangoUser->PersonType = "NATURAL";
        $mangoUser->FirstName = 'John';
        $mangoUser->LastName = 'Doe';
        $mangoUser->Birthday = 1409735187;
        $mangoUser->Nationality = "FR";
        $mangoUser->CountryOfResidence = "FR";
        $mangoUser->Email = 'john.doe@mail.com';

        //Send the request
        $mangoUser = $api->Users->Create($mangoUser);

It will throw an exception because it misses "UserCategory".

ataldev commented 1 year ago

I wish they hire some developers to update the SDKs and examples. Very hard to get setup and running like this.

fredericdelordm commented 1 year ago

Hello @psociety,

You have examples for these calls inside the Mangopay documentation.

ataldev commented 1 year ago

I have already created a Pull Request that adds missing data to the workflow.