• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / #7386

07 Sep 2023 04:06PM UTC coverage: 70.635% (-0.3%) from 70.886%
#7386

push

php-coveralls

web-flow
Update generated code (#1571)

* Update generated code for v500

* Update generated code for v503

* Update generated code for v504

* Update generated code for v507

* Update generated code for v510

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

9 of 9 new or added lines in 2 files covered. (100.0%)

1792 of 2537 relevant lines covered (70.63%)

3.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/Service/PaymentMethodDomainService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service;
6

7
class PaymentMethodDomainService extends \Stripe\Service\AbstractService
8
{
9
    /**
10
     * Lists the details of existing payment method domains.
11
     *
12
     * @param null|array $params
13
     * @param null|array|\Stripe\Util\RequestOptions $opts
14
     *
15
     * @throws \Stripe\Exception\ApiErrorException if the request fails
16
     *
17
     * @return \Stripe\Collection<\Stripe\PaymentMethodDomain>
18
     */
19
    public function all($params = null, $opts = null)
20
    {
21
        return $this->requestCollection('get', '/v1/payment_method_domains', $params, $opts);
×
22
    }
23

24
    /**
25
     * Creates a payment method domain.
26
     *
27
     * @param null|array $params
28
     * @param null|array|\Stripe\Util\RequestOptions $opts
29
     *
30
     * @throws \Stripe\Exception\ApiErrorException if the request fails
31
     *
32
     * @return \Stripe\PaymentMethodDomain
33
     */
34
    public function create($params = null, $opts = null)
35
    {
36
        return $this->request('post', '/v1/payment_method_domains', $params, $opts);
×
37
    }
38

39
    /**
40
     * Retrieves the details of an existing payment method domain.
41
     *
42
     * @param string $id
43
     * @param null|array $params
44
     * @param null|array|\Stripe\Util\RequestOptions $opts
45
     *
46
     * @throws \Stripe\Exception\ApiErrorException if the request fails
47
     *
48
     * @return \Stripe\PaymentMethodDomain
49
     */
50
    public function retrieve($id, $params = null, $opts = null)
51
    {
52
        return $this->request('get', $this->buildPath('/v1/payment_method_domains/%s', $id), $params, $opts);
×
53
    }
54

55
    /**
56
     * Updates an existing payment method domain.
57
     *
58
     * @param string $id
59
     * @param null|array $params
60
     * @param null|array|\Stripe\Util\RequestOptions $opts
61
     *
62
     * @throws \Stripe\Exception\ApiErrorException if the request fails
63
     *
64
     * @return \Stripe\PaymentMethodDomain
65
     */
66
    public function update($id, $params = null, $opts = null)
67
    {
68
        return $this->request('post', $this->buildPath('/v1/payment_method_domains/%s', $id), $params, $opts);
×
69
    }
70

71
    /**
72
     * Some payment methods such as Apple Pay require additional steps to verify a
73
     * domain. If the requirements weren’t satisfied when the domain was created, the
74
     * payment method will be inactive on the domain. The payment method doesn’t appear
75
     * in Elements for this domain until it is active.
76
     *
77
     * To activate a payment method on an existing payment method domain, complete the
78
     * required validation steps specific to the payment method, and then validate the
79
     * payment method domain with this endpoint.
80
     *
81
     * Related guides: <a
82
     * href="/docs/payments/payment-methods/pmd-registration">Payment method
83
     * domains</a>.
84
     *
85
     * @param string $id
86
     * @param null|array $params
87
     * @param null|array|\Stripe\Util\RequestOptions $opts
88
     *
89
     * @throws \Stripe\Exception\ApiErrorException if the request fails
90
     *
91
     * @return \Stripe\PaymentMethodDomain
92
     */
93
    public function validate($id, $params = null, $opts = null)
94
    {
95
        return $this->request('post', $this->buildPath('/v1/payment_method_domains/%s/validate', $id), $params, $opts);
×
96
    }
97
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc