PayPal\Api\Capture::setParentPayment PHP Метод

setParentPayment() публичный Метод

The ID of the payment 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

Пример #1
0
 public static function createCapture()
 {
     $capture = new Capture();
     $capture->setCreateTime(self::$create_time);
     $capture->setId(self::$id);
     $capture->setParentPayment(self::$parent_payment);
     $capture->setState(self::$state);
     return $capture;
 }