dqv84329
2015-02-26 06:11
浏览 29
已采纳

使用PHP处理Authorize.net中继响应

I am kind of a newbie when it comes to online CC processing integration. I am in the Sandbox at Authorize.NET trying to configure my server to process SIM orders where the payment page form resides on the Authorize.net servers and processes the order. By default it looks like the confirmation is on their sites, and e-mails can be configured to be sent to the buyer and the seller. That is all working in the Sandbox. However, I am trying to capture some of the order and processing information on my server using the relay response. My processing page is accessible on my server, although I must say that I have .htaccess limited intermittently because it is still in development. I turn that off when I am testing.

The error that I am getting is:

An error occurred while trying to report this transaction to the merchant. 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.

I can't tell if they are POSTING data to my page or not, and I'm not really clear on what goes on the response page and how to parse the response. I am using the PHP SDK provided by Authorize.NET. The rest seems to be working. I am getting e-mails for the buyer and the seller and the order is proccessed but I'm not capturing the information on our server. What I would like to do is bypass their confirmation page, receive the relay response, create a custom confirmation and capture some of the data for our database. I'll keep digging because I made a fair amount of progress just reading the docs. This one is particularly useful.

Thanks.

图片转代码服务由CSDN问答提供 功能建议

对于在线CC处理集成,我是一个新手。 我在 Sandbox Authorize.NET 尝试配置我的服务器处理SIM订单< / code>其中 payment 页面表单位于 Authorize.net服务器进程的订单。 默认情况下,确认 sites 上,并且电子邮件可以配置为发送给买方和卖方。 这些都在 Sandbox 中工作。 但是,我试图使用中继响应捕获我的服务器上的一些订单和处理信息。 我的处理页面可以在我的服务器上访问,但我必须说我已经间歇性地限制了 .htaccess ,因为它仍然在 development 中。 我在测试时将其关闭。

我得到的错误是:

 尝试报告此错误时发生错误 交易给商家。 已向商家发送电子邮件,通知他们错误。 以下是尝试从您的信用卡中扣款的结果。
 
此交易已获批准。
   
 
 

建议您 联系商家以确认您将收到产品或服务。

我无法判断他们是 POSTING data 到我的页面还是 不是,我不清楚响应页面上的内容以及如何解析响应。 我正在使用 Authorize.NET 提供的 PHP SDK 。 其余的似乎工作。 我正在为买家和卖家获取电子邮件,并且订单已经被处理,但我没有在我们的服务器上捕获信息。 我想做的是绕过他们的确认页面,接收中继响应,创建自定义确认并捕获我们的数据库的一些数据 >。 我会继续挖掘,因为我在阅读文档时取得了相当大的进步。 这个特别有用。

谢谢。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongyi1982 2015-04-30 17:13
    已采纳

    I figured it out. There was an error on the page giving a "500" error. I have to say, it is a little strange the way they have it set up. They are POSTING to my page, where I am capturing the POST data, writing stuff to a database, and then creating a custom confirmation message, although it must be via a header redirect because it shows up on their server (their domain is in the address bar). It all works, but apparently, any SESSION variable values are not available to my script in that case?

    点赞 打赏 评论

相关推荐 更多相似问题