PayPal\Api\Refund::setParentPayment PHP Method

setParentPayment() public method

ID of the payment resource on which this transaction is based.
public setParentPayment ( string $parent_payment )
$parent_payment string
    public function setParentPayment($parent_payment)
    {
        $this->parent_payment = $parent_payment;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public static function createRefund()
 {
     $refund = new Refund();
     $refund->setCreateTime(self::$createTime);
     $refund->setAmount(AmountTest::createAmount());
     $refund->setCaptureId(self::$captureId);
     $refund->setId(self::$id);
     $refund->setLinks(array(LinksTest::getObject()));
     $refund->setParentPayment(self::$parentPayment);
     return $refund;
 }