/** * Add original transaction ID for capturing a prior authorization * * @since 3.0 * @param WC_Order $order order object * @return WC_Order object with payment and transaction information attached */ protected function get_order_for_capture($order) { $order = parent::get_order_for_capture($order); $order->auth_net_aim_ref_trans_id = SV_WC_Plugin_Compatibility::get_order_custom_field($order, 'wc_authorize_net_aim_trans_id'); $order->description = sprintf(__('%s - Capture for Order %s', $this->text_domain), esc_html(get_bloginfo('name')), $order->get_order_number()); return $order; }
/** * Returns the query fragment to remove the given subscription renewal * order meta, plus the Intuit QBMS specific meta * * @since 1.0 * @see SV_WC_Payment_Gateway::get_remove_subscription_renewal_order_meta_fragment() * @see SV_WC_Payment_Gateway::remove_subscription_renewal_order_meta() * @param array $meta_names array of string meta names to remove * @return string query fragment */ protected function get_remove_subscription_renewal_order_meta_fragment($meta_names) { $meta_names[] = '_wc_intuit_' . $this->get_id() . '_authorization_code'; $meta_names[] = '_wc_intuit_' . $this->get_id() . '_client_trans_id'; return parent::get_remove_subscription_renewal_order_meta_fragment($meta_names); }