299

如何給你的網(wǎng)站接入支付寶?

時(shí)間: 2015-06-17 11:42:48   點(diǎn)擊數(shù): 34708   來源: 耐思智慧

本文介紹了網(wǎng)站如何接入支付寶。

1 注冊(cè)企業(yè)支付寶帳號(hào)

https://enterpriseportal.alipay.com/login.htm

2 實(shí)名認(rèn)證

提供公司相關(guān)證件進(jìn)行實(shí)名認(rèn)證,提交后,通過了會(huì)收到通知郵件。

3選擇產(chǎn)品、簽約

http://app.alipay.com/container/web/enterpriseIndex.htm

選擇產(chǎn)品、費(fèi)率后,時(shí)行簽約申請(qǐng),通過后會(huì)收到通知郵件。

4 技術(shù)集成 4.1下載技術(shù)集成文檔

在你的簽約管理里可以下載技術(shù)集成文檔:

<img src="http://upload.chinaz.com/2015/0617/1434510530469.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="601" style="width:600px;height:auto;" />

4.2 打開Demo網(wǎng)站

純擔(dān)保交易接口-create_partner_trade_by_buyer(20150312)democreate_partner_trade_by_buyer-CSHARP-UTF-8

4.3 修改參數(shù)

修改app_codeAlipayConfig.cs文件里的參數(shù),這里的參數(shù)可以在上圖中找到(查看PID |Key):

支付寶 網(wǎng)站接入支付寶

4.4 配置Url

Web.Config里添加一個(gè)配置項(xiàng):

<appSettings>   <add key="url" value="http://localhost:8299/"/>   </appSettings>

然后在default.aspx.cs里引用:

//服務(wù)器異步通知頁面路徑   string notify_url = ConfigurationManager.AppSettings["url"] + "notify_url.aspx";   //需http://格式的完整路徑,不能加?id=123這類自定義參數(shù)   //頁面跳轉(zhuǎn)同步通知頁面路徑   string return_url = ConfigurationManager.AppSettings["url"] + "return_url.aspx";

4.5 運(yùn)行網(wǎng)站

填寫demo頁的必填項(xiàng)

<img src="http://upload.chinaz.com/2015/0617/1434510530744.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="606" style="width:600px;height:auto;" />

提交后,會(huì)轉(zhuǎn)到支付寶的界面:

<img src="http://upload.chinaz.com/2015/0617/1434510530156.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="613" style="width:600px;height:auto;" />

5 發(fā)貨

買家付款后,就可以在企業(yè)支付寶里的“賣出交易”里查詢到這筆交易“等待賣家發(fā)貨”:

<img src="http://upload.chinaz.com/2015/0617/1434510530298.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="611" style="width:600px;height:auto;" />

點(diǎn)擊“發(fā)貨”后,填寫發(fā)貨的信息提交:

<img src="http://upload.chinaz.com/2015/0617/1434510530245.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="608" style="width:600px;height:auto;" />

6 確認(rèn)收貨

買家收到貨后,可以在個(gè)人支付寶帳戶里的“交易記錄”里找到這筆交易,并可確認(rèn)收貨:

<img src="http://upload.chinaz.com/2015/0617/1434510530865.jpg" alt="支付寶 網(wǎng)站接入支付寶" border="0" width="622" style="width:600px;height:auto;" />

至此,所有流程都完成了。

上一篇:談網(wǎng)站盈利模式:草根站長(zhǎng)賺不到錢的六大原因 下一篇:怎么解決404網(wǎng)頁錯(cuò)誤

旗下網(wǎng)站:耐思智慧 - 淘域網(wǎng) - 我的400電話 - 中文域名:耐思尼克.cn 耐思尼克.top

耐思智慧 © 版權(quán)所有 Copyright © 2000-2024 IISP.COM,Inc. All rights reserved

備案號(hào)碼: 粵ICP備09063828號(hào)  公安備案號(hào): 公安備案 粵公網(wǎng)安備 44049002000123號(hào)  域名注冊(cè)服務(wù)機(jī)構(gòu)許可:粵D3.1-20240003 CN域名代理自深圳萬維網(wǎng)

聲明:本網(wǎng)站中所使用到的其他各種版權(quán)內(nèi)容,包括但不限于文章、圖片、視頻、音頻、字體等內(nèi)容版權(quán)歸原作者所有,如權(quán)利所有人發(fā)現(xiàn),請(qǐng)及時(shí)告知,以便我們刪除版權(quán)內(nèi)容

本站程序界面、源代碼受相關(guān)法律保護(hù), 未經(jīng)授權(quán), 嚴(yán)禁使用; 耐思智慧 © 為我公司注冊(cè)商標(biāo), 未經(jīng)授權(quán), 嚴(yán)禁使用

法律顧問:珠海知名律師 廣東篤行律師事務(wù)所 夏天風(fēng) 律師