Author Topic: Automatic Payment Error for Authorize.net  (Read 718 times)

Offline insyncbiztech

  • Full Member
  • ***
  • Posts: 32
    • View Profile
Automatic Payment Error for Authorize.net
« on: 14/June/2012, 01:21:21 AM »
My first automatic monthly payment was processed a few days ago. The client was charged and the funds were transferred but the invoice was not marked as paid in nBill. I received an e-mail titled "nBill Error Report" that contained "Gateway transaction '0' not found".

I am using Authorize.net to process the payment.

One-time payments still work fine though.

How do I fix this?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Automatic Payment Error for Authorize.net
« Reply #1 on: 14/June/2012, 10:17:35 AM »
Unfortunately, the authorize.net gateway does not mark invoices as paid automatically for repeat payments. This is due to limitations imposed by the authorize.net system which is supposed to allow silent callbacks, but which does not seem to work (and authorize.net support were unable to help). You can manually mark several invoices as paid in one go from the invoice list in nBill, which is the best workaround I could come up with.

The fact that you got an error email would seem to indicate that you have entered a URL in the silent postback setting in the authorize.net merchant account. The problem with the silent postback is that it does not send through the gateway transaction ID, so nBill cannot tell what the payment was for (hence the error message). As this problem seems intractable for now, I can only advise you to remove the silent postback URL setting from the authorize.net control panel, as it will just generate an error every time.

Offline insyncbiztech

  • Full Member
  • ***
  • Posts: 32
    • View Profile
Re: Automatic Payment Error for Authorize.net
« Reply #2 on: 29/July/2012, 05:44:39 PM »
OK, I'm just getting around to really looking at this. As far as silent callbacks work, they work fine for me. Before nBill I had the silent callback pointing to a custom PHP file I built to record payments in a database (I'm using Capital Bankcard though as my merchant interface so maybe that has something to do with it?). So I can easily set the silent callback in my merchant account, I just need to know what to tell the script to do with the information?

The profiles for reoccurring payments are stored on the merchant site (after the first order is placed through nBill). So what information is stored in this profile that I can use when the next payment is made to mark the corresponding invoice in nBill as paid (since the auto payment profile on Authorize.net/Capital Bankcard doesn't know what the next invoice will be in nBill)? Does it store the order ID, customer ID, or something else?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Automatic Payment Error for Authorize.net
« Reply #3 on: 30/July/2012, 09:30:08 AM »
That's the problem - it doesn't allow for an ID number to be passed back in the silent postback - that's why I cannot get it to work automatically. I can send it a value, but it will not quote that value on the postback. Whether or not it actually stores that value, I don't know, but it is a gateway transaction ID number (or 'g_tx_id'). In nBill, if you go to Accounting->Transaction search, you can enter a gateway transaction ID number to retrieve a list of all related records in nBill (orders/invoices).

 

anything