/home/techb158/dev.balacoffee.com/vendor/stripe/stripe-php/lib/Service
NameSizeModeActions
BillingPortal/-0755rm
Checkout/-0755rm
FinancialConnections/-0755rm
Identity/-0755rm
Issuing/-0755rm
Radar/-0755rm
Reporting/-0755rm
Sigma/-0755rm
Terminal/-0755rm
TestHelpers/-0755rm
AbstractService.php27950644editdlrm
AbstractServiceFactory.php14760644editdlrm
AccountLinkService.php7180644editdlrm
AccountService.php136380644editdlrm
ApplePayDomainService.php19810644editdlrm
ApplicationFeeService.php47780644editdlrm
BalanceService.php7810644editdlrm
BalanceTransactionService.php15780644editdlrm
ChargeService.php45660644editdlrm
CoreServiceFactory.php60930644editdlrm
CountrySpecService.php11060644editdlrm
CouponService.php36920644editdlrm
CreditNoteService.php56710644editdlrm
CustomerService.php162840644editdlrm
DisputeService.php28810644editdlrm
EphemeralKeyService.php12890644editdlrm
EventService.php14390644editdlrm
ExchangeRateService.php12650644editdlrm
FileLinkService.php19940644editdlrm
FileService.php21050644editdlrm
InvoiceItemService.php30510644editdlrm
InvoiceService.php116680644editdlrm
MandateService.php6040644editdlrm
OAuthService.php48590644editdlrm
OrderReturnService.php13770644editdlrm
OrderService.php35410644editdlrm
PaymentIntentService.php120410644editdlrm
PaymentLinkService.php26820644editdlrm
PaymentMethodService.php49130644editdlrm
PayoutService.php46900644editdlrm
PlanService.php27760644editdlrm
PriceService.php29740644editdlrm
ProductService.php38920644editdlrm
PromotionCodeService.php24120644editdlrm
QuoteService.php58760644editdlrm
RefundService.php30180644editdlrm
ReviewService.php17890644editdlrm
SetupAttemptService.php6330644editdlrm
SetupIntentService.php50080644editdlrm
ShippingRateService.php20160644editdlrm
SkuService.php29940644editdlrm
SourceService.php34930644editdlrm
SubscriptionItemService.php58760644editdlrm
SubscriptionScheduleService.php40290644editdlrm
SubscriptionService.php61510644editdlrm
TaxCodeService.php12930644editdlrm
TaxRateService.php20430644editdlrm
TokenService.php12540644editdlrm
TopupService.php26430644editdlrm
TransferService.php63820644editdlrm
WebhookEndpointService.php33890644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php (4913B)
List a Customer’s * PaymentMethods. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection<\Stripe\PaymentMethod> */ public function all($params = null, $opts = null) { return $this->requestCollection('get', '/v1/payment_methods', $params, $opts); } /** * Attaches a PaymentMethod object to a Customer. * * To attach a new PaymentMethod to a customer for future payments, we recommend * you use a SetupIntent or a PaymentIntent * with setup_future_usage. * These approaches will perform any necessary steps to ensure that the * PaymentMethod can be used in a future payment. Using the * /v1/payment_methods/:id/attach endpoint does not ensure that future * payments can be made with the attached PaymentMethod. See Optimizing cards for future * payments for more information about setting up future payments. * * To use this PaymentMethod as the default for invoice or subscription payments, * set invoice_settings.default_payment_method, * on the Customer to the PaymentMethod’s ID. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\PaymentMethod */ public function attach($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/payment_methods/%s/attach', $id), $params, $opts); } /** * Creates a PaymentMethod object. Read the Stripe.js * reference to learn how to create PaymentMethods via Stripe.js. * * Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a * payment immediately or the SetupIntent API to collect payment * method details ahead of a future payment. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\PaymentMethod */ public function create($params = null, $opts = null) { return $this->request('post', '/v1/payment_methods', $params, $opts); } /** * Detaches a PaymentMethod object from a Customer. After a PaymentMethod is * detached, it can no longer be used for a payment or re-attached to a Customer. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\PaymentMethod */ public function detach($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/payment_methods/%s/detach', $id), $params, $opts); } /** * Retrieves a PaymentMethod object. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\PaymentMethod */ public function retrieve($id, $params = null, $opts = null) { return $this->request('get', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts); } /** * Updates a PaymentMethod object. A PaymentMethod must be attached a customer to * be updated. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\PaymentMethod */ public function update($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts); } }