WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_IPN_Handler::payment_status_canceled_reversal() protected WC 1.0

Handle a cancelled reversal.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Gateway_Paypal_IPN_Handler::payment_status_canceled_reversal() WC 5.7.1

protected function payment_status_canceled_reversal( $order, $posted ) {
	$this->send_ipn_email_notification(
		/* translators: %s: order link. */
		sprintf( __( 'Reversal cancelled for order #%s', 'woocommerce' ), $order->get_order_number() ),
		/* translators: %1$s: order ID, %2$s: order link. */
		sprintf( __( 'Order #%1$s has had a reversal cancelled. Please check the status of payment and update the order status accordingly here: %2$s', 'woocommerce' ), $order->get_order_number(), esc_url( $order->get_edit_order_url() ) )
	);
}