Sage Pay表单集成编码

问题描述 投票:1回答:1
<html>
<form name="pp_form" action="https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorRegisterTx" method="post">
    <input name="VPSProtocol" type="hidden" value=2.23 />
    <input name="TxType" type="hidden" value=PAYMENT />
    <input name="Vendor" type="hidden" value="myusername" />
    <input name="VendorTxCode" type="hidden" value="thevendortxcode" />
    <input name="Amount" type="hidden" value="30" />
    <input name="Currency" type="hidden" value="GBP" />
    <input name="Description" type="hidden" value="Test payment" />
    <input name="NotificationURL" type="hidden" value="myurl" />
    BillingFirstnames: <input name="BillingFirstnames" type="text" /><br>
    BillingSurname: <input name="BillingSurname" type="text" /><br>
    BillingAddress1: <input name="BillingAddress1" type="text" /><br>
    BillingCity: <input name="BillingCity" type="text" /><br>
    BillingPostCode: <input name="BillingPostCode" type="text" /><br>
    BillingCountry: <input name="BillingCountry" type="text" /><br>
    DeliverySurname: <input name="DeliverySurname" type="text" /><br>
    DeliveryFirstnames: <input name="DeliveryFirstnames" type="text" /><br>
    DeliveryAddress1: <input name="DeliveryAddress1" type="text" /><br>
    DeliveryCity: <input name="DeliveryCity" type="text" /><br>
    DeliveryPostCode: <input name="DeliveryPostCode" type="text" /><br>
    DeliveryCountry: <input name="DeliveryCountry" type="text" /><br>
    <p>Click here to submit 
        <input type="submit" value="here">
    </p>
</form>
</html>

此表单目前使用模拟器。显然,这些都不是编码的。首先,这将在测试/现场环境中工作吗?其次,我允许这样做,如果没有,我该怎么纠正呢?

谢谢

亚历克斯

php forms sagepay
1个回答
0
投票

它不会起作用。首先,模拟器到目前为止已经过时,它甚至不支持协议3.00(早期版本已被弃用,并且将从7月开始停止在现场环境中运行)。一些关键功能也缺失。

其次,您似乎想要使用Server协议。此注册帖子包含您在上面作为名称 - 值对的值,作为请求主体发布到https://test.sagepay.com/gateway/service/vspserver-register.vsp

我建议看看sagepay.co.uk上的服务器协议文档 - 使用模拟器无济于事。

© www.soinside.com 2019 - 2024. All rights reserved.