WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_IPN_Handler::payment_status_failed() protected WC 1.0

Handle a failed payment.

{} It's a method of the class: WC_Gateway_Paypal_IPN_Handler{}

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->payment_status_failed( $order, $posted );
$order(WC_Order) (required)
Order object.
$posted(array) (required)
Posted data.

Code of WC_Gateway_Paypal_IPN_Handler::payment_status_failed() WC 5.7.1

protected function payment_status_failed( $order, $posted ) {
	/* translators: %s: payment status. */
	$order->update_status( 'failed', sprintf( __( 'Payment %s via IPN.', 'woocommerce' ), wc_clean( $posted['payment_status'] ) ) );