How can I attribute a % of app user purchases made to affiliate who initially recommended app for download?

Currently developing a vehicle rental App in flutter for iOS/Android.

Our business has an affiliate system whereby affiliates are assigned a unique QR Code for app downloads. When a new user scans QR Code, the system needs to not only direct/attribute that App Store download to the affiliate, but also any rentals the user makes should attribute a % of rental fees to the affiliate.

How exactly can this be done? How can we link that user’s app/purchase activity to the affiliate?

i should say these aren’t exactly ‘In-App’ purchases. Any rental transaction is routed through a stripe-like payment processor.

Just a suggestion. IMHO, this business logic should be implemented and computed on your own server. And the app should request the server to know the discount percentage.

Hi Claude, thanks for the reply. Yes the % would be handled through the server. That part of the equation is relatively simple.

My main concern is how to pass the affiliate attribute through the App Store download to the user’s app. Do you have any ideas for that?

How can I attribute a % of app user purchases made to affiliate who initially recommended app for download?
 
 
Q