尝试将购买发送到 WorldPay 会导致返回 PurchaseResponse 对象,但似乎没有尝试联系 WorldPay 服务器?
这是代码:
$gateway = Omnipay::create('WorldPay');
$gateway->setInstallationId('123456');
$gateway->setTestMode(true);
$data = array(
'amount' => '10.00',
'card' => array(
'cvv' => '123',
'expiryMonth' => '6',
'expiryYear' => '2016',
'number' => '4242424242424242'
),
'currency' => 'GBP',
'returnUrl' => 'http://returnurl.com'
);
$response = $gateway->purchase($data)->send();
查看插件的代码显示没有尝试访问 WorldPay 服务器。我错过了什么?