コード例 #1
0
 /**
  * Returns the merchant account transaction advanced search URL for the
  * given order.  The QBMS merchant account center doesn't allow you to link
  * directly to a given transaction, but we can post a search request to
  * return the one we want
  *
  * @since 1.0
  * @see SV_WC_Payment_Gateway::get_transaction_url()
  * @see WC_Intuit_QBMS::render_view_transaction_form()
  * @param WC_Order $order the order object
  * @return string transaction url
  */
 public function get_transaction_url($order)
 {
     $merchant_center_url = 'test' == $this->get_order_meta($order->id, 'environment') ? self::TEST_MERCHANT_CENTER_URL : self::PRODUCTION_MERCHANT_CENTER_URL;
     $this->view_transaction_url = $merchant_center_url . '/portal/authsec/portal/qbms/Search+and+reporting/Search+for+advanced+transactions/SearchForAdvTransactions?action=1';
     return parent::get_transaction_url($order);
 }