Magento 2 Authorize.net Direct Post方法错误-抱歉,出了点问题。请联系卖家

时间:2018-10-06 07:52:40

标签: php magento magento2 authorize.net

在Magento 2.2.5中,我已在沙盒模式下启用authorize.net Direct Post方法,同时尝试在结帐页面付款时,它显示错误消息Sorry, but something went wrong. Please contact the seller.

我检查了控制台进行故障排除,发现请求URL中显示以下消息:https://test.authorize.net/gateway/transact.dll

The reporting of this transaction to the Merchant has timed out. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.       

This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.

我做了很多研究,发现可能由于多种原因而发生,我应用了所有修复程序,但仍然存在相同的问题。

以下是关键点:

Authorize.net沙箱URL:

网关URL:https://test.authorize.net/gateway/transact.dll

交易详细信息URL:https://apitest.authorize.net/xml/v1/request.api

测试模式:NO

SSL:enabled

MD5哈希:Yes, Less than 10 character long.

调试日志:

    main.DEBUG: array (
  'request' => 
  array (
    'x_version' => '3.1',
    'x_delim_data' => 'FALSE',
    'x_relay_response' => 'TRUE',
    'x_test_request' => 'FALSE',
    'x_login' => '****',
    'x_method' => 'CC',
    'x_relay_url' => 'https://mydomain/authorizenet/directpost_payment/response',
    'x_type' => 'AUTH_CAPTURE',
    'x_fp_sequence' => '43',
    'x_invoice_num' => '000000030',
    'x_amount' => 50.0,
    'x_currency_code' => 'USD',
    'x_tax' => '0.00',
    'x_freight' => '5.00',
    'x_first_name' => 'Demo',
    'x_last_name' => 'Buyer1',
    'x_company' => 'Demo',
    'x_address' => 'New Street 33',
    'x_city' => 'California',
    'x_state' => 'California',
    'x_zip' => '56005',
    'x_country' => 'US',
    'x_phone' => '0123456789',
    'x_fax' => '',
    'x_cust_id' => '',
    'x_customer_ip' => '103.15.66.130',
    'x_customer_tax_id' => '',
    'x_email' => 'myemailaddresss',
    'x_email_customer' => '0',
    'x_merchant_email' => '',
    'x_ship_to_first_name' => 'Demo',
    'x_ship_to_last_name' => 'Buyer1',
    'x_ship_to_company' => 'Demo',
    'x_ship_to_address' => 'New Street 33',
    'x_ship_to_city' => 'California',
    'x_ship_to_state' => 'California',
    'x_ship_to_zip' => '56005',
    'x_ship_to_country' => 'US',
    'x_po_num' => '',
    'x_fp_timestamp' => 1538807586,
    'x_fp_hash' => '16bf75c140a4ca76a6dcf3dc82a5c4bf',
  ),
)

对此将有任何帮助。

谢谢。

1 个答案:

答案 0 :(得分:1)

我已经找到问题并解决了,这是一个愚蠢的错误。实际上,我的开发站点已应用了IP限制,因此为什么它对外界不可用,并且authorize.net无法在x_relay_url上发布。

希望这可以帮助某人在这种情况下节省时间。

谢谢