当购物车中有两件商品时,sagepay无法正常工作

时间:2018-05-18 16:07:37

标签: 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();

0 个答案:

没有答案