WC_Stripe_Gateway
in package

Gateway class that abstracts all API calls to Stripe.

Tags
author

Payment Plugins

Table of Contents

Properties

$accountLinks  : AccountLinkService
$accounts  : AccountService
$applePayDomains  : ApplePayDomainService
$applicationFees  : ApplicationFeeService
$balance  : BalanceService
$balanceTransactions  : BalanceTransactionService
$billingPortal  : BillingPortalServiceFactory
$charges  : ChargeService
$checkout  : CheckoutServiceFactory
$countrySpecs  : CountrySpecService
$coupons  : CouponService
$creditNotes  : CreditNoteService
$customers  : CustomerService
$disputes  : DisputeService
$ephemeralKeys  : EphemeralKeyService
$events  : EventService
$exchangeRates  : ExchangeRateService
$fileLinks  : FileLinkService
$files  : FileService
$invoiceItems  : InvoiceItemService
$invoices  : InvoiceService
$issuing  : IssuingServiceFactory
$mandates  : MandateService
$orderReturns  : OrderReturnService
$orders  : OrderService
$paymentIntents  : PaymentIntentService
$paymentMethodConfigurations  : PaymentMethodConfigurationService
$paymentMethods  : PaymentMethodService
$payouts  : PayoutService
$plans  : PlanService
$prices  : PriceService
$products  : ProductService
$radar  : RadarServiceFactory
$refunds  : RefundService
$reporting  : ReportingServiceFactory
$reviews  : ReviewService
$setupIntents  : SetupIntentService
$sigma  : SigmaServiceFactory
$skus  : SkuService
$sources  : SourceService
$subscriptionItems  : SubscriptionItemService
$subscriptions  : SubscriptionService
$subscriptionSchedules  : SubscriptionScheduleService
$taxRates  : TaxRateService
$terminal  : TerminalServiceFactory
$tokens  : TokenService
$topups  : TopupService
$transfers  : TransferService
$webhookEndpoints  : WebhookEndpointService
$client  : StripeClient
$messages  : mixed
$mode  : Stripe
$secret_key  : string

Methods

__construct()  : mixed
__get()  : mixed
attach_payment_method()  : mixed
cancel_payment_intent()  : mixed
capture()  : mixed
capture_payment_intent()  : mixed
charge()  : mixed
confirm_payment_intent()  : mixed
create_customer()  : WP_Error|string
Create a customer within Stripe.
create_customer_source()  : WP_Error|Source
create_payment_intent()  : WP_Error|PaymentIntent
create_payment_method()  : WP_Error|PaymentMethod
create_setup_intent()  : mixed
create_source()  : WP_Error|Source
create_webhook()  : mixed
delete_card()  : mixed
delete_domain()  : mixed
delete_payment_method()  : mixed
fetch_customer()  : mixed
fetch_customers()  : mixed
fetch_domains()  : mixed
fetch_payment_intent()  : WP_Error|PaymentIntent
fetch_payment_method()  : mixed
fetch_payment_methods()  : mixed
fetch_payment_source()  : WP_Error|Source
fetch_setup_intent()  : WP_Error|SetupIntent
fetch_webhook()  : mixed
get_api_options()  : mixed
get_charge()  : Charge|WP_Error
get_payment_method()  : mixed
get_wp_error()  : mixed
init()  : mixed
load()  : WC_Stripe_Gateway
mode()  : $this
refund()  : mixed
register_domain()  : mixed
set_mode()  : mixed
update_customer()  : mixed
update_payment_intent()  : mixed
update_source()  : mixed
update_webhook()  : mixed
webhooks()  : mixed
get_client_config()  : mixed
get_error_message()  : string

Properties

Methods

__construct()

public __construct([mixed $mode = null ][, mixed $secret_key = null ][, mixed $config = array() ]) : mixed
Parameters
$mode : mixed = null
$secret_key : mixed = null
$config : mixed = array()

attach_payment_method()

public attach_payment_method(mixed $id[, array<string|int, mixed> $args = array() ][, string $mode = '' ]) : mixed
Parameters
$id : mixed
$args : array<string|int, mixed> = array()
$mode : string = ''

cancel_payment_intent()

public cancel_payment_intent(PaymentIntent|string $id[, string $mode = '' ]) : mixed
Parameters
$id : PaymentIntent|string
$mode : string = ''

capture_payment_intent()

public capture_payment_intent(mixed $id[, mixed $args = array() ][, mixed $mode = '' ]) : mixed
Parameters
$id : mixed
$args : mixed = array()
$mode : mixed = ''

confirm_payment_intent()

public confirm_payment_intent(mixed $id[, array<string|int, mixed> $args = array() ][, string $mode = '' ]) : mixed
Parameters
$id : mixed
$args : array<string|int, mixed> = array()
$mode : string = ''

create_customer()

Create a customer within Stripe.

public create_customer(array<string|int, mixed> $args[, mixed $mode = '' ]) : WP_Error|string
Parameters
$args : array<string|int, mixed>
$mode : mixed = ''
Return values
WP_Error|string

create_customer_source()

public create_customer_source(string $customer_id, string $id[, string $mode = '' ]) : WP_Error|Source
Parameters
$customer_id : string
$id : string
$mode : string = ''
Return values
WP_Error|Source

create_payment_intent()

public create_payment_intent(array<string|int, mixed> $args[, string $mode = '' ]) : WP_Error|PaymentIntent
Parameters
$args : array<string|int, mixed>
$mode : string = ''
Return values
WP_Error|PaymentIntent

create_payment_method()

public create_payment_method(array<string|int, mixed> $args[, string $mode = '' ]) : WP_Error|PaymentMethod
Parameters
$args : array<string|int, mixed>
$mode : string = ''
Return values
WP_Error|PaymentMethod

create_source()

public create_source(array<string|int, mixed> $args[, string $mode = '' ]) : WP_Error|Source
Parameters
$args : array<string|int, mixed>
$mode : string = ''
Return values
WP_Error|Source

create_webhook()

public create_webhook(mixed $url, mixed $events[, mixed $mode = '' ]) : mixed
Parameters
$url : mixed
$events : mixed
$mode : mixed = ''

delete_card()

public delete_card(string $id, string $customer[, string $mode = '' ]) : mixed
Parameters
$id : string
$customer : string
$mode : string = ''

fetch_payment_intent()

public fetch_payment_intent(string $id[, string $mode = '' ]) : WP_Error|PaymentIntent
Parameters
$id : string
$mode : string = ''
Return values
WP_Error|PaymentIntent

fetch_payment_methods()

public fetch_payment_methods(mixed $customer_id[, mixed $mode = '' ][, mixed $type = 'card' ]) : mixed
Parameters
$customer_id : mixed
$mode : mixed = ''
$type : mixed = 'card'

fetch_payment_source()

public fetch_payment_source(string $id[, string $mode = '' ]) : WP_Error|Source
Parameters
$id : string
$mode : string = ''
Return values
WP_Error|Source

fetch_setup_intent()

public fetch_setup_intent(string $id[, string $mode = '' ]) : WP_Error|SetupIntent
Parameters
$id : string
$mode : string = ''
Return values
WP_Error|SetupIntent

get_charge()

public get_charge(string $charge_id[, string $mode = '' ]) : Charge|WP_Error
Parameters
$charge_id : string
$mode : string = ''
Return values
Charge|WP_Error

get_wp_error()

public get_wp_error(ApiErrorException $e[, string $code = 'stripe-error' ]) : mixed
Parameters
$e : ApiErrorException
$code : string = 'stripe-error'
Tags
since
3.1.1

update_customer()

public update_customer(mixed $id, mixed $args[, mixed $mode = '' ]) : mixed
Parameters
$id : mixed
$args : mixed
$mode : mixed = ''

update_payment_intent()

public update_payment_intent(mixed $id, array<string|int, mixed> $args[, string $mode = '' ]) : mixed
Parameters
$id : mixed
$args : array<string|int, mixed>
$mode : string = ''

update_source()

public update_source(string $source_id, array<string|int, mixed> $args[, string $mode = '' ]) : mixed
Parameters
$source_id : string
$args : array<string|int, mixed>
$mode : string = ''
Tags
since
3.0.2

update_webhook()

public update_webhook(mixed $id, mixed $params[, mixed $mode = '' ]) : mixed
Parameters
$id : mixed
$params : mixed
$mode : mixed = ''

        
On this page

Search results