我使用https://nabvelocity.com/solutions/checkout/e-commerce-integration/authorize/
通过Authorize.net SIM方法整合速度我已经使用链接中提到的url创建了表单,但每次都会出现需要终端配置文件ID的错误。 我必须从哪里传递ID?
这是代码
<?php
include 'vendor/autoload.php';
include 'vendor/authorizenet/authorizenet/lib/AuthorizeNetSIM.php';
?>
<form method="post" action="https://api.cert.nabcommerce.com/VGate/1.0/AuthorizeNet/SimContainer.aspx">
<?php
$amount = "9.99";
$fp_sequence = "123";
$time = time();
$api_login = 'EPX Retail Test';
$transaction_key = '8D9DE00001';
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login, $transaction_key, $amount, $fp_sequence, $time);
$sim = new AuthorizeNetSIM_Form(
array(
'x_amount' => $amount,
'x_fp_sequence' => $fp_sequence,
'x_fp_hash' => $fingerprint,
'x_fp_timestamp' => $time,
'x_relay_response' => "FALSE",
'x_login' => $api_login,
"x_type" => "AUTH_CAPTURE",
"x_method" => "CC",
"x_card_num" => '4242424242424242',
"x_exp_date" => '12/22',
"x_description" => "Live Transaction",
"x_card_code" => '123',
"x_first_name" => 'anamica',
"x_address" => 'demo',
"x_city" => 'delhi',
"x_state" => 'delhi',
"x_zip" => '110045',
"x_country" => 'India',
)
);
echo $sim->getHiddenFieldString(); ?>
<input type="submit" value="Buy Now" data>
</form>
获取此网址所需的错误终端个人资料ID
答案 0 :(得分:0)
这不是编码问题。这是一个设置问题。您的Authorize.Net帐户设置为卡存在而不是卡不存在。因此,它希望信用卡读卡器显示您显然没有使用的信息。您需要联系Authorize.Net支持并让他们更正您的帐户设置。