mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 03:44:53 +00:00
Updated Client Detail Header for better mobile fit, lots of progress on stripe pay and some other minor updates
This commit is contained in:
63
vendor/stripe-php-7.0.2/lib/PaymentMethod.php
vendored
Normal file
63
vendor/stripe-php-7.0.2/lib/PaymentMethod.php
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe;
|
||||
|
||||
/**
|
||||
* Class PaymentMethod
|
||||
*
|
||||
* @property string $id
|
||||
* @property string $object
|
||||
* @property mixed $billing_details
|
||||
* @property mixed $card
|
||||
* @property mixed $card_present
|
||||
* @property int $created
|
||||
* @property string $customer
|
||||
* @property mixed $ideal
|
||||
* @property bool $livemode
|
||||
* @property StripeObject $metadata
|
||||
* @property mixed $sepa_debit
|
||||
* @property string $type
|
||||
*
|
||||
* @package Stripe
|
||||
*/
|
||||
class PaymentMethod extends ApiResource
|
||||
{
|
||||
const OBJECT_NAME = "payment_method";
|
||||
|
||||
use ApiOperations\All;
|
||||
use ApiOperations\Create;
|
||||
use ApiOperations\Retrieve;
|
||||
use ApiOperations\Update;
|
||||
|
||||
/**
|
||||
* @param array|null $params
|
||||
* @param array|string|null $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return PaymentMethod The attached payment method.
|
||||
*/
|
||||
public function attach($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/attach';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|null $params
|
||||
* @param array|string|null $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return PaymentMethod The detached payment method.
|
||||
*/
|
||||
public function detach($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/detach';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user