I'm researching into a offline affiliate script. Where a coupon/voucher is presented offline by the retailer to their customer in store. THe voucher entitles the customer to a discount for a paid subscription site that provides extra services that the retailer wishes to extend their service to their customer. The customer also receives their own referal code to receive commissions or reward points from their referals.

There are 4 groups within the programme Manufacturer, Retailer, Customer & Collector Society. Only the retailer and collector benefits from discounts and commissions. While the Society gains membership subscriptions and a portions of the sales in commissions to the Retailer and customers. The manufacturer obtains free product promotion and supports it's retailer.

I am looking at building a general script that will handle these offline promotion codes.

Simple flat file database to receive the Retailer registration and to generate the unique promotion/referal code for printing and distribution. Subscription payments via Paypal with confirmation of payment to qualify for commissions and reward points. Reward payments via through Paypal or by cheque.

Any ideas