You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

英国在线支付:寻找替代PayPal旧表单集成的简易支付系统

简易支付系统替代方案咨询

我之前曾使用PayPal为网站快速添加Pay Now按钮,当时的支付页面表单代码如下:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="client_id">
    <input type="hidden" name="lc" value="GB">
    <input type="hidden" name="button_subtype" value="services">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="amount" value="<%=Price %>">
    <input type="hidden" name="item_name" value="<%=Product %>">
    <input type="hidden" name="item_number" value="<%=ProductID %>" />
    <input type="hidden" name="rm" value="1">
    <input type="hidden" name="return" value="http://www.example.com/payment-complete.asp">
    <input type="hidden" name="cancel_return" value="http://www.example.com/take-payment.asp">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHosted">
    <input type="image" src="http://www.example.com/img/pay-now-button.png" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

通过该代码可向PayPal传递Price、Product、Product ID等变量,预填充支付页面信息;payment-complete.asp页面(示例代码如下)可接收PayPal返回的交易数据:

Dim authToken, txToken
Dim query
Dim objHttp
Dim sQuerystring
Dim sParts, iParts, aParts
Dim sResults, sKey, sValue
Dim i, result
Dim firstName, lastName, itemName, mcGross, mcCurrency

authToken ="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
txToken = Request.Querystring("tx")
query = "cmd=_notify-synch&tx=" & txToken & "&at=" & authToken

set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
objHttp.open "POST", "http://www.paypal.com/cgi-bin/webscr", false
objHttp.Send query

sQuerystring = objHttp.responseText

If Mid(sQuerystring,1,7) = "SUCCESS" Then
    Transaction was successfully, perform database update
ELSE
    Transaction failed, tell customer
END IF

如今我创建新PayPal账户为另一网站搭建同类支付系统时,发现该方式已不再适用。现咨询是否存在一款类似的简易支付系统,支持传递价格、产品名称等变量,完成支付后可返回网站并同步交易结果。


内容的提问来源于stack exchange,提问作者John Moore

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 02:56:02