给phpcms 增加直接支付功能

  原来PHPCMS的支付和定单模块是这样的,必需预存钱到网站,然后根据网站余额来支付,最近公司觉得这个环境是多的,没有必要让用户事先存钱进来,所以需要小改动一下,在pay_user_account增加一个orderid 字段

  然后pay的responsd.php中

 if ($result)
  {
   $r=get_order($out_trade_no);
            showmessage('支付成功',$PHPCMS['siteurl'].'order/index.php?dosubmit=1&action=pay&orderid='.$r[orderid]);
  }

 

原文地址:https://www.cnblogs.com/hubj/p/1916076.html