資源簡介
Thinkphp3.2即時到帳接口+手機端支付寶接口

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
using?System.Collections.Generic;
using?System.Text;
using?System.IO;
using?System.xml;
using?Com.Alipay;
///?
///?功能:即時到賬交易接口接入頁
///?版本:3.3
///?日期:2012-07-05
///?說明:
///?以下代碼只是為了方便商戶測試而提供的樣例代碼,商戶可以根據自己網站的需要,按照技術文檔編寫并非一定要使用該代碼。
///?該代碼僅供學習和研究支付寶接口使用,只是提供一個參考。
///?
///?/////////////////注意///////////////////////////////////////////////////////////////
///?如果您在接口集成過程中遇到問題,可以按照下面的途徑來解決
///?1、商戶服務中心(https://b.alipay.com/support/helperApply.htm?action=consultationApply),提交申請集成協助,我們會有專業的技術工程師主動聯系您協助解決
///?2、商戶幫助中心(http://help.alipay.com/support/232511-16307/0-16307.htm?sh=Y&info_type=9)
///?3、支付寶論壇(http://club.alipay.com/read-htm-tid-8681712.html)
///?
///?如果不想使用擴展功能請把擴展功能參數賦空值。
///?
public?partial?class?_Default?:?System.Web.UI.Page?
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????}
????protected?void?BtnAlipay_Click(object?sender?EventArgs?e)
????{
????????////////////////////////////////////////////請求參數////////////////////////////////////////////
????????//支付類型
????????string?payment_type?=?“1“;
????????//必填,不能修改
????????//服務器異步通知頁面路徑
????????string?notify_url?=?“http://www.xxx.com/create_direct_pay_by_user-CSHARP-UTF-8/notify_url.aspx“;
????????//需http://格式的完整路徑,不能加?id=123這類自定義參數
????????//頁面跳轉同步通知頁面路徑
????????string?return_url?=?“http://www.xxx.com/create_direct_pay_by_user-CSHARP-UTF-8/return_url.aspx“;
????????//需http://格式的完整路徑,不能加?id=123這類自定義參數,不能寫成http://localhost/
????????//賣家支付寶帳戶
????????string?seller_email?=?WIDseller_email.Text.Trim();
????????//必填
????????//商戶訂單號
????????string?out_trade_no?=?WIDout_trade_no.Text.Trim();
????????//商戶網站訂單系統中唯一訂單號,必填
????????//訂單名稱
????????string?subject?=?WIDsubject.Text.Trim();
????????//必填
????????//付款金額
????????string?total_fee?=?WIDtotal_fee.Text.Trim();
????????//必填
????????//訂單描述
????????string?body?=?WIDbody.Text.Trim();
????????//商品展示地址
????????string?show_url?=?WIDshow_url.Text.Trim();
????????//需以http://開頭的完整路徑,例如:http://www.xxx.com/myorder.html
????????//防釣魚時間戳
????????string?anti_phishing_key?=?““;
????????//若要使用請調用類文件submit中的query_timestamp函數
????????//客戶端的IP地址
????????string?exter_invoke_ip?=?““;
????????//非局域網的外網IP地址,如:221.0.0.1
????????////////////////////////////////////////////////////////////////////////////////////////////////
????????//把請求參數打包成數組
????????SortedDictionary?sParaTemp?=?new?SortedDictionary();
????????sParaTemp.Add(“partner“?Config.Partner);
????????sParaTemp.Add(“_input_charset“?Config.Input_charset.ToLower());
????????sParaTemp.Add(“service“?“create_direct_pay_by_user“);
????????sParaTemp.Add(“payment_type“?payment_type);
????????sParaTemp.Add(“notify_url“?notify_ur
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????????0??2015-10-22?09:45??APP鎵嬫満绔帴鍙?
?????文件????????8196??2015-10-22?09:32??APP鎵嬫満绔帴鍙?.DS_Store
?????目錄???????????0??2015-10-22?09:45??__MACOSX\
?????文件???????????0??2015-10-22?09:45??__MACOSX\APP鎵嬫満绔帴鍙?
?????文件?????????120??2015-10-22?09:32??__MACOSX\APP鎵嬫満绔帴鍙?._.DS_Store
?????文件??????256888??2013-05-30?15:39??APP鎵嬫満绔帴鍙?cacert.pem
?????文件????????2803??2015-10-22?09:37??APP鎵嬫満绔帴鍙?config.php
?????目錄???????????0??2015-10-22?09:34??APP鎵嬫満绔帴鍙?key\
?????文件????????6148??2015-10-22?09:34??APP鎵嬫満绔帴鍙?key\.DS_Store
?????目錄???????????0??2015-10-22?09:45??__MACOSX\APP鎵嬫満绔帴鍙?key\
?????文件?????????120??2015-10-22?09:34??__MACOSX\APP鎵嬫満绔帴鍙?key\._.DS_Store
?????文件?????????276??2012-06-06?17:50??APP鎵嬫満绔帴鍙?key\alipay_public_key.pem
?????文件?????????108??2015-10-22?09:35??APP鎵嬫満绔帴鍙?key\rsa_private_key.pem
?????文件????????1285??2015-10-21?23:51??APP鎵嬫満绔帴鍙?log.txt
?????文件?????????171??2015-10-21?23:51??__MACOSX\APP鎵嬫満绔帴鍙?._log.txt
?????文件????????3849??2015-10-22?09:39??APP鎵嬫満绔帴鍙?PayController.class.php
?????目錄???????????0??2015-10-22?09:31??APP鎵嬫満绔帴鍙?Vendor\
?????文件????????8196??2015-10-22?09:32??APP鎵嬫満绔帴鍙?Vendor\.DS_Store
?????目錄???????????0??2015-10-22?09:45??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\
?????文件?????????120??2015-10-22?09:32??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\._.DS_Store
?????目錄???????????0??2015-10-22?09:32??APP鎵嬫満绔帴鍙?Vendor\Alipay\
?????文件????????6148??2015-10-22?09:32??APP鎵嬫満绔帴鍙?Vendor\Alipay\.DS_Store
?????目錄???????????0??2015-10-22?09:45??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\Alipay\
?????文件?????????120??2015-10-22?09:32??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\Alipay\._.DS_Store
?????文件????????6523??2015-10-21?23:56??APP鎵嬫満绔帴鍙?Vendor\Alipay\alipayCore.php
?????文件?????????182??2015-10-21?23:56??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\Alipay\._alipayCore.php
?????文件????????5560??2015-10-22?00:24??APP鎵嬫満绔帴鍙?Vendor\Alipay\alipayNotify.php
?????文件?????????182??2015-10-22?00:24??__MACOSX\APP鎵嬫満绔帴鍙?Vendor\Alipay\._alipayNotify.php
?????文件????????2027??2015-10-21?23:21??APP鎵嬫満绔帴鍙?Vendor\Alipay\alipayRsa.php
?????文件?????????675??2015-10-22?09:45??APP鎵嬫満绔帴鍙?璇存槑.txt
?????文件?????????177??2015-10-22?09:45??__MACOSX\APP鎵嬫満绔帴鍙?._璇存槑.txt
............此處省略416個文件信息
- 上一篇:ecshop常見漏洞
- 下一篇:駱駝IPTV源碼
評論
共有 條評論