【问题标题】:Sage Pay form integration encodingSage Pay 表单集成编码
【发布时间】:2014-03-20 12:56:59
【问题描述】:
<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 opayo


    【解决方案1】:

    这是行不通的。首先,模拟器已经过时了,甚至不支持 3.00 协议(早期版本已被弃用,将从 7 月开始在实时环境中停止运行)。还缺少一些关键功能。

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

    我建议查看 sagepay.co.uk 上的服务器协议文档 - 使用模拟器并没有帮助。

    【讨论】:

      猜你喜欢
      • 2015-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多