Testing integration with CG

mphillips's Avatar

mphillips

19 Mar, 2012 04:22 PM

Hi there,

Is there some way that I can get a CG pricing plan to run it's 'billing' phase before it's supposed to, for testing purposes? I'm looking at testing our team's use of CG which will include a monthly pricing plan and don't want to have to wait an entire month (or even an entire day) before seeing that everything happens as expected (bill calculation, emails sent to users, how our application deals with the results of unpaid bills etc.).

If you have any other useful hints and tips for someone testing applications using CG I'd be very interested in hearing them too. Other than the 'Error simulation' article (which looks very useful) I couldn't find much about testing integration with CG in your FAQ.

Martin.

  1. Support Staff 1 Posted by Marc Guyer on 19 Mar, 2012 05:07 PM

    Marc Guyer's Avatar

    This is actually really easy. Simply change the bill date on the subscription to today. You can do this via the GUI or the API.

    In the GUI, click the edit button (little pencil) next to the subscription. In the pop up, select today's date in the next bill date override box. That will transact the current invoice immediately as if it had naturally come due.

    In the API, use the edit-subscription call and set only the changeBillDate param. You can set it to the word "now".

  2. Marc Guyer closed this discussion on 19 Mar, 2012 05:07 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