Overview
Connect Stripe to automatically track payments, subscriptions, and refunds. Commissions are calculated and attributed to partners in real time.Features
- Automatic transaction tracking - All Stripe payments create transactions
- Subscription support - Track recurring payments for ongoing commissions
- Refund handling - Commissions are reversed on refunds
- Customer syncing - Stripe customers are synced to Partnero
Setup
Step 1: Connect Stripe
- Go to Program Settings → Integrations
- Click Connect Stripe
- Authorize Partnero to access your Stripe account
You’ll need admin access to your Stripe account to complete the connection.
Step 2: Configure Webhook
Partnero automatically sets up webhooks, but verify they’re working:- In Stripe Dashboard, go to Developers → Webhooks
- Verify a webhook exists for
https://api.partnero.com/v1/integrations/stripe/{your_program_id}/webhook - Ensure these events are enabled:
checkout.session.completedinvoice.paidcharge.refundedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deleted
Step 3: Map Products (Optional)
Set specific commission rates for different products:- Go to Program Settings → Commissions
- Click Add Product Rule
- Select Stripe products and set commission rates
How It Works
Payment Tracking
When a Stripe payment is processed:Customer Attribution
Customers are attributed to partners via:- Referral Cookie - Customer clicked a partner’s referral link
- Coupon Code - Customer used a partner’s coupon at checkout
- Metadata -
partner_keypassed in Stripe metadata
Passing Partner Attribution
Include partner information in Stripe Checkout:Subscription Handling
New Subscriptions
When a subscription is created:- Transaction created for initial payment
- Commission calculated and attributed
- Recurring flag set for future payments
Recurring Payments
Each subscription renewal:- New transaction created automatically
- Commission calculated (if recurring commissions enabled)
- Partner continues earning
Subscription Changes
- Upgrades - Additional commission on increased amount
- Downgrades - Commission adjusted accordingly
- Cancellations - Future commissions stop
Refunds & Disputes
Automatic Refund Handling
When a refund is processed in Stripe:- Partnero receives the refund webhook
- Original transaction is marked as refunded
- Commission is reversed/cancelled
- Partner balance is adjusted
Partial Refunds
For partial refunds, commission is adjusted proportionally:Stripe Checkout Integration
Using Stripe Checkout
If you use Stripe Checkout, add tracking before redirect:Passing Referral Data
Ensure referral data flows to Stripe:Testing
Test Mode
Connect your Stripe test mode account to test the integration:- Toggle to Test Mode in Stripe Dashboard
- Connect Stripe in test mode from Partnero
- Use Stripe test cards to simulate payments
Test Cards
| Card Number | Scenario |
|---|---|
4242424242424242 | Successful payment |
4000000000000002 | Declined payment |
4000000000003220 | 3D Secure required |
Troubleshooting
Transactions not appearing
Transactions not appearing
- Verify webhook is configured correctly
- Check webhook logs in Stripe Dashboard
- Ensure customer has referral attribution
Commission not calculated
Commission not calculated
- Verify commission rules are configured
- Check if partner is active
- Confirm customer is attributed to partner
Webhook errors
Webhook errors
- Check webhook signing secret is correct
- Verify endpoint URL is accessible
- Review error logs in Stripe Dashboard
