php - 当购物车中有两件商品时,sagepay 无法正常工作
问题描述
当我在购物车中添加了一个项目时,它工作正常。但是,当我添加两个项目时它不起作用。我收到错误 3021 格式错误。` require_once ('SagePay/lib/SagePay.php');
$sagePay = new SagePay();
$sagePay->setCurrency('GBP');
$sagePay->setAmount($item_total);
$sagePay->setDescription("Bates Environmental Ltd");
$sagePay->setBillingSurname($user['Surname']);
$sagePay->setBillingFirstnames($user['FirstName']);
$sagePay->setBillingCity($user['BillingAddressCity']);
$sagePay->setBillingPostCode($user['BillingAddressPostCode']);
$sagePay->setBillingAddress1($user['BillingAddressLine1']);
$sagePay->setBillingCountry('GB');
$sagePay->setDeliverySameAsBilling();
解决方案
推荐阅读
- vb.net - 从数据库中检索数据时出现系统空引用错误
- python - 在具有多个值的python中切换字典中的键和值
- office365 - 仅在 Web 版办公产品上启用 Office 加载项
- javascript - 如何停止我的 ReactJS 表单
- machine-learning - 将pytorch转换为onnx JS时出现“无法在给定的张量上使用matmul”错误
- vue.js - 在子组件中以纯文本形式获取 v-if 表达式/数据
- powershell - powershell skript 不起作用 - 但为什么 - 将数据挂在第一行后面
- javascript - 在 div 中滚动突出显示的文本
- java - 使用 ArchUnit 检查子类中的注释存在
- mysql - 为什么当带有 ALL 的 where 子句返回 true 时,我的 MySQL 语句不返回任何记录?