@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | //1. User Object |
34 | 34 | writeLog('Creating User object'); |
35 | 35 | writeLog('Adding the address of the user'); |
36 | - $userAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address(); |
|
36 | + $userAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address(); |
|
37 | 37 | $userAddress |
38 | 38 | ->setZipCode('28031') |
39 | 39 | ->setFullName('María Sanchez Escudero') |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $orderBillingAddress = $userAddress; |
48 | 48 | |
49 | - $orderShippingAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address(); |
|
49 | + $orderShippingAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address(); |
|
50 | 50 | $orderShippingAddress |
51 | 51 | ->setZipCode('08029') |
52 | 52 | ->setFullName('Alberto Escudero Sanchez') |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | ->setUser($orderUser); |
132 | 132 | |
133 | 133 | writeLog('Creating OrdersApiClient'); |
134 | - if (PUBLIC_KEY=='' || PRIVATE_KEY == '') { |
|
134 | + if (PUBLIC_KEY == '' || PRIVATE_KEY == '') { |
|
135 | 135 | throw new \Exception('You need set the public and private key'); |
136 | 136 | } |
137 | 137 | $orderClient = new \Pagantis\OrdersApiClient\Client(PUBLIC_KEY, PRIVATE_KEY); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | // You can use our test credit cards to fill the Pagantis form |
154 | 154 | writeLog("Redirecting to Pagantis form => $url"); |
155 | - header('Location:'. $url); |
|
155 | + header('Location:' . $url); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |