Exemple #1
0
 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);
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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);
 }