WC_Stripe_API_Operation
in package

Used as a wrapper for API requests to Stripe.

Allows method chaining so things like mode can be set intuitively.

Tags
since
3.1.6
author

PaymentPlugins

Table of Contents

Properties

$client  : StripeClient
$gateway  : WC_Stripe_Gateway
$mode  : string
$property  : string
$service  : AbstractService

Methods

__call()  : mixed
Wrapper for Stripe API operations.
__construct()  : mixed
mode()  : $this
parse_args()  : mixed
Given an array of arguments, add method defaults to the array of args based on their existance.
sanitize_request_args()  : void
Prevents any unwanted arguments from being added to a Stripe request.

Properties

Methods

__call()

Wrapper for Stripe API operations.

public __call(string $method, array<string|int, mixed> $args) : mixed

This way, all exceptions can be caught gracefully.

Parameters
$method : string
$args : array<string|int, mixed>
Tags
throws
InvalidArgumentException

parse_args()

Given an array of arguments, add method defaults to the array of args based on their existance.

private parse_args(array<string|int, mixed> $args, string $method) : mixed
Parameters
$args : array<string|int, mixed>
$method : string

sanitize_request_args()

Prevents any unwanted arguments from being added to a Stripe request.

private sanitize_request_args(mixed $args, mixed $method) : void
Parameters
$args : mixed
$method : mixed
Tags
since
3.3.61

        
On this page

Search results