for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Shapin\Stripe\Api;
use Shapin\Stripe\Configuration;
use Shapin\Stripe\Exception;
use Shapin\Stripe\Model\PaymentIntent\Item;
use Shapin\Stripe\Model\PaymentIntent\PaymentIntent as PaymentIntentModel;
use Shapin\Stripe\Model\PaymentIntent\PaymentIntentCollection;
use Symfony\Component\Config\Definition\Processor;
final class PaymentIntent extends HttpApi
{
/**
* @throws Exception
public function get(string $id)
$response = $this->httpGet("/v1/payment_intents/$id");
return $this->hydrator->hydrate($response, PaymentIntentModel::class);
}
public function all(array $params = [])
$response = $this->httpGet('/v1/payment_intents', $params);
return $this->hydrator->hydrate($response, PaymentIntentCollection::class);