【发布时间】:2018-03-30 09:59:26
【问题描述】:
我正在通过 Authorize.net SIM 方法使用 https://nabvelocity.com/solutions/checkout/e-commerce-integration/authorize/ 集成速度
我已经使用链接中提到的 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>
获取此 URL 所需的错误终端配置文件 ID
【问题讨论】:
-
您好,欢迎来到 Stackoverflow。请提供导致问题的示例代码 sn-ps。你得到什么确切的错误?请参阅stackoverflow.com/help/how-to-ask,了解如何作为一个好问题。
-
在下一条评论中发布我的代码