/** * Prepare order to pay. * * @param Order $order * * @return \EasyWeChat\Support\Collection */ public function prepare(Order $order) { $order->notify_url = $order->get('notify_url', $this->merchant->notify_url); $order->spbill_create_ip = $order->trade_type === Order::NATIVE ? get_server_ip() : get_client_ip(); return $this->request(self::API_PREPARE_ORDER, $order->all()); }
/** * Prepare order to pay. * * @param Order $order * * @return Collection */ public function prepare(Order $order) { return $this->request(self::API_PREPARE_ORDER, $order->all()); }
/** * Prepare order to pay. * * @param Order $order * * @return \EasyWeChat\Support\Collection */ public function prepare(Order $order) { $order->notify_url = $order->get('notify_url', $this->merchant->notify_url); return $this->request(self::API_PREPARE_ORDER, $order->all()); }