Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid examples #590

Closed
psociety opened this issue Apr 5, 2023 · 3 comments
Closed

Invalid examples #590

psociety opened this issue Apr 5, 2023 · 3 comments

Comments

@psociety
Copy link

psociety commented Apr 5, 2023

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
Copy link

ataldev commented May 10, 2023

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

@fredericdelordm
Copy link
Contributor

Hello @psociety,

You have examples for these calls inside the Mangopay documentation.

@ataldev
Copy link

ataldev commented Nov 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants