File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,19 @@ public function getData()
49
49
$ data ['Payment ' ]['CurrencyCode ' ] = $ this ->getCurrency ();
50
50
51
51
$ data ['Customer ' ] = array ();
52
- if ($ this ->getCard ()) {
53
- $ data ['Customer ' ]['FirstName ' ] = $ this ->getCard ()->getFirstName ();
54
- $ data ['Customer ' ]['LastName ' ] = $ this ->getCard ()->getLastName ();
52
+ $ card = $ this ->getCard ();
53
+ if ($ card ) {
54
+ $ data ['Customer ' ]['FirstName ' ] = $ card ->getFirstName ();
55
+ $ data ['Customer ' ]['LastName ' ] = $ card ->getLastName ();
56
+ $ data ['Customer ' ]['CompanyName ' ] = $ card ->getCompany ();
57
+ $ data ['Customer ' ]['Street1 ' ] = $ card ->getAddress1 ();
58
+ $ data ['Customer ' ]['Street2 ' ] = $ card ->getAddress2 ();
59
+ $ data ['Customer ' ]['City ' ] = $ card ->getCity ();
60
+ $ data ['Customer ' ]['State ' ] = $ card ->getState ();
61
+ $ data ['Customer ' ]['PostalCode ' ] = $ card ->getPostCode ();
62
+ $ data ['Customer ' ]['Country ' ] = strtolower ($ card ->getCountry ());
63
+ $ data ['Customer ' ]['Email ' ] = $ card ->getEmail ();
64
+ $ data ['Customer ' ]['Phone ' ] = $ card ->getPhone ();
55
65
}
56
66
57
67
return $ data ;
You can’t perform that action at this time.
0 commit comments