PayPal\Api\CreditCardToken::getType PHP Method

getType() public method

Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.
public getType ( ) : string
return string
    public function getType()
    {
        return $this->type;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param CreditCardToken $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getCreditCardId(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getLast4(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getExpireMonth(), 123);
     $this->assertEquals($obj->getExpireYear(), 123);
 }