Testing using Poster firefox plugin
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.
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
Support Staff 1 Posted by Marc Guyer on 22 Oct, 2009 03:24 PM
jmp -- It looks like you've got it figured out judging from the invoice of your one test customer. Got any more questions?
Marc Guyer closed this discussion on 22 Oct, 2009 03:24 PM.
jmp re-opened this discussion on 22 Oct, 2009 08:49 PM
2 Posted by jmp on 22 Oct, 2009 08:49 PM
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
3 Posted by jmp on 22 Oct, 2009 09:42 PM
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
4 Posted by jmp on 22 Oct, 2009 09:52 PM
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.
Support Staff 5 Posted by Marc Guyer on 22 Oct, 2009 09:52 PM
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.
Marcela Poffald closed this discussion on 11 Apr, 2018 06:03 PM.