PluginProbe ʕ •ᴥ•ʔ
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress / 4.17.1
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress v4.17.1
4.17.1 4.17.0 4.16.19 4.16.18 4.16.17 4.16.16 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5a 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.7 1.7.1 1.7.2 1.8 1.8.1 1.8.10 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.1.9 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.2 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 3.0 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.14 3.2.15 3.2.16 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10.0 4.10.1 4.10.2 4.10.3 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.15.0 4.15.1 4.15.10 4.15.11 4.15.12 4.15.13 4.15.14 4.15.15 4.15.16 4.15.17 4.15.18 4.15.19 4.15.2 4.15.20 4.15.20.1 4.15.21 4.15.22 4.15.23 4.15.24 4.15.25 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.0 4.16.1 4.16.10 4.16.11 4.16.12 4.16.13 4.16.14 4.16.15 4.16.2 4.16.3 4.16.4 4.16.5 4.16.6 4.16.7 4.16.8 4.16.9 4.2.0 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.6.0 4.7.0 4.8.0 4.9.0
wp-user-avatar / third-party / vendor / stripe / stripe-php / lib / Identity / VerificationSession.php
wp-user-avatar / third-party / vendor / stripe / stripe-php / lib / Identity Last commit date
VerificationReport.php 2 months ago VerificationSession.php 2 months ago
VerificationSession.php
168 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4 namespace ProfilePressVendor\Stripe\Identity;
5
6 /**
7 * A VerificationSession guides you through the process of collecting and verifying the identities
8 * of your users. It contains details about the type of verification, such as what <a href="/docs/identity/verification-checks">verification
9 * check</a> to perform. Only create one VerificationSession for
10 * each verification in your system.
11 *
12 * A VerificationSession transitions through <a href="/docs/identity/how-sessions-work">multiple
13 * statuses</a> throughout its lifetime as it progresses through
14 * the verification flow. The VerificationSession contains the user's verified data after
15 * verification checks are complete.
16 *
17 * Related guide: <a href="https://stripe.com/docs/identity/verification-sessions">The Verification Sessions API</a>
18 *
19 * @property string $id Unique identifier for the object.
20 * @property string $object String representing the object's type. Objects of the same type share the same value.
21 * @property null|string $client_reference_id A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
22 * @property null|string $client_secret The short-lived client secret used by Stripe.js to <a href="https://stripe.com/docs/js/identity/modal">show a verification modal</a> inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on <a href="https://stripe.com/docs/identity/verification-sessions#client-secret">passing the client secret to the frontend</a> to learn more.
23 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
24 * @property null|\Stripe\StripeObject $last_error If present, this property tells you the last error encountered when processing the verification.
25 * @property null|string|\Stripe\Identity\VerificationReport $last_verification_report ID of the most recent VerificationReport. <a href="https://stripe.com/docs/identity/verification-sessions#results">Learn more about accessing detailed verification results.</a>
26 * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
27 * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
28 * @property null|\Stripe\StripeObject $options A set of options for the session’s verification checks.
29 * @property null|\Stripe\StripeObject $provided_details Details provided about the user being verified. These details may be shown to the user.
30 * @property null|\Stripe\StripeObject $redaction Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
31 * @property null|string $related_customer Token referencing a Customer resource.
32 * @property string $status Status of this VerificationSession. <a href="https://stripe.com/docs/identity/how-sessions-work">Learn more about the lifecycle of sessions</a>.
33 * @property string $type The type of <a href="https://stripe.com/docs/identity/verification-checks">verification check</a> to be performed.
34 * @property null|string $url The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on <a href="https://stripe.com/docs/identity/verify-identity-documents?platform=web&amp;type=redirect">verifying identity documents</a> to learn how to redirect users to Stripe.
35 * @property null|string $verification_flow The configuration token of a verification flow from the dashboard.
36 * @property null|\Stripe\StripeObject $verified_outputs The user’s verified data.
37 */
38 class VerificationSession extends \ProfilePressVendor\Stripe\ApiResource
39 {
40 const OBJECT_NAME = 'identity.verification_session';
41 use \ProfilePressVendor\Stripe\ApiOperations\Update;
42 const STATUS_CANCELED = 'canceled';
43 const STATUS_PROCESSING = 'processing';
44 const STATUS_REQUIRES_INPUT = 'requires_input';
45 const STATUS_VERIFIED = 'verified';
46 const TYPE_DOCUMENT = 'document';
47 const TYPE_ID_NUMBER = 'id_number';
48 const TYPE_VERIFICATION_FLOW = 'verification_flow';
49 /**
50 * Creates a VerificationSession object.
51 *
52 * After the VerificationSession is created, display a verification modal using the
53 * session <code>client_secret</code> or send your users to the session’s
54 * <code>url</code>.
55 *
56 * If your API key is in test mode, verification checks won’t actually process,
57 * though everything else will occur as if in live mode.
58 *
59 * Related guide: <a href="/docs/identity/verify-identity-documents">Verify your
60 * users’ identity documents</a>
61 *
62 * @param null|array $params
63 * @param null|array|string $options
64 *
65 * @throws \Stripe\Exception\ApiErrorException if the request fails
66 *
67 * @return \Stripe\Identity\VerificationSession the created resource
68 */
69 public static function create($params = null, $options = null)
70 {
71 self::_validateParams($params);
72 $url = static::classUrl();
73 list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
74 $obj = \ProfilePressVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
75 $obj->setLastResponse($response);
76 return $obj;
77 }
78 /**
79 * Returns a list of VerificationSessions.
80 *
81 * @param null|array $params
82 * @param null|array|string $opts
83 *
84 * @throws \Stripe\Exception\ApiErrorException if the request fails
85 *
86 * @return \Stripe\Collection<\Stripe\Identity\VerificationSession> of ApiResources
87 */
88 public static function all($params = null, $opts = null)
89 {
90 $url = static::classUrl();
91 return static::_requestPage($url, \ProfilePressVendor\Stripe\Collection::class, $params, $opts);
92 }
93 /**
94 * Retrieves the details of a VerificationSession that was previously created.
95 *
96 * When the session status is <code>requires_input</code>, you can use this method
97 * to retrieve a valid <code>client_secret</code> or <code>url</code> to allow
98 * re-submission.
99 *
100 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
101 * @param null|array|string $opts
102 *
103 * @throws \Stripe\Exception\ApiErrorException if the request fails
104 *
105 * @return \Stripe\Identity\VerificationSession
106 */
107 public static function retrieve($id, $opts = null)
108 {
109 $opts = \ProfilePressVendor\Stripe\Util\RequestOptions::parse($opts);
110 $instance = new static($id, $opts);
111 $instance->refresh();
112 return $instance;
113 }
114 /**
115 * Updates a VerificationSession object.
116 *
117 * When the session status is <code>requires_input</code>, you can use this method
118 * to update the verification check and options.
119 *
120 * @param string $id the ID of the resource to update
121 * @param null|array $params
122 * @param null|array|string $opts
123 *
124 * @throws \Stripe\Exception\ApiErrorException if the request fails
125 *
126 * @return \Stripe\Identity\VerificationSession the updated resource
127 */
128 public static function update($id, $params = null, $opts = null)
129 {
130 self::_validateParams($params);
131 $url = static::resourceUrl($id);
132 list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
133 $obj = \ProfilePressVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
134 $obj->setLastResponse($response);
135 return $obj;
136 }
137 /**
138 * @param null|array $params
139 * @param null|array|string $opts
140 *
141 * @throws \Stripe\Exception\ApiErrorException if the request fails
142 *
143 * @return \Stripe\Identity\VerificationSession the canceled verification session
144 */
145 public function cancel($params = null, $opts = null)
146 {
147 $url = $this->instanceUrl() . '/cancel';
148 list($response, $opts) = $this->_request('post', $url, $params, $opts);
149 $this->refreshFrom($response, $opts);
150 return $this;
151 }
152 /**
153 * @param null|array $params
154 * @param null|array|string $opts
155 *
156 * @throws \Stripe\Exception\ApiErrorException if the request fails
157 *
158 * @return \Stripe\Identity\VerificationSession the redacted verification session
159 */
160 public function redact($params = null, $opts = null)
161 {
162 $url = $this->instanceUrl() . '/redact';
163 list($response, $opts) = $this->_request('post', $url, $params, $opts);
164 $this->refreshFrom($response, $opts);
165 return $this;
166 }
167 }
168