title: can't get a refunds object of payments with paypal rest api
body: <p>I 'm using the <code>paypal rest api</code> with the <code>sandbox</code> acount to allow users purchasing tickets.Everything is working just fine.
  and I get this response:</p>
  
  <pre><code>    ayPal\Api\Payment Object
       (
         [_propMap:PayPal\Common\PPModel:private] =&gt; Array
          (
          [id] =&gt; PAY-XXXXXXXXXXXXXXXXXXXXXX
          [create_time] =&gt; 2014-12-03T12:35:31Z
          [update_time] =&gt; 2014-12-03T12:36:23Z
          [state] =&gt; approved
          [intent] =&gt; sale
          [payer] =&gt; PayPal\Api\Payer Object
              (
                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                      (
                          [payment_method] =&gt; paypal
                          [payer_info] =&gt; PayPal\Api\PayerInfo Object
                              (
                                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                      (
                                          [email] =&gt; doua.ddd@gmail.com
                                          [first_name] =&gt; times
                                          [last_name] =&gt; douha
                                          [payer_id] =&gt; XXXXXXXXXX
                                          [shipping_address] =&gt; PayPal\Api\ShippingAddress Object
                                              (
                                                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                      (
                                                          [line1] =&gt; Av. de la Pelouse, 87648672 Mayet
                                                          [city] =&gt; Paris
                                                          [state] =&gt; Alsace
                                                          [postal_code] =&gt; 75002
                                                          [country_code] =&gt; FR
                                                          [recipient_name] =&gt; douha
                                                      )
  
                                              )
  
                                      )
  
                              )
  
                      )
  
              )
  
          [transactions] =&gt; Array
              (
                  [0] =&gt; PayPal\Api\Transaction Object
                      (
                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                              (
                                  [amount] =&gt; PayPal\Api\Amount Object
                                      (
                                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                              (
                                                  [total] =&gt; 12.00
                                                  [currency] =&gt; EUR
                                                  [details] =&gt; PayPal\Api\Details Object
                                                      (
                                                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                              (
                                                                  [subtotal] =&gt; 12.00
                                                              )
  
                                                      )
  
                                              )
  
                                      )
  
                                  [description] =&gt; 12 EUR
                                  [related_resources] =&gt; Array
                                      (
                                          [0] =&gt; PayPal\Api\RelatedResources Object
                                              (
                                                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                      (
                                                          [sale] =&gt; PayPal\Api\Sale Object
                                                              (
                                                                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                                      (
                                                                          [id] =&gt; XXXXXXXXX
                                                                          [create_time] =&gt; 2014-12-03T12:35:31Z
                                                                          [update_time] =&gt; 2014-12-03T12:36:23Z
                                                                          [amount] =&gt; PayPal\Api\Amount Object
                                                                              (
                                                                                  [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                                                      (
                                                                                          [total] =&gt; 12.00
                                                                                          [currency] =&gt; EUR
                                                                                      )
  
                                                                              )
  
                                                                          [payment_mode] =&gt; INSTANT_TRANSFER
                                                                          [state] =&gt; completed
                                                                          [protection_eligibility] =&gt; ELIGIBLE
                                                                          [protection_eligibility_type] =&gt; ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE
                                                                          [parent_payment] =&gt; PAY-8TA78025CU843082LKR7QHEY
                                                                          [links] =&gt; Array
                                                                              (
                                                                                  [0] =&gt; PayPal\Api\Links Object
                                                                                      (
                                                                                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                                                              (
                                                                                                  [href] =&gt; https://api.sandbox.paypal.com/v1/payments/sale/XXXXXXXXXXXX
                                                                                                  [rel] =&gt; self
                                                                                                  [method] =&gt; GET
                                                                                              )
  
                                                                                      )
  
                                                                                  [1] =&gt; PayPal\Api\Links Object
                                                                                      (
                                                                                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                                                              (
                                                                                                  [href] =&gt; https://api.sandbox.paypal.com/v1/payments/sale/XXXXXXXXXXXXXXXX/refund
                                                                                                  [rel] =&gt; refund
                                                                                                  [method] =&gt; POST
                                                                                              )
  
                                                                                      )
  
                                                                                  [2] =&gt; PayPal\Api\Links Object
                                                                                      (
                                                                                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                                                                                              (
                                                                                                  [href] =&gt; https://api.sandbox.paypal.com/v1/payments/payment/PAY-XXXXXXXXXXXXXXXX
                                                                                                  [rel] =&gt; parent_payment
                                                                                                  [method] =&gt; GET
                                                                                              )
  
                                                                                      )
  
                                                                              )
  
                                                                      )
  
                                                              )
  
                                                      )
  
                                              )
  
                                      )
  
                              )
  
                      )
  
              )
  
          [links] =&gt; Array
              (
                  [0] =&gt; PayPal\Api\Links Object
                      (
                          [_propMap:PayPal\Common\PPModel:private] =&gt; Array
                              (
                                  [href] =&gt; https://api.sandbox.paypal.com/v1/payments/payment/PAY-XXXXXXXXXXXXXXX
                                  [rel] =&gt; self
                                  [method] =&gt; GET
                              )
  
                      )
  
              )
  
      )
  
   )
  </code></pre>
  
  <p>However,you can notice that I don't get a refund object.
  How to get the refund object, I want to use it later to refund users.
  Is it related to the configuration in the paypal account?</p>