public function getUrl(PwPayVo $vo) { $param = array('payment_type' => '1', '_input_charset' => $this->charset, 'seller_email' => $this->alipay, 'notify_url' => $this->baseurl, 'return_url' => $this->baseurl, 'out_trade_no' => $vo->getOrderNo(), 'subject' => $vo->getTitle(), 'body' => $vo->getBody(), 'extend_param' => 'isv^pw11'); if (!$this->alipay_interface) { $param["service"] = 'trade_create_by_buyer'; $param["price"] = $vo->getFee(); $param["quantity"] = '1'; $param["logistics_fee"] = '0.00'; $param["logistics_type"] = 'EXPRESS'; $param["logistics_payment"] = 'SELLER_PAY'; } else { $param['service'] = 'create_direct_pay_by_user'; $param['total_fee'] = $vo->getFee(); } return $this->_bulidUrl($this->alipay_url, $this->alipay_partnerID, $this->alipay_key, $param); }
public function getUrl(PwPayVo $vo) { $strTransactionId = $vo->getOrderNo(); $strBillDate = substr($strTransactionId, 10, 8); $strSpBillNo = substr($strTransactionId, -10); $param = array('cmdno' => '1', 'date' => $strBillDate, 'bargainor_id' => $this->tenpay, 'transaction_id' => $strTransactionId, 'sp_billno' => $strSpBillNo, 'total_fee' => $vo->getFee() * 100, 'bank_type' => 0, 'fee_type' => 1, 'return_url' => $this->baseurl, 'attach' => 'my_magic_string', 'desc' => Pw::convert($vo->getTitle(), 'gbk')); return $this->_bulidUrl($this->tenpay_url, $this->tenpay_key, $param); }
public function getUrl(PwPayVo $vo) { $url = $this->paypal_url; $param = array('cmd' => '_xclick', 'invoice' => $vo->getOrderNo(), 'business' => $this->paypal, 'item_name' => $vo->getTitle(), 'item_number' => 'phpw*', 'amount' => $vo->getFee(), 'no_shipping' => 0, 'no_note' => 1, 'currency_code' => 'CNY', 'bn' => 'phpwind', 'charset' => $this->charset); foreach ($param as $key => $value) { $url .= $key . "=" . urlencode($value) . "&"; } return $url; }
public function getUrl(PwPayVo $vo) { strlen($this->bill) == 11 && ($this->bill .= '01'); $param = array('inputCharset' => $this->charset == 'gbk' ? 2 : 1, 'pageUrl' => $this->baseurl, 'version' => 'v2.0', 'language' => 1, 'signType' => 1, 'merchantAcctId' => $this->bill, 'payerName' => 'admin', 'orderId' => $vo->getOrderNo(), 'orderAmount' => $vo->getFee() * 100, 'orderTime' => Pw::time2str(Pw::getTime(), 'YmdHis'), 'productName' => $vo->getBody(), 'productNum' => 1, 'payType' => '00', 'redoFlag' => 1); $url = $this->bill_url; $arg = ''; foreach ($param as $key => $value) { $value = trim($value); if (strlen($value) > 0) { $arg .= "{$key}={$value}&"; $url .= "{$key}=" . urlencode($value) . "&"; //$inputMsg .= "<input type=\"hidden\" name=\"$key\" value=\"$value\" />"; } } $url .= 'signMsg=' . strtoupper(md5($arg . 'key=' . $this->bill_key)); return $url; }