title: is it possible to get buyer's address while using PayPal's Checkout PHP SDK?
body: <p>I have this code for processing PayPal payments on my website :</p>
  <pre><code>$environment = new \PayPalCheckoutSdk\Core\SandboxEnvironment(PAYPAL_ID, PAYPAL_SECRET);
  
  $client = new \PayPalCheckoutSdk\Core\PayPalHttpClient($environment);
  $authorizationId = $_POST['authorizationId'];
  
  $request = new \PayPalCheckoutSdk\Payments\AuthorizationsGetRequest($authorizationId);
  $authorizationResponse = $client-&gt;execute($request);
  $orderId = $authorizationResponse-&gt;result-&gt;supplementary_data-&gt;related_ids-&gt;order_id;
  
  $request = new OrdersGetRequest($orderId);
  $orderResponse = $client-&gt;execute($request);
  
  var_dump($orderResponse-&gt;result-&gt;payer-&gt;address);
  </code></pre>
  <p>When I var_dump the address sdtObject I get only this</p>
  <pre><code>  public 'address' =&gt; 
      object(stdClass)[74]
        public 'country_code' =&gt; string 'FR' (length=2)
  </code></pre>
  <p>I am trying to get the buyer's shipping information after completing the order to store their address in my database because they are buying as a &quot;guest&quot;.</p>
  <p>That happens even when you pay with Card option of PayPal although they ask you to put in your shipping address.</p>
  <p>The order is created like this</p>
  <pre><code>$order = json_encode([
                  'purchase_units' =&gt; [
                      [
                          'description' =&gt; 'some desc...',
                          'items'       =&gt; array_map(function ($product) {
                              return [
                                  'name'        =&gt; $product['name'] . &quot; (n°&quot; . $product['num'] . &quot; | &quot; . strtoupper($product['language']) . &quot;)&quot;,
                                  'quantity'    =&gt; $_SESSION['cart'][$product['id']],
                                  'unit_amount' =&gt; [
                                      'value'         =&gt; number_format((float)$product['price'], 2, '.', ''),
                                      'currency_code' =&gt; 'USD',
                                  ]
                              ];
                          }, $products),
                          'amount'      =&gt; [
                              'currency_code' =&gt; 'USD',
                              'value'         =&gt; $total &gt; 200 ? $total : $total + 8,
                              'breakdown'     =&gt; [
                                  'item_total' =&gt; [
                                      'currency_code' =&gt; 'USD',
                                      'value'         =&gt; $total
                                  ],
                                  'shipping' =&gt; [
                                      'currency_code' =&gt; 'USD',
                                      'value'         =&gt; $total &gt; 200 ? '0.00' : '8.00',
                                  ]
                              ]
                          ]
                      ]
                  ]
              ]);
  </code></pre>
  <p>And is then passed like this to the PayPal's JS SDK :</p>
  <pre><code>paypal.Buttons({
                      createOrder: (data, actions) =&gt; {
  
                          return actions.order.create(&lt;?= $order; ?&gt;);
  
                      },
                      onApprove: async (data, actions) =&gt; {
                          const authorization = await actions.order.authorize()
                          const authorizationId = authorization.purchase_units[0].payments.authorizations[0].id
                          const response = await fetch('&lt;?= base_url('cart/process'); ?&gt;', {
                              method: 'post',
                              headers: {
                                  'content-type': 'application/json'
                              },
                              body: JSON.stringify({
                                  authorizationId
                              })
                          })
                          let responseText = await response.text();
                          $('.site-content').html(responseText);
                      },
                      onCancel: function(data, actions) {
                          alert(&quot;Order cancelled successfully!&quot;);
                      },
                      onError: function(err) {
                          console.log(err);
                      }
                  }).render('#paypal-button-container');
  </code></pre>
  <p>The intent of the order which is created is <code>authorize</code></p>
  <p>Can someone help me ?</p>