支付宝发送
在线支付类封装AlipayClass.MyAlipay pay = new AlipayClass.MyAlipay();
在线支付类封装       Hashtable ht 
= new Hashtable();
在线支付类封装       ht.Add(
"seller_email""wdx2011@163.com");
在线支付类封装       ht.Add(
"billid""96578556656688");
在线支付类封装       ht.Add(
"goodname""AilpayClass");
在线支付类封装       ht.Add(
"price""0.01");
在线支付类封装       ht.Add(
"msg""AilpayClass");
在线支付类封装       ht.Add(
"returnurl""http://localhost:56/2.aspx");
在线支付类封装       ht.Add(
"showurl""www.lilacshop.com");
在线支付类封装       ht.Add(
"encode""GB2312");
在线支付类封装       pay.Send(ht);

获取状态
 AlipayClass.MyAlipay pay = new AlipayClass.MyAlipay();
           Response.Write(pay.GetState(
"gb2312")+"<br>");//获取交易状态1为已支付 2预支付 0为失败 否则返回其它支付状态码
           Response.Write("订单号:" + pay.GetState("out_trade_no""gb2312")); //输入返回状态中参数及页面编码 out_trade_no为订单号
           
//Response.Write(pay.GetState("gb2312", true));//启用调试打印具体信息

网银
 AlipayClass.ChinaBank cb = new AlipayClass.ChinaBank();
           Response.Write(cb.GetState()
+"<br>");
           Response.Write(
"v_oid:"+cb.GetState("v_oid")+"<br>");
           Response.Write(
"v_psstring:" + cb.GetState("v_psstring"+ "<br>");

相关文章:

  • 2022-12-23
  • 2021-09-26
  • 2021-05-17
  • 2021-04-22
  • 2022-12-23
  • 2022-02-02
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2021-08-30
  • 2022-01-29
  • 2021-07-24
相关资源
相似解决方案