diff --git a/MangoPaySDK/entities/event.inc b/MangoPaySDK/entities/event.inc index d85793b6..913427de 100644 --- a/MangoPaySDK/entities/event.inc +++ b/MangoPaySDK/entities/event.inc @@ -10,7 +10,7 @@ class Event extends Dto { * Ressource ID * @var string */ - public $RessourceId; + public $ResourceId; /** * Event type diff --git a/demos/paymentDirect/non_js.php b/demos/paymentDirect/non_js.php index 721e3b7f..d4895a8f 100644 --- a/demos/paymentDirect/non_js.php +++ b/demos/paymentDirect/non_js.php @@ -18,6 +18,13 @@ $user = new MangoPay\UserNatural(); $user->FirstName = 'John'; $user->LastName = 'Smith'; +$user->Email = 'email@domain.com'; +$user->Address = "Some Address"; +$user->Birthday = time(); +$user->Nationality = 'FR'; +$user->CountryOfResidence = 'FR'; +$user->Occupation = "programmer"; +$user->IncomeRange = 3; $createdUser = $mangoPayApi->Users->Create($user); // register card diff --git a/demos/paymentDirect/with_js.php b/demos/paymentDirect/with_js.php index 5416f70c..6e26d846 100644 --- a/demos/paymentDirect/with_js.php +++ b/demos/paymentDirect/with_js.php @@ -18,6 +18,13 @@ $user = new MangoPay\UserNatural(); $user->FirstName = 'John'; $user->LastName = 'Smith'; +$user->Email = 'email@domain.com'; +$user->Address = "Some Address"; +$user->Birthday = time(); +$user->Nationality = 'FR'; +$user->CountryOfResidence = 'FR'; +$user->Occupation = "programmer"; +$user->IncomeRange = 3; $createdUser = $mangoPayApi->Users->Create($user); // register card diff --git a/tests/cases/base.php b/tests/cases/base.php index a21f4f6a..ebe687c5 100644 --- a/tests/cases/base.php +++ b/tests/cases/base.php @@ -255,7 +255,7 @@ protected function getJohnsKycDocument() { private function getPayInPaymentDetailsCard() { if (self::$PayInPaymentDetailsCard === null) { self::$PayInPaymentDetailsCard = new \MangoPay\PayInPaymentDetailsCard(); - self::$PayInPaymentDetailsCard->CardType = 'AMEX'; + self::$PayInPaymentDetailsCard->CardType = 'CB_VISA_MASTERCARD'; } return self::$PayInPaymentDetailsCard; diff --git a/tests/cases/events.php b/tests/cases/events.php index 76058158..8c19376e 100644 --- a/tests/cases/events.php +++ b/tests/cases/events.php @@ -66,7 +66,7 @@ function test_GetEventList_PayoutNormalCreated() { private function ExistEventById($eventList, $eventId) { foreach ($eventList as $event) { - if ($event->RessourceId == $eventId) { + if ($event->ResourceId == $eventId) { return true; } }