File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
src/Omnipay/PayPal/Message Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,13 @@ public function getData()
25
25
$ data ['LANDINGPAGE ' ] = $ this ->getLandingPage ();
26
26
$ data ['RETURNURL ' ] = $ this ->getReturnUrl ();
27
27
$ data ['CANCELURL ' ] = $ this ->getCancelUrl ();
28
+ $ data ['HDRIMG ' ] = $ this ->getHeaderImageUrl ();
29
+ $ data ['BRANDNAME ' ] = $ this ->getBrandName ();
30
+ $ data ['NOSHIPPING ' ] = $ this ->getNoShipping ();
31
+ $ data ['ALLOWNOTE ' ] = $ this ->getAllowNote ();
28
32
29
- if ($ headerImageUrl = $ this ->getHeaderImageUrl ()) {
30
- $ data ['HDRIMG ' ] = $ headerImageUrl ;
31
- }
32
-
33
- if ($ brandName = $ this ->getBrandName ()) {
34
- $ data ['BRANDNAME ' ] = $ brandName ;
35
- }
36
-
37
- if (null !== ($ noShipping = $ this ->getNoShipping ())) {
38
- $ data ['NOSHIPPING ' ] = $ noShipping ;
39
- }
40
-
41
- if (null !== ($ allowNote = $ this ->getAllowNote ())) {
42
- $ data ['ALLOWNOTE ' ] = $ allowNote ;
43
- }
44
-
45
- if ($ card = $ this ->getCard ()) {
33
+ $ card = $ this ->getCard ();
34
+ if ($ card ) {
46
35
$ data ['PAYMENTREQUEST_0_SHIPTONAME ' ] = $ card ->getName ();
47
36
$ data ['PAYMENTREQUEST_0_SHIPTOSTREET ' ] = $ card ->getAddress1 ();
48
37
$ data ['PAYMENTREQUEST_0_SHIPTOSTREET2 ' ] = $ card ->getAddress2 ();
You can’t perform that action at this time.
0 commit comments