Test your setup
Run a referral from click to commission before you invite real affiliates.
Before you invite affiliates, follow one referral from click to commission yourself. It takes a few minutes and proves the script, the checkout and Stripe all work together.
Choose how to test
A product is connected to one Stripe mode, test or live, and there is no switch between them. Pick one of two ways to make a sale without losing money.
Add a second product connected to Stripe test mode, and pay with a test card. Nothing is charged.
- It needs its own website, such as a staging copy at
staging.yourapp.com. A second product onyourapp.comis refused, becauseaffiliates.yourapp.comalready belongs to your live product. Supaffi then proposesaffiliates.staging.yourapp.com, with its own DNS record. - Before you press Create the key in Stripe, switch Stripe to test mode or a sandbox. The key you paste must start with
rk_test_. - The staging site needs the test product's script tag and the checkout change, with your Stripe test keys.
Either way, see Add a product and the rest of this section for the setup itself.
Run a test referral
Sign up as an affiliate
Open the product's signup link and join with an email you will not buy with. Note your code.
Open your affiliate link in a private window
A fresh window starts with no earlier referral:
https://yourapp.com/?via=your-codeIn the browser's developer tools, your site should now have a
__supaffi_referralcookie.Buy from the same window
Go through your normal checkout with a different email from the affiliate's. In test mode, use Stripe's test card
4242 4242 4242 4242with any future date and any CVC.Look for the commission
Open Commissions in Supaffi. The sale shows up as soon as Stripe reports it, usually within seconds.
What to check
Open the commission to check the details:
- Sale links to the payment or invoice in Stripe.
- Click and Link show your test click and code.
- The amount is the program's rate applied to the price after discounts, before tax.
To finish, refund the payment in full in Stripe. The commission is voided and its detail reads Refunded in Stripe with the date. On the live product, this step is what keeps the test free.