Request.Form["invoice[id]"]

gotstu's Avatar

gotstu

15 Dec, 2011 09:15 PM

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. Support Staff 1 Posted by Marc Guyer on 15 Dec, 2011 10:07 PM

    Marc Guyer's Avatar

    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. 2 Posted by gotstu on 15 Dec, 2011 10:12 PM

    gotstu's Avatar

    Hi,

    Is the patch released right away?

    Thanks

  3. 3 Posted by adam on 15 Dec, 2011 10:14 PM

    adam's Avatar

    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

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM