File tree Expand file tree Collapse file tree 5 files changed +17
-3
lines changed
Expand file tree Collapse file tree 5 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Event extends Dto {
1010 * Ressource ID
1111 * @var string
1212 */
13- public $ RessourceId ;
13+ public $ ResourceId ;
1414
1515 /**
1616 * Event type
Original file line number Diff line number Diff line change 1818$ user = new MangoPay \UserNatural ();
1919$ user ->FirstName = 'John ' ;
2020$ user ->LastName = 'Smith ' ;
21+ $ user ->Email = 'email@domain.com ' ;
22+ $ user ->Address = "Some Address " ;
23+ $ user ->Birthday = time ();
24+ $ user ->Nationality = 'FR ' ;
25+ $ user ->CountryOfResidence = 'FR ' ;
26+ $ user ->Occupation = "programmer " ;
27+ $ user ->IncomeRange = 3 ;
2128$ createdUser = $ mangoPayApi ->Users ->Create ($ user );
2229
2330// register card
Original file line number Diff line number Diff line change 1818$ user = new MangoPay \UserNatural ();
1919$ user ->FirstName = 'John ' ;
2020$ user ->LastName = 'Smith ' ;
21+ $ user ->Email = 'email@domain.com ' ;
22+ $ user ->Address = "Some Address " ;
23+ $ user ->Birthday = time ();
24+ $ user ->Nationality = 'FR ' ;
25+ $ user ->CountryOfResidence = 'FR ' ;
26+ $ user ->Occupation = "programmer " ;
27+ $ user ->IncomeRange = 3 ;
2128$ createdUser = $ mangoPayApi ->Users ->Create ($ user );
2229
2330// register card
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ protected function getJohnsKycDocument() {
255255 private function getPayInPaymentDetailsCard () {
256256 if (self ::$ PayInPaymentDetailsCard === null ) {
257257 self ::$ PayInPaymentDetailsCard = new \MangoPay \PayInPaymentDetailsCard ();
258- self ::$ PayInPaymentDetailsCard ->CardType = 'AMEX ' ;
258+ self ::$ PayInPaymentDetailsCard ->CardType = 'CB_VISA_MASTERCARD ' ;
259259 }
260260
261261 return self ::$ PayInPaymentDetailsCard ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function test_GetEventList_PayoutNormalCreated() {
6666 private function ExistEventById ($ eventList , $ eventId ) {
6767
6868 foreach ($ eventList as $ event ) {
69- if ($ event ->RessourceId == $ eventId ) {
69+ if ($ event ->ResourceId == $ eventId ) {
7070 return true ;
7171 }
7272 }
You can’t perform that action at this time.
0 commit comments