【问题标题】:Authorize.Net SIM method with Velocity payment gateway使用 Velocity 支付网关的 Authorize.Net SIM 方法
【发布时间】: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,了解如何作为一个好问题。
  • 在下一条评论中发布我的代码

标签: velocity authorize.net


【解决方案1】:

这不是编码问题。这是一个设置问题。您的 Authorize.Net 帐户设置为有卡而不是无卡。因此,它期待来自您显然没有使用的信用卡读卡器的信息。您需要联系 Authorize.Net 支持并让他们更正您的帐户设置。

【讨论】:

    猜你喜欢
    • 2018-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-10
    • 2011-12-20
    • 1970-01-01
    • 2018-04-15
    • 2017-11-28
    相关资源
    最近更新 更多