title: Setting options for adaptive payment, receiver cannot be null
body: <p>Here is my request object for setting payment option.</p>
  
  <pre><code>SetPaymentOptionsRequest Object
  (
      [requestEnvelope] =&gt; RequestEnvelope Object
          (
              [detailLevel] =&gt; 
              [errorLanguage] =&gt; en_US
          )
  
      [payKey] =&gt; AP-0MG8529097707340X
      [initiatingEntity] =&gt; 
      [displayOptions] =&gt; 
      [shippingAddressId] =&gt; 
      [senderOptions] =&gt; 
      [receiverOptions] =&gt; Array
          (
              [0] =&gt; ReceiverOptions Object
                  (
                      [description] =&gt; 
                      [customId] =&gt; 
                      [invoiceData] =&gt; InvoiceData Object
                          (
                              [item] =&gt; Array
                                  (
                                      [0] =&gt; InvoiceItem Object
                                          (
                                              [name] =&gt; my Item
                                              [identifier] =&gt; 1
                                              [price] =&gt; 138
                                              [itemPrice] =&gt; 69
                                              [itemCount] =&gt; 2
                                          )
  
                                  )
  
                              [totalTax] =&gt; 
                              [totalShipping] =&gt; 
                          )
  
                      [receiver] =&gt; ReceiverIdentifier Object
                          (
                              [email] =&gt; test@test.com
                              [phone] =&gt; 
                          )
  
                      [referrerCode] =&gt; 
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I followed the sdk example but I get this error response</p>
  
  <pre><code>SetPaymentOptionsResponse Object
  (
      [responseEnvelope] =&gt; ResponseEnvelope Object
          (
              [timestamp] =&gt; 2013-02-16T05:38:38.298-08:00
              [ack] =&gt; Failure
              [correlationId] =&gt; f17a8e24e1375
              [build] =&gt; 4992011
          )
  
      [error] =&gt; Array
          (
              [0] =&gt; ErrorData Object
                  (
                      [errorId] =&gt; 580022
                      [domain] =&gt; PLATFORM
                      [subdomain] =&gt; Application
                      [severity] =&gt; Error
                      [category] =&gt; Application
                      [message] =&gt; Invalid request parameter: receiverOption.receiver(0).email
                      [exceptionId] =&gt; 
                      [parameter] =&gt; Array
                          (
                              [0] =&gt; ErrorParameter Object
                                  (
                                      [name] =&gt; 
                                      [value] =&gt; receiverOption.receiver(0).email
                                  )
  
                              [1] =&gt; ErrorParameter Object
                                  (
                                      [name] =&gt; 
                                      [value] =&gt; test@test.com
                                  )
  
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>If I don't set the email the error becomes <code>Invalid request parameter: receiver cannot be null</code><br>
  <em>Edit</em>: <a href="https://www.x.com/developers/paypal/documentation-tools/api/SetPaymentOptions-api-operation" rel="nofollow">Here</a> and <a href="https://github.com/paypal/adaptivepayments-sdk-php/blob/master/samples/SetPaymentOptionsReceipt.php" rel="nofollow">here</a> you have some reference. Maybe you see something I didn't.</p>