【发布时间】:2014-09-16 11:59:41
【问题描述】:
我正在用 PHP 实现 Sagepay 支付网关,它在 2.23 协议下运行良好。但是当我将其更改为 3.00 时,它给出了一个错误代码:3195,这意味着行项目金额详细信息没有正确加起来。
我已经尝试了所有解决方案,但没有任何帮助。
这是我目前正在使用的一些代码:
$sagePay = new SagePay();
$sagePay->setCurrency('GBP');
$sagePay->setAmount($_SESSION['amount']);
$sagePay->setDescription($_SESSION['tripcode']);
$sagePay->setBillingSurname('Mustermann');
$sagePay->setBillingFirstnames('Amrinder');
$sagePay->setBillingCity('London');
$sagePay->setBillingPostCode('GL51 3AA');
$sagePay->setBillingAddress1('Bahnhofstr. 1');
$sagePay->setBillingCountry('de');
$sagePay->setDeliverySameAsBilling();
<form method="POST" id="SagePayForm" action="https://live.sagepay.com/gateway/service/vspform-register.vsp" style="display:none;">
<input type="hidden" name="VPSProtocol" value= "2.23">
<input type="hidden" name="TxType" value= "PAYMENT">
<input type="hidden" name="Vendor" value= "alpinetravelint">
<input type="hidden" name="Crypt" value= "<?php echo $sagePay->getCrypt(); ?>">
<input type="submit" value="continue to SagePay">
</form>
我该如何解决这个问题?
【问题讨论】:
标签: php payment-gateway opayo