Hi,
We are still in development phase.
About 2 months ago I wrote some code a while back to support the Post Hook Transaction.
The code creates invoices in my database. I had set it up and
had it working just fine to check for existing invoices using
invoice[id]
and did an insert if not there else do an update.
This code no longer works because I am inserting 2 invoice records where the invoice[id] is unique each time. I am thinking now that I should use invoice[invoiceNumber] and insert if not there else update.
My question is, was there a time that the transaction post hook
made 1 call as now I see 2?
What is invoice[id]? Is it a transaction ID?
Should I always expect 2 calls and just use invoiceNumber to
insert/update my database?
Thanks

#1 Posted by Marc Guyer Support staff on 15 Dec, 2011 10:07 PM
Hi there -- It looks like this behavior was introduced on 12/5. For new customers subscribed to a plan which initially bills upon signup, the transaction hook was being sent twice. We've released a patch which fixes it.
Invoice[id] is a CG-generated UUID (our unique id for the invoice). The invoice number is a sequence for invoices in your product account.
#2 Posted by gotstu on 15 Dec, 2011 10:12 PM
Hi,
Is the patch released right away?
Thanks
#3 Posted by adam on 15 Dec, 2011 10:14 PM
The patch was released about 10 minutes ago, yes.
Dean closed this discussion on 18 Jan, 2013 03:56 PM.