Request.Form["invoice[id]"]

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. 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.

    What is invoice[id]? Is it a transaction ID?

    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. Hi,

    Is the patch released right away?

    Thanks

  3. The patch was released about 10 minutes ago, yes.

  4. Dean closed this discussion on 18 Jan, 2013 03:56 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions