Legacy
in package
Legacy class.
Table of Contents
- init() : mixed
- Hook into WP lifecycle events.
- process_legacy_payment() : mixed
- Attempt to process a payment for the checkout API if no payment methods support the woocommerce_rest_checkout_process_payment_with_context action.
Methods
init()
Hook into WP lifecycle events.
public
init() : mixed
Return values
mixed —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.
public
process_legacy_payment(PaymentContext $context, PaymentResult &$result) : mixed
Parameters
- $context : PaymentContext
-
Holds context for the payment.
- $result : PaymentResult
-
Result of the payment.