Test Affonso with a sandbox program
Affonso has no separate sandbox or test mode. Create a second program in your account to keep test partners, referrals, and commissions separate from your real program. Adding a program requires an active Affonso subscription or trial.
Test revenue counts toward your plan's revenue cap
Every program, including your test program, currently counts as a normal program. Revenue tracked in it counts toward your plan's revenue cap. Use Reset program data right after testing instead of leaving test data in the program.
A dedicated sandbox program type is in the works. Its revenue won't count toward your plan's revenue cap, and its data will be deleted automatically after a short time.
Before you begin
Make sure you have:
- An active Affonso subscription or trial.
- A separate website or staging copy for the test program's tracking script.
- A payment provider account for test purchases, separate from your live program's connection.
- The Delete & reset program permission for cleanup, which the program creator has by default.
Create the test program
Open Add Program
Click your program name in the top-left sidebar, then click Add Program under Partner Programs.
If the sidebar is collapsed, the same control is labeled Add. If you see Unlock multiple programs, click Start your free trial. If you see Reactivate to create programs, click Choose a plan.
Create a separate program
Enter Test program in Program Name, set Default landing page URL to your test website, choose an available Partner Dashboard Subdomain and Currency, set a non-zero Percentage commission, then click Create Partner Program.
Affonso switches to the new program and creates a test partner named Use this account for testing. Use the program name in the top-left sidebar to switch between programs.
Test tracking and commissions
Install the test program's tracking script on your test website using the setup guide, then connect its payment provider. Use the new program's script and payment connection so test activity reaches the right program.
Open Partners, select the test partner, and use their referral link in a private browser window. Complete a purchase as a test customer, for example test@example.com. Return to Referrals in your test program to check the visit, conversion, and commission.
For Stripe Checkout, a 100% off coupon lets you test attribution and conversion without a charge. A completed zero-value one-time purchase is recorded as a sale without a commission earning. To check a non-zero percentage commission, use a partial discount and complete a small purchase. Percentage commission uses the net amount after discount, before tax.
If the visit or conversion is missing, follow the tracking debug checklist.
Remove the test program
Reset test data right after testing. You can then reuse the program or schedule its deletion. Check that Test program is selected before either action.
Reset the test data
Click your program name in the top-left sidebar, then Account Settings → Danger Zone. Under Reset Program Data, click Reset program data, type reset Test program to match the confirmation phrase, and click Reset program data again.
Use Reset program data right after testing because revenue tracked in this program counts toward your plan's revenue cap. This permanently removes the program's partners, referrals, earnings, and payouts. It keeps the program configuration, groups, and incentives so you can test again. You cannot undo the reset.
Schedule deletion of the program
To remove the whole program after resetting its data, open Account Settings → Danger Zone from the program switcher. Under Delete Partner Program, click Delete partner program, type delete Test program to match the confirmation phrase, and click Schedule deletion.
Deletion takes place after 14 days. The program stays usable until then. Click Cancel deletion in Danger Zone during that period if you change your mind.
