getRecipientType() public method

The type of ID that identifies the payment receiver. Value is:
    EMAIL. Unencrypted email. Value is a string of up to 127 single-byte characters.
  • PHONE. Unencrypted phone number.
    Note: The PayPal sandbox does not support the PHONE recipient type.
  • PAYPAL_ID. Encrypted PayPal account number.
If the sender_batch_header includes the recipient_type attribute, any payout item without its own recipient_type attribute uses the recipient_type value from sender_batch_header. If the sender_batch_header omits the recipient_type attribute, each payout item must include its own recipient_type value.
public getRecipientType ( ) : string
return string
Beispiel #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");
 }