PayPal\Api\Refund::setCaptureId PHP Method

setCaptureId() public method

ID of the sale transaction being refunded.
public setCaptureId ( string $capture_id )
$capture_id string
    public function setCaptureId($capture_id)
    {
        $this->capture_id = $capture_id;
        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;
 }