PayPal\Api\PaymentDetail::getMethod PHP Method

getMethod() public method

The payment mode or method. Required with the EXTERNAL payment type.
public getMethod ( ) : string
return string
    public function getMethod()
    {
        return $this->method;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param PaymentDetail $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getTransactionId(), "TestSample");
     $this->assertEquals($obj->getTransactionType(), "TestSample");
     $this->assertEquals($obj->getDate(), "TestSample");
     $this->assertEquals($obj->getMethod(), "TestSample");
     $this->assertEquals($obj->getNote(), "TestSample");
 }
All Usage Examples Of PayPal\Api\PaymentDetail::getMethod