/** * Add any Intuit QBMS specific payment and transaction information as * class members of WC_Order instance. Added members can include: * * $order->trans_request_id - an application-supplied value that identifies the transaction * $order->intuit_qbms_test_condition - a convenience for testing error conditions while in test mode * * @since 1.0 * @see WC_Gateway_Intuit_QBMS::get_order() * @param int $order_id order ID being processed * @return WC_Order object with payment and transaction information attached */ public function get_order($order_id) { // add common order members $order = parent::get_order($order_id); // add intuit credit card-specific order members // a convenience for testing error conditions while in test mode, this is passed as the NameOnCard if ($this->is_environment('test') && SV_WC_Helper::get_post('wc-intuit-qbms-test-condition')) { $order->intuit_qbms_test_condition = SV_WC_Helper::get_post('wc-intuit-qbms-test-condition'); } return $order; }