PayPal\Api\PaymentOptions::getAllowedPaymentMethod PHP Method

getAllowedPaymentMethod() public method

Payment method requested for this purchase unit
public getAllowedPaymentMethod ( ) : string
return string
    public function getAllowedPaymentMethod()
    {
        return $this->allowed_payment_method;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param PaymentOptions $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getAllowedPaymentMethod(), "TestSample");
     $this->assertEquals($obj->getRecurringFlag(), true);
     $this->assertEquals($obj->getSkipFmf(), true);
 }
All Usage Examples Of PayPal\Api\PaymentOptions::getAllowedPaymentMethod