首页 > 解决方案 > 当购物车中有两件商品时,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();

标签: phpopayo

解决方案


推荐阅读