PayPal\Api\PayoutItem::getReceiver PHP Method

getReceiver() public method

The receiver of the payment. Corresponds to the recipient_type value in the request.
public getReceiver ( ) : string
return string
    public function getReceiver()
    {
        return $this->receiver;
    }

Usage Example

Esempio n. 1
0
 /**
  * @depends testSerializationDeserialization
  * @param PayoutItem $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getRecipientType(), "TestSample");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getNote(), "TestSample");
     $this->assertEquals($obj->getReceiver(), "TestSample");
     $this->assertEquals($obj->getSenderItemId(), "TestSample");
 }