authorize.net 登录名(xxxxx)和事务密钥(yyyyy)。
我将 authorize.net 模块登录 ID xxxxx 更改为 aaaaaa,并将事务密钥 yyyyy 更改为 bbbb。
然后我点击了更新设置按钮。 现在我要签入我的代码,新登录名和交易密钥不会影响我的代码。
Array
(
[x_test_request] =>
[x_invoice_num] => 68883
[x_amount] => 544.44
[x_exp_date] => 0217
[x_address] => 10842 Stanwin Ave.
[x_zip] => 91345
[x_first_name] => Trent
[x_last_name] => Davis
[x_version] => 3.1
[x_delim_data] => 1
[x_delim_char] => |
[x_relay_response] =>
[x_type] => AUTH_CAPTURE
[x_currency_code] => USD
[x_method] => CC
[x_solution_id] => A1000006
[x_login] => xxxxxxx
[x_tran_key] => yyyyyyyy
[x_card_num] => 370000000000002
[x_card_code] => 900
)
我想更改:
[x_login] => xxxxx to **aaaaa**
[x_tran_key] => yyyyy to **bbbbb**
这是 /authorizeaim/validation.php
中的相应代码:
$params = array(
'x_test_request' => (bool)Configuration::get('AUTHORIZE_AIM_TEST_MODE'),
'x_invoice_num' => (int)$_POST['x_invoice_num'],
'x_amount' => number_format((float)$cart->getOrderTotal(true, 3), 2, '.', ''),
'x_exp_date' => Tools::safeOutput($_POST['x_exp_date_m'].$_POST['x_exp_date_y']),
'x_address' => Tools::safeOutput($invoiceAddress->address1.' '.$invoiceAddress->address2),
'x_zip' => Tools::safeOutput($invoiceAddress->postcode),
'x_first_name' => Tools::safeOutput($customer->firstname),
'x_last_name' => Tools::safeOutput($customer->lastname),
'x_version' => '3.1',
'x_delim_data' => true,
'x_delim_char' => '|',
'x_relay_response' => false,
'x_type' => 'AUTH_CAPTURE',
'x_currency_code' => $currency->iso_code,
'x_method' => 'CC',
'x_solution_id' => 'A1000006',
'x_login' => Tools::safeOutput(Configuration::get('AUTHORIZE_AIM_LOGIN_ID_'.$currency->iso_code)),
'x_tran_key' => Tools::safeOutput(Configuration::get('AUTHORIZE_AIM_KEY_'.$currency->iso_code)),
'x_card_num' => Tools::safeOutput($_POST['x_card_num']),
'x_card_code' => Tools::safeOutput($_POST['x_card_code']),
);
正如 sadlyblue 所提到的,您应该在数据库表中搜索[your_db_prefix]configuration
:
SELECT *
FROM `[your_db_prefix]configuration`
WHERE `name` LIKE 'AUTHORIZE_AIM_LOGIN_ID_%'
OR `name` LIKE 'AUTHORIZE_AIM_KEY_%'
将 [your_db_prefix]
替换为数据库中使用的前缀(通常为 ps_
)。并在此处替换您的值。