StripeAPI6
in package
Tags
Table of Contents
- API_VERSION = '2019-10-17'
- PARTNER_ID = 'pp_partner_Fs0jSMbknaJwVC'
- $loaderRegistered : mixed
- $secretKey : mixed
- __construct() : mixed
- chargeSource() : Source
- checkMinimumAmount() : bool
- Checks Stripe minimum amount value authorized per currency.
- confirmPaymentIntent() : mixed
- convertToSmallestUnit() : int
- See also convertToSmallestUnit() in stripe-gateway.js.
- createPaymentIntent() : PaymentIntent|WP_Error
- getMinimumAmount() : float
- retrievePaymentIntent() : mixed
- retrieveSource() : mixed
- updateDescription() : true|WP_Error
- registerLoader() : mixed
- setApp() : mixed
Constants
API_VERSION
public
mixed
API_VERSION
= '2019-10-17'
PARTNER_ID
public
mixed
PARTNER_ID
= 'pp_partner_Fs0jSMbknaJwVC'
Properties
$loaderRegistered
protected
static mixed
$loaderRegistered
= false
$secretKey
protected
mixed
$secretKey
= ''
Methods
__construct()
public
__construct(mixed $gatewaySettings) : mixed
Parameters
- $gatewaySettings : mixed
Return values
mixed —chargeSource()
public
chargeSource(string $sourceId, float $amount[, string $description = '' ][, string $currency = null ]) : Source
Parameters
- $sourceId : string
- $amount : float
- $description : string = ''
- $currency : string = null
Tags
Return values
Source —checkMinimumAmount()
Checks Stripe minimum amount value authorized per currency.
public
checkMinimumAmount(float $amount, string $currency) : bool
Parameters
- $amount : float
- $currency : string
Return values
bool —confirmPaymentIntent()
public
confirmPaymentIntent(mixed $paymentIntent) : mixed
Parameters
- $paymentIntent : mixed
Return values
mixed —convertToSmallestUnit()
See also convertToSmallestUnit() in stripe-gateway.js.
public
convertToSmallestUnit(float $amount[, string $currency = null ]) : int
Parameters
- $amount : float
- $currency : string = null
Return values
int —createPaymentIntent()
public
createPaymentIntent(float $amount[, string $description = '' ][, string $currency = null ][, array<string|int, mixed> $atts = array() ][, mixed $paymentMethodId = null ]) : PaymentIntent|WP_Error
Parameters
- $amount : float
- $description : string = ''
- $currency : string = null
- $atts : array<string|int, mixed> = array()
- $paymentMethodId : mixed = null
Tags
Return values
PaymentIntent|WP_Error —getMinimumAmount()
public
getMinimumAmount(string $currency) : float
Parameters
- $currency : string
Return values
float —retrievePaymentIntent()
public
retrievePaymentIntent(mixed $paymentIntentId) : mixed
Parameters
- $paymentIntentId : mixed
Return values
mixed —retrieveSource()
public
retrieveSource(mixed $sourceId) : mixed
Parameters
- $sourceId : mixed
Return values
mixed —updateDescription()
public
updateDescription(PaymentIntent $paymentIntent, string $description) : true|WP_Error
Parameters
- $paymentIntent : PaymentIntent
- $description : string
Tags
Return values
true|WP_Error —registerLoader()
protected
registerLoader() : mixed
Return values
mixed —setApp()
protected
setApp() : mixed