PayPal\Api\Details::getInsurance PHP 메소드

getInsurance() 공개 메소드

Amount being charged for the insurance fee. Only supported when the payment_method is set to paypal.
public getInsurance ( ) : string
리턴 string
    public function getInsurance()
    {
        return $this->insurance;
    }

Usage Example

예제 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Details $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getSubtotal(), "12.34");
     $this->assertEquals($obj->getShipping(), "12.34");
     $this->assertEquals($obj->getTax(), "12.34");
     $this->assertEquals($obj->getHandlingFee(), "12.34");
     $this->assertEquals($obj->getShippingDiscount(), "12.34");
     $this->assertEquals($obj->getInsurance(), "12.34");
     $this->assertEquals($obj->getGiftWrap(), "12.34");
     $this->assertEquals($obj->getFee(), "12.34");
 }