// When Client Portal Invoice Paid Redirect to a Dedicated Page
add_action( ‘i4w_cportal_invoice_pay_success’, ‘payment_success’ );

function payment_success( $array ) {
header( ‘Location: http://www.apple.com‘ ) ;
}