?? send.asp
字號(hào):
<!--#include file="alipay_payto.asp"-->
<%
cid = request("cid") '''商戶編號(hào)
response.write cid&"<br>"
meykey = request("mykey") '''商戶密鑰
response.write meykey&"<br>"
orderid = request("orderid") '''訂單編號(hào)
response.write orderid &"<br>"
totalmoeny = request("totalmoney") '''訂單金額
response.write totalmoeny&"<br>"
partnerid=request("other1")
response.write partnerid&"<br>"
other2=request("other2")
other3=request("other3")
'response.end
dim service,agent,partner,sign_type,subject,body,out_trade_no,price,discount,show_url,quantity,payment_type,logistics_type,logistics_fee,logistics_payment,logistics_type_1,logistics_fee_1,logistics_payment_1,seller_email,notify_url,return_url
dim t1,t4,t5,key
dim AlipayObj,itemUrl
t1 = "https://www.alipay.com/cooperate/gateway.do?" '支付接口
t4 = "images/alipay_bwrx.gif" '支付寶按鈕圖片
t5 = "推薦使用支付寶付款" '按鈕懸停說(shuō)明
service = "trade_create_by_buyer"
agent = partnerid '合作廠商id
partner = partnerid 'partner合作伙伴ID(必須填)
sign_type = "MD5"
subject = "商品" '商品名稱
body = "" 'body 商品描述
out_trade_no = orderid '客戶網(wǎng)站訂單號(hào),(現(xiàn)取系統(tǒng)時(shí)間,可改成網(wǎng)站自己的變量)
price = totalmoeny 'price商品單價(jià) 0.01~50000.00
discount = "0" '商品折扣
show_url = "" '商品展示地址(可以直接寫網(wǎng)站首頁(yè)網(wǎng)址)
quantity = "1" '商品數(shù)量
payment_type = "1" '支付類型,(1代表商品購(gòu)買)
logistics_type = "EXPRESS" '物流種類(快遞)
logistics_fee = other3 '物流費(fèi)用
logistics_payment = other2 '物流費(fèi)用承擔(dān)(賣家付)
logistics_type_1 = ""
logistics_fee_1 = ""
logistics_payment_1 = "" '物流費(fèi)用承擔(dān)(買家付)
seller_email = cid '(必須填)
key = meykey '(必須填)
notify_url= "" '服務(wù)器通知url(不使用,請(qǐng)不要注釋或者刪除此參數(shù),不用傳遞給支付寶系統(tǒng),Alipay_Notify.asp文件所在路經(jīng))
return_url= "" '服務(wù)器通知url(不使用,請(qǐng)不要注釋或者刪除此參數(shù),不用傳遞給支付寶系統(tǒng),Alipay_Notify.asp文件所在路經(jīng))
Set AlipayObj = New creatAlipayItemURL
itemUrl=AlipayObj.creatAlipayItemURL(t1,t4,t5,service,agent,partner,sign_type,subject,body,out_trade_no,price,discount,show_url,quantity,payment_type,logistics_type,logistics_fee,logistics_payment,logistics_type_1,logistics_fee_1,logistics_payment_1,seller_email,notify_url,return_url,key)
response.redirect itemUrl
response.end
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -