title: How to set billing or shipping address using PayPal PHP REST API?
body: <p>I am using "paypal" payment method:</p>
  
  <pre class="lang-php prettyprint-override"><code>$payer = new Payer();
  $payer-&gt;setPaymentMethod('paypal');
  </code></pre>
  
  <p>I have tried the following, but it is not setting the address:</p>
  
  <pre class="lang-php prettyprint-override"><code>$addr = new Address();
  $addr-&gt;setLine1('34/1');
  $addr-&gt;setLine2('xxx');
  $addr-&gt;setCity('xxxxxxx');
  $addr-&gt;setCountry_code('US');
  $addr-&gt;setPostal_code('43210');
  $addr-&gt;setState('OH');
  </code></pre>