payment_gw_stripe
extends abstract_extension
in package
Extension: stripe_payments - WooCommerce Stripe - ATP Custom Plugin for WordPress
Tags
Table of Contents
- ENABLE_OPTION = 'Stripe Payments'
- GATEWAY_ID = 'stripe'
- STRIPE_CONNECTOR = false
- VERSION = '26.0605.1'
- __construct() : mixed
- constructor method
- addActionsAndFilters() : mixed
- Add filters and actions - called from main plugin
- admin_options_help() : mixed
- Add help tab on admin page
- admin_options_settings() : mixed
- register options on options_settings_page
- initialize() : void
- initialize method - called from main plugin
- remove_payment_gateways() : mixed
- remove a payment gateway - only stripe for single pay
- stripe_captured() : mixed
- Stripe payment marked as captured when status changed to processing
- stripe_payment() : mixed
- Stripe payment body
- stripe_process() : mixed
- Stripe process
- stripe_request() : mixed
- Stripe request body
- stripe_response() : mixed
- Stripe response
- stripe_validate() : null
- Validate the Stripe request
Constants
ENABLE_OPTION
public
string|array<string|int, mixed>|bool
ENABLE_OPTION
= 'Stripe Payments'
to set (or disable) default group display/switch
GATEWAY_ID
public
string
GATEWAY_ID
= 'stripe'
payment gateway id
STRIPE_CONNECTOR
public
bool
STRIPE_CONNECTOR
= false
Stripe Connector for NetSuite If the "Stripe Connector for NetSuite" is installed (in Stripe & NetSuite) then we don't need to pass the order through the salesorder api.
VERSION
public
string
VERSION
= '26.0605.1'
extension version
Methods
__construct()
constructor method
public
__construct(object $plugin) : mixed
Parameters
- $plugin : object
-
main plugin object
Return values
mixed —addActionsAndFilters()
Add filters and actions - called from main plugin
public
addActionsAndFilters() : mixed
Return values
mixed —admin_options_help()
Add help tab on admin page
public
admin_options_help() : mixed
Return values
mixed —admin_options_settings()
register options on options_settings_page
public
admin_options_settings() : mixed
Tags
Return values
mixed —initialize()
initialize method - called from main plugin
public
initialize() : void
Return values
void —remove_payment_gateways()
remove a payment gateway - only stripe for single pay
public
remove_payment_gateways(mixed $gateways) : mixed
woocommerce_available_payment_gateways
Parameters
- $gateways : mixed
Return values
mixed —stripe_captured()
Stripe payment marked as captured when status changed to processing
public
stripe_captured(mixed $order_id, WC_Order $order, array<string|int, mixed> $status_transition) : mixed
Parameters
- $order_id : mixed
- $order : WC_Order
-
Order object.
- $status_transition : array<string|int, mixed>
-
{ Status transition data.
@type string $from Order status from. @type string $to Order status to @type string $note Order note. @type boolean $manual True if the order is manually changed.}
Return values
mixed —stripe_payment()
Stripe payment body
public
stripe_payment(mixed $post_data, mixed $order, mixed $prepared_payment_method) : mixed
Parameters
- $post_data : mixed
- $order : mixed
- $prepared_payment_method : mixed
Return values
mixed —stripe_process()
Stripe process
public
stripe_process(mixed $response, mixed $order) : mixed
Parameters
- $response : mixed
- $order : mixed
Return values
mixed —stripe_request()
Stripe request body
public
stripe_request(mixed $request, mixed $api) : mixed
Parameters
- $request : mixed
- $api : mixed
Return values
mixed —stripe_response()
Stripe response
public
stripe_response(mixed $response, mixed $order) : mixed
Parameters
- $response : mixed
- $order : mixed
Return values
mixed —stripe_validate()
Validate the Stripe request
public
stripe_validate(array<string|int, mixed> $fields, mixed $errors) : null
Parameters
- $fields : array<string|int, mixed>
-
form fields
- $errors : mixed