Stripe
Stripe payment method integration
Description Description
Temporary integration of the stripe payment method for the new cart and checkout blocks. Once the api is demonstrated to be stable, this integration will be moved to the Stripe extension
Source Source
File: packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
Methods Methods
- __construct — Constructor
- add_order_meta — Handles adding information about the payment request type used to the order meta.
- add_payment_request_order_meta — Add payment request data to the order meta as hooked on the woocommerce_rest_checkout_process_payment_with_context action.
- add_stripe_intents — Handles any potential stripe intents on the order that need handled.
- get_allow_payment_request — Determine if store allows Payment Request buttons - e.g. Apple Pay / Chrome Pay.
- get_allow_prepaid_card — Returns whether to allow prepaid cards for payments.
- get_button_height — Return the height for the payment button.
- get_button_locale — Return the locale for the payment button.
- get_button_theme — Return the theme to use for the payment button.
- get_button_type — Return the button type for the payment button.
- get_icons — Return the icons urls.
- get_inline_cc_form — Return the inline cc option.
- get_payment_method_data — Returns an array of key=>value pairs of data made available to the payment methods script.
- get_payment_method_script_handles — Returns an array of scripts/handles to be registered for this payment method.
- get_publishable_key — Returns the publishable api key for the Stripe service.
- get_show_save_option — Determine if the checkbox to enable the user to save their payment method should be shown.
- get_show_saved_cards — Determine if store allows cards to be saved during checkout.
- get_supported_features — Returns an array of supported features.
- get_title — Returns the title string to use in the UI (customisable via admin settings screen).
- get_total_label — Returns the label to use accompanying the total in the stripe statement.
- initialize — Initializes the payment method type.
- is_active — Returns if this payment method should be active. If false, the scripts will not be enqueued.