function toSubmit($payment) { $merId = $this->getConf($payment["M_OrderId"], 'member_id'); $ikey = $this->getConf($payment["M_OrderId"], 'PrivateKey'); $this->submitUrl = "https://checkout.google.com/cws/v2/Merchant/" . $merId . "/checkout"; $this->callbackUrl = str_replace("http://", "https://", $this->callbackUrl); $ordAmount = number_format($payment["M_Amount"], 2, ".", ""); //number_format($order->M_Amount, 2, ".", ""); $cart = new GoogleCart($merId, $ikey, "checkout"); $item1 = new GoogleItem($payment["M_OrderId"], $payment["M_OrderNO"], 1, $ordAmount); //($order->M_OrderId, $order->M_OrderNO, 1, $ordAmount); $cart->AddItem($item1); $return = $cart->getArr("large"); return $return; }