首页 > 解决方案 > 我的 Web 开发人员正在努力将 SagePay 集成到我的 Wordpress 网站中

问题描述

我现在有3个问题,请考虑并明智地回答,谢谢..

  1. 我了解加密密码 (56071ba432970392) 的使用,并且我正在使用它来构造“crypt”字段。但是请让我知道“表单方法”中是否需要“加密密钥”和“集成密码”,因为我在表单集成协议指南中没有看到它的参考(https://www.sagepay.co.uk /file/25041/download-document/FORM_Integration_and_Protocol_Guidelines_270815.pdf?token=xecgCPxo3AAFu8UiqobWCsfHOZwMz44crX7lYbBHdvM )

2. 在上述指南中,在第 1 页中。10 / 附件。3.0 / 第 2 步 > 在 url 中有 4 个隐藏字段要发送到 sagepay,下面是发送的确切数据,但带有 5080 错误代码。

include("lib/sagepay.php");
$key = '56071ba432970392';

$paymentString = "VendorTxCode=abc123&Amount=$amount&Currency=GBP&Description=$description&BillingSurname=$lname&BillingFirstnames=$fname&BillingAddress1=$address&BillingCity=$city&BillingPostCode=$zip&BillingCountry=$country&DeliverySurname=$lname&DeliveryFirstnames=$fname&DeliveryAddress1=$address&DeliveryCity=$city&DeliveryPinCode=$zip&DeliveryCountry=$country&SuccessURL=https://www.life-changing-adventures.com/success&FailureURL=https://www.life-changing-adventures.com/failure";

<input type="hidden" name="VPSProtocol" value="3.00">
<input type="hidden" name="TxType" value="PAYMENT">
<input type="hidden" name="Vendor" value="lifechangingadv">
<input type="hidden" name="Crypt" value='<?php echo SagepayUtil::encryptAes($paymentString, $key); ?>'>
------------------------------
  1. 在 5080 错误的 sagepay 在线支持页面 ( https://www.sagepay.co.uk/support/error-codes/5080-error-form-transaction-registration-failed ) 中,它显示“您需要登录您的 Sage 支付帐户。登录后选择交易选项卡,然后从左侧选项中选择无效子屏幕。

但如附件所示,“无效”选项卡屏幕从一开始就是空的,所以我无法弄清楚原因。

标签: opayo

解决方案


  1. 加密密钥通过您的 MySagePay 管理员用户访问(使用与您的供应商名称相同的用户名)。

  2. 5080 错误 - https://www.opayo.co.uk/support/error-codes?keyword=5080

  3. 如果您的加密未按预期完成,您将收到此错误。如果您正确加密,您将进入 Opayo 付款流程。仅当您完成此操作并在字段中传递无效字符时才会填充无效选项卡。


推荐阅读