# give/4.18.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 25 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php#L10-L20`.

```php
<?php

// File generated from our OpenAPI spec

namespace Stripe\Service\TestHelpers;

class RefundService extends \Stripe\Service\AbstractService
{
    /**
     * Expire a refund with a status of <code>requires_action</code>.
     *
     * @param string $id
     * @param null|array $params
     * @param null|array|\Stripe\Util\RequestOptions $opts
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\Refund
     */
    public function expire($id, $params = null, $opts = null)
    {
        return $this->request('post', $this->buildPath('/v1/test_helpers/refunds/%s/expire', $id), $params, $opts);
    }
}

```
