PayPal\Api\PayerInfo::getAccountNumber PHP Method

getAccountNumber() public method

Account Number representing the Payer
Deprecation: Use #getBuyerAccountNumberInstead
Deprecation: Not publicly available
public getAccountNumber ( ) : string
return string
    public function getAccountNumber()
    {
        return $this->account_number;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param PayerInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getExternalRememberMeId(), "TestSample");
     $this->assertEquals($obj->getAccountNumber(), "TestSample");
     $this->assertEquals($obj->getSalutation(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getMiddleName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getSuffix(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getPhone(), "TestSample");
     $this->assertEquals($obj->getPhoneType(), "TestSample");
     $this->assertEquals($obj->getBirthDate(), "TestSample");
     $this->assertEquals($obj->getTaxId(), "TestSample");
     $this->assertEquals($obj->getTaxIdType(), "TestSample");
     $this->assertEquals($obj->getCountryCode(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
 }