【问题标题】:Sagepay form submit parameters in PHPPHP中的Sagepay表单提交参数
【发布时间】:2014-11-12 08:29:39
【问题描述】:

我需要多少个参数来传递表单 ULR ,它可以与 sagepay 支付网关交互。以下参数是我在表单 url 中传递的,但我收到以下错误:

错误:

  Error number: 
    5068
    Error message: 
    The encryption method is not supported by this protocol version.

我无法连接 sagepay 服务器支付。我对 sagepay 支付的配置完全陌生。

谁能告诉我需要传递多少个参数?它们是什么? 如何加密值然后传递值?

代码:

<form name='sagepay' action='{$pm_sagepay_url}' method='post' onsubmit='this.submit.disabled=true;return true;'>
        <input type='hidden' name='VPSProtocol'  value='3.00'>
        <input type='hidden' name='TxType' value= 'PAYMENT'>
        <input type='hidden' name='Vendor' value= 'protxross'>
        <input type='hidden' name='Crypt' value= 'TPjs72eMz5qBnaTa'>

        <input type='hidden' name='cmd' value='_xclick'>
        <input type='hidden' name='business' value='{$this->pm_sagepay_business}'>
        <input type='hidden' name='item_name' value='".$order->order_description()."'>

        <input type='hidden' name='amount' value='".sprintf("%01.2F", ($order->order_total_price-$order->order_fee))."'>
        <input type='hidden' name='handling' value='".($order->order_fee)."'>
        <input type='hidden' name='return' value='".$_SHOP->root_secured. 'checkout_accept.php?'.$order->EncodeSecureCode()."'>
        <input type='hidden' name='notify_url' value='".$_SHOP->root_secured. 'checkout_notify.php?'.$order->EncodeSecureCode()."&setlang={$_SHOP->lang}'>
        <input type='hidden' name='cancel_return' value='".$_SHOP->root_secured. 'checkout_cancel.php?'.$order->EncodeSecureCode()."'>
        <input type='hidden' name='currency_code' value='{$_SHOP->organizer_currency}'>
        <input type='hidden' name='undefined_quantity' value='0'>
        <input type='hidden' name='no_shipping' value='1'>
        <input type='hidden' name='no_note' value='1'>
        <input type='hidden' name='rm' value='2'>
        <input type='hidden' name='invoice' value='{$order->order_id}'>
        <div align='right'>
        <input type='submit' value='{!pay!}' name='submit2' alt='{!sagepay_pay!}' >
        </div>
      </form>";

【问题讨论】:

    标签: php payment opayo


    【解决方案1】:

    添加到表单的信息需要加密,您最好使用此处找到的指南: http://www.sagepay.co.uk/file/12241/download-document/FORM_Integration_and_Protocol_Guidelines_010814.pdf?token=gMABp5MzTV1BevfFpoTFkrofFWwHXySRM5tzGIdKj3Q

    此外,这个人还为表单制作了一个基本脚本,我得到了要发送的主表单,它是我无法开始工作的成功页面,但我现在有了,所以如果你遇到困难,请给我留言..

    https://github.com/tolzhabayev/sagepayForm-php

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-02
      • 1970-01-01
      • 2019-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多