Api
The Api class provides an interface to payment method registration.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Payments/Api.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
Methods Methods
- __construct — Constructor
- add_payment_method_script_data — Add payment method data to Asset Registry.
- add_payment_method_script_dependencies — Add payment method script handles as script dependencies.
- init — Initialize class features.
- is_payment_gateway_enabled — Returns true if the payment gateway is enabled.
- process_legacy_payment — Attempt to process a payment for the checkout API if no payment methods support the woocommerce_rest_checkout_process_payment_with_context action.
- register_payment_method_integrations — Register payment method integrations bundled with blocks.
- verify_payment_methods_dependencies — Verify all dependencies of registered payment methods have been registered.