Testing using Poster firefox plugin

jmp's Avatar

jmp

22 Oct, 2009 02:11 AM

I am trying to get familiar with how we would use CG and am using the Poster Firefox plugin to work the API.
I create a free plan and added a tracked item to with with an overcharge of $1.
I am POSTing to:

https://cheddargetter.com/xml/customers/remove-item-quantity/produc...

I get a valid XML response back and then I try & see an impact on the customers pending invoice. As yet, I cannot see anything appear on the invoice in question?

Our account is still in the Testing status and we don't have a payment gateway set up, but should I still see transactions appear on the pending invoice?

Thanks.

  1. Support Staff 1 Posted by Marc Guyer on 22 Oct, 2009 03:24 PM

    Marc Guyer's Avatar

    jmp -- It looks like you've got it figured out judging from the invoice of your one test customer. Got any more questions?

  2. Marc Guyer closed this discussion on 22 Oct, 2009 03:24 PM.

  3. jmp re-opened this discussion on 22 Oct, 2009 08:49 PM

  4. 2 Posted by jmp on 22 Oct, 2009 08:49 PM

    jmp's Avatar

    Actually I hand edited that invoice entry. None of the POST I did
    showed up on the invoice

    I can't add any more comments to the discussions since the item has
    been closed for comments

    thx,
    jmp

  5. 3 Posted by jmp on 22 Oct, 2009 09:42 PM

    jmp's Avatar

    To add more detail, I POST the above & get back the XML that is attached. I still don't see any line items show up on the invoice. Thanks for any additional help you can provide

  6. 4 Posted by jmp on 22 Oct, 2009 09:52 PM

    jmp's Avatar

    OK I htink I am on the track now. I need to add-item-quantity not remove-item-quantity, that is my first mistake.

    and it seems I have to send params as application/x-www-form-urlencoded in the POST body, not as URL params

    So I think I am OK now, I can see the POSTd items appearing on the invoice.

  7. Support Staff 5 Posted by Marc Guyer on 22 Oct, 2009 09:52 PM

    Marc Guyer's Avatar

    I see, well, for starters, you are using the customers/remove-item-quantity method. That's weird unless you want to remove items. Also, unless you provide quantity as a post var, the default will be to add one (1) to the customer's current quantity. Even though you may be using Poster to post, the quantity var must be in the POST params. Judging solely by the URL you've sent, the quantity is being sent as GET with an empty POST.

  8. Marcela Poffald closed this discussion on 11 Apr, 2018 06:03 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