PayPal\Api\Authorization::setParentPayment PHP Method

setParentPayment() public method

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

Usage Example

Ejemplo n.º 1
0
 public function setup()
 {
     $authorization = new Authorization();
     $authorization->setCreateTime(self::$create_time);
     $authorization->setId(self::$id);
     $authorization->setState(self::$state);
     $authorization->setParentPayment(self::$parent_payment);
     $this->authorizations['partial'] = $authorization;
     $this->authorizations['full'] = self::createAuthorization();
 }
All Usage Examples Of PayPal\Api\Authorization::setParentPayment