Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor_p.../stripe/stripe-p.../lib
File: PaymentMethodDomain.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// File generated from our OpenAPI spec
[2] Fix | Delete
namespace WPForms\Vendor\Stripe;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* A payment method domain represents a web domain that you have registered with Stripe.
[6] Fix | Delete
* Stripe Elements use registered payment method domains to control where certain payment methods are shown.
[7] Fix | Delete
*
[8] Fix | Delete
* Related guides: <a href="https://stripe.com/docs/payments/payment-methods/pmd-registration">Payment method domains</a>.
[9] Fix | Delete
*
[10] Fix | Delete
* @property string $id Unique identifier for the object.
[11] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[12] Fix | Delete
* @property \Stripe\StripeObject $apple_pay Indicates the status of a specific payment method on a payment method domain.
[13] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[14] Fix | Delete
* @property string $domain_name The domain name that this payment method domain object represents.
[15] Fix | Delete
* @property bool $enabled Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
[16] Fix | Delete
* @property \Stripe\StripeObject $google_pay Indicates the status of a specific payment method on a payment method domain.
[17] Fix | Delete
* @property \Stripe\StripeObject $link Indicates the status of a specific payment method on a payment method domain.
[18] Fix | Delete
* @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.
[19] Fix | Delete
* @property \Stripe\StripeObject $paypal Indicates the status of a specific payment method on a payment method domain.
[20] Fix | Delete
*/
[21] Fix | Delete
class PaymentMethodDomain extends ApiResource
[22] Fix | Delete
{
[23] Fix | Delete
const OBJECT_NAME = 'payment_method_domain';
[24] Fix | Delete
use ApiOperations\All;
[25] Fix | Delete
use ApiOperations\Create;
[26] Fix | Delete
use ApiOperations\Retrieve;
[27] Fix | Delete
use ApiOperations\Update;
[28] Fix | Delete
/**
[29] Fix | Delete
* @param null|array $params
[30] Fix | Delete
* @param null|array|string $opts
[31] Fix | Delete
*
[32] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[33] Fix | Delete
*
[34] Fix | Delete
* @return \Stripe\PaymentMethodDomain the validated payment method domain
[35] Fix | Delete
*/
[36] Fix | Delete
public function validate($params = null, $opts = null)
[37] Fix | Delete
{
[38] Fix | Delete
$url = $this->instanceUrl() . '/validate';
[39] Fix | Delete
list($response, $opts) = $this->_request('post', $url, $params, $opts);
[40] Fix | Delete
$this->refreshFrom($response, $opts);
[41] Fix | Delete
return $this;
[42] Fix | Delete
}
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function