wpinv_recurring_add_subscription_payment

Fires after a new invoice created for recurring payment. do_action( ‘wpinv_recurring_add_subscription_payment’, WPInv_Invoice $invoice, WPInv_Invoice $parent_invoice, array $subscription_args ); Parameters # $invoice (object) WPInv_Invoice object. $parent_invoice (object) WPInv_Invoice object of parent invoice. $subscription_args (array) The array of subscription data. Examples # Handle event of new invoice created for recurring payment.

wpinv_recurring_record_payment

Fires after an recurring payment has been recorded. do_action( ‘wpinv_recurring_record_payment’, int $invoice_id, int $parent_invoice_id, array $subscription_args ); Parameters # $invoice_id (int) The Invoice ID. $parent_invoice_id (int) The Parent Invoice ID. $subscription_args (array) The array of subscription data. Examples # Handle event of recurring payment recorded for the invoice.

wpinv_post_refund_invoice

Fires after an invoice amount has been refunded. do_action( ‘wpinv_post_refund_invoice’, WPInv_Invoice $invoice ); Parameters # $invoice (object) The WPInv_Invoice object. Examples # Simple example to handle refund of invoice amount.

wpinv_status_{$old_status}_to_{$new_status}

Fires after an invoice status has been changed from one status to another. do_action( ‘wpinv_status_’ . $old_status . ‘_to_’ . $new_status, int $invoice_id, string $old_status ); $old_status and $new_status, refer to the old and new invoice statuses, respectively. Parameters # $invoice_id (int) The Invoice ID. $old_status (string) Invoice old status. Learn more Examples # Handle […]

wpinv_status_{$new_status}

Fires after an invoice status has been changed from one status to another. do_action( ‘wpinv_status_’ . $new_status, int $invoice_id, string $old_status ); $new_status refer to the new invoice status. Parameters # $invoice_id (int) The Invoice ID. $old_status (string) Invoice old status. Learn more Examples # Handle event on invoice status has been changed to Paid(publish). […]

wpinv_update_status

Fires after an invoice status has been changed from one status to another. do_action( ‘wpinv_update_status’, int $invoice_id, string $new_status, string $old_status ); Parameters # $invoice_id (int) The Invoice ID. $new_status (string) Invoice new status. Learn more $old_status (string) Invoice old status. Learn more Examples # Simple example to handle invoice status has been changed.

wpinv_complete_payment

Fires after an invoice has been marked as paid. do_action( ‘wpinv_complete_payment’, int $invoice_id ); Parameters # $invoice_id (int) The Invoice ID. Examples # Simple example to handle paid invoice event.