WooCommerce Code Reference

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

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.

Return values
mixed