PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Automating the registration process

Hey guys,

How are you guys handling the registration process ? ie after the customer buys my product, I get an email from PayPal. I then enter their name / email / id into an excel sheet, generate a key based on their name, and then compose an email sending them the key along with the full version of my program.

Is there some program that will allow me automate much of this ? I read a while back abou Monarch, but that doesn't quite seem to do what I'm looking for here.
Have you been spying on me? :)

Dan East
Don't know if Dan was planning on saying more on that one. :?

I gave up on PAYPAL as mentioned not that long ago. Look at the others they will send all the details to a CGI key decoder that you will need to find somewhere to put. I recently bought some Forum web space which unlike my ISP where my Homepages are allow PERL scripts.

I've done nothing with PERL before, and it took me a few hours to write the string decoder. I recommend an Editor that you can save and load to FTP like UltraEdit if you are learning.

Anyway important result you click on it and get instant result on payment. You have to be honest and tell the customer what is going to happen when they pay and I think you will lose casual purchases if you aren't instant. Also you aren't getting depressed waiting for rare sales requiring you to be fast in response.

I don't really recommend who I'm with - I being silly and charging $3 so I'm short of choices. I'll soon go to $5 and shop around. :)

But from the customers view they see nice Flash on my web site or forums, click on money bag after glossy advert. Up pops simple one line shopping cart then afterwards they get email and it's on their reciept.
PHP is a great server-side programming language to use for stuff like that. It is very C-like in syntax, so it is easy for us software developers to adapt to it. That is what I wrote the Syntactic Keyword Coloring script in.

Dan East
I had built out a whole infrastructure for doing this automatically (because I too just have my Excel spreadsheet now!) for K&G; Arcade, but in the end I decided not to bother, but I thought I might share what I had done...

First of all, my web host is very good about letting me do just about anything I want on their servers. This is a prerequisite.

The distributors I deal with all send eMails on a per-purchase basis. So, I have them send to a specific eMail address. I wrote myself a small C++ app that my host was nice enough to install as a service for me that periodically (every five minutes, configurable) checks that mailbox and grabs whatever is in it.

I then make use of a tool called Monarch to parse the eMails. This tool makes it easy to deal with format changes, and also validates that the eMails actually came from one of the distributors (specific From address and subject) and is most likely valid (i.e., spam is just ignored and deleted, some hack attempts will be caught and discarded, etc.).

A small 6-digit code (contains a-Z, 0-9, so a fairly large code space) is generated at this point which takes into account a number of pieces of information from the sale.

I grab the required information from the parsed eMail and stuff it into a SQL database. This has the effect of giving that customer access to a portion of my web site for activating programs. Lastly, the program sends out an eMail with a link to the activation page, instructions, and that 6-digit code.

The user clicks the link in the eMail. This brings them directly to the activation page (they could also manually get to that part of my site but they would have to manually enter the 6-digit code). Once there, they enter a different 6-digit code that is generated when the program is run (a sort of device ID string obviously). Finally, that 6-digit code and the original 6-digit code are "combined" to generate a final 6-digit activation code that the user enters into the program. At this point as well, the 6-digit code is entered into the database, along with the eMail address, and that becomes their password and userID for the updates portion of my site.

So, if all goes according to plan, then the sequence of events for a customer is like this... purchase program... recieve eMail a few minutes later... click link in eMail... run program and enter into site the 6-digit code the program spits out... enter into program the 6-digit code the web site replies with and your done. In my mind, that's only one more step than most registration processes.

This all worked rather well and was generally pretty secure (I had a bunch of measures in place to make it if not impossible than very difficult to hack the site, and the activation code in the program I think would have at least made it difficult on crackers, although they would have gotten through it eventually of course), but in the end I decided that (a) it might annoy people, even though to me it doesn't seem that bad and (b) since it's only a matter of time that the program gets cracked anyway, is it really worth it in the long-run to protect it at all? As it turns out, since K&G; Arcade isn't selling very well, it would have to me not been worth it, so it was a good decision I think.

But, the system I thought had potential and seemed to be working well enough. Well, that's my $2*10^-8 anyway.
fzammetti wrote:
The user clicks the link in the eMail. This brings them directly to the activation page (they could also manually get to that part of my site but they would have to manually enter the 6-digit code). Once there, they enter a different 6-digit code that is generated when the program is run (a sort of device ID string obviously). Finally, that 6-digit code and the original 6-digit code are "combined" to generate a final 6-digit activation code that the user enters into the program. At this point as well, the 6-digit code is entered into the database, along with the eMail address, and that becomes their password and userID for the updates portion of my site.
.


This reminds me a bit of what ended me up using SWREG. I wanted to write some Flash but can't afford the Macromedia's software who can. So I get SwISH v2 $50 if I like it. But demo won't run server broken. Offers me to type in my email, claims to send KEY via EMAIL, it doesn't. Get on clever online systems their Australia I'm UK so replies daily. I just want to do one banner for my site and get on with programming. In the end with a weekend and thier support I end up getting the far worse Kool Moves slightly cheaper but no "Clever" server stuff to screw it up. Bought Kool Moves from SWREG which was easy so "who do I use for my stuff?".

Thing is, it's not your stuff that takes out servers it someone elses. I had a server which gave me a full BSD shell and used C on it, which is why I never learned PERL. Thier allocation of GB to users was so clearly 20 times what they actually had. When it was maxed out the file claimed to save okay but in reality saved 0 length. So my simple file checking handle!=NULL wasn't good enough. There are a lot of problems that can occur with a friendly bunch of providers, of course they didn't tell the Receivers about my 600 quid due fees so there are advantages as well.
Perfectly valid point. As a matter of fact, had I implemented this system I would be in a world of hurt right now because for over a month now I've had very bad eMail problems (high latency, hours without getting anything, even spam, sent eMails not getting through, etc.). My host is trying hard to get it all resolved, but the bottom line is that eMail has been very unreliable for me lately, and if this system was live I'd have unhappy customers (not too many based on K&G; sales of course :) ) So your right, there is certainly a down side or two to such a system.
fzammetti wrote:The distributors I deal with all send eMails on a per-purchase basis. So, I have them send to a specific eMail address. I wrote myself a small C++ app that my host was nice enough to install as a service for me that periodically (every five minutes, configurable) checks that mailbox and grabs whatever is in it.


The standard Unix program "fetchmail" does exactly this.
Concentrix was released almost exactly one month ago, just before K&G Arcade.

For Concentrix, there is only one download, the trial version unlocks to the full version. The installed trial version has a unique Product ID, and requires a corresponding Product Key to unlock it.

I do not use a third-party key system, such as Handango's. Otherwise, everything could be automatically handled by Handango when a purchase is made. This has its advantages, but I didn't want to be locked into one system, so I made my own.

Therefore, the weak link will always be email. My email has also been horrible this past month. There have been problems with Hotmail (can't send keys to customer's Hotmail accounts), my dynamic DNS email forwarding being bogged down (occasionally bouncing) due to virus/worm activity, and my ISP's mail being slow or broken. There's not much I can do about these things.

So, once a purchase is made, whether my system is manual or automated from there, the weak link is receiving the purchase notification email from Handango.

Now, as fzammetti pointed out, you need a certain level of sales before it's worth the development and testing time to automate everything. I intended to automate, but haven't gotten around to it yet.

My manual process is, customer sends me their Product ID, I see that they have purchased (from purchase notificaiton email), then I send them their Product Key. Again, email difficulties can be a problem here.

An automated system would work like this. I use fetchmail to grab purchase notification emails from my ISP. I parse them to obtain purchase information and generate a Purchase ID, which I then email to the customer and save to disk. The customer takes the Purchase ID and Product ID to a web page written in PHP. He enters this info, and the PHP provides the Product Key if the Purchase ID and Product ID are good.

The advantage here, is that once the purchase notification email has been sent to you, and you have sent the Purchase ID, everything simply uses the web from there.

Back to manual systems. I've only had a couple of customers grumble about not receiving their key right away, and a couple of those admit they are spoiled by the immediacy of the internet. On the other hand, I've had customers who purchase one day, then don't request their key for many days later, they're just busy people. Everyone is different.

I've had customers with addresses (e.g. Hotmail) which I couldn't email to for certain time periods.I just keep sending emails every few days if they bounce. I also have customers who haven't requested their keys, but haven't bounced, I worry about these ones. Are they on vacation? Do they check the email address they gave? Is their email to me bouncing? That latter has happened, due to mail forwarding problems, but it seems to be working now. As of right now, my records indicate 4 outstanding customers without keys.

So these systems aren't perfect, but one advantage of the manual system is that you have humans in the loop. I'm at the computer almost every waking minute (seriously) so people get their keys immediately after I get the email. And if they have a problem, I can handle it personally.

I had one customer who simply could not properly read her Product ID. I had another who didn't understand they had to install the trial version first (I clarified this afterwards). Little things like that, it's nice to handle personally, and get a feel for how things are going and what needs to be tweaked. You can do this when your volume is still low.
I'm glad you understood what I wrote Fzammetti, read like gibberish when I read it back. :roll:

I don't want to put anyone off trying new stuff. It's long occured to me if there is an online membership element to people buying your software. Then a simple crack is not good. Say you allow a game element for example I need these forums for something I call Metrox this must be registered by a user, who must be the first to see that code and register it. They do this on the forum publicly, I then tell them a matching code so they can unlock and use that Metrox code. Which translates to a Weapon or Ship or something FUN like that. If you have free rain over the Metrox code the game would be too easy. Only by having a small number of unique codes per user available in an openly fair way can it be blended to gameplay. People who steal the software either aren't told the codes or will have to un-naturally restrain themselves from all the cracks to enjoy the game.

On the email point, probably something to do with the 90 virus infected emails I got yesterday all with my domain but guessing username part. The world must of filled it's email boxes. Luckily SWREG puts the code on the invoice, so users don't need to wait for the email. But apparently due to possible abuse you are not allowed to tell the customer that before purchase.
One more thing about email this past month, I've found that when I send email to people at various Pocket PC web sites, some of them bounce saying their mailbox is full. Either these people don't check their mail often, or viruses are filling up everyone's mailboxes. Either way, email does have issues.
mlepage, the one thing I as a customer would be unhappy with in your manual system is the fact that I have to eMail you for my key. I assume you plan to address this in your automated system, but you may also be thinking of literally just automated what you do now. If that's not the case, of course ignore this, but if it IS the case, I would suggest against it. In my mind, the seller should be proactive in comtacting the customer and providing what they need to unlock the program (whether it unlocks the trial or they download a full version that still needs to be unlocked, either way it's the same idea). Even if the eMail they automatically get from your system just tells them where they have to go to unlock the program rather than flat-out providing an unlock code, it's still a more proactive approach.

Yes, I'm well aware of fetchmail. My host however is purely Windows, and they didn't have anything in place with like functionality, but what they DID have installed is a rather substantial collection of components for me to use, one of which being a POP3 component, so I was off to the races with little difficulty (as an aside, I used that same component on some ASP pages to write myself a webmail interface to my regular POP account because the webmail interface they provide, while very nice, runs on port 8383, and at work the corporate firewalls block anything other than port 80 and some other standard ports, so my interface appears as just any other we site on port 80, but it lets me do all the basic mail functions.)
With the manual system, the customer receives instructions in the email they receive from Handango, and they also receive a more detailed email from me which I send when I receive their purchase notification. So that's relatively proactive.

The automated system, when implemented, would have the customer go to a web page with a form and enter their IDs there to receive their Key.
some good ideas here....

This is what I've come up with after some thought.

PayPal (which is what I currently use) has a system called IPN. When someone purchases through PayPal and the payment goes through, PayPal calls a custom web script that you can specify. Using HTTP Post, PayPal sends the purchaser details, and I have a custom field in PayPal for the users Owner Name, so I get that also. The script calls back PayPal servers and authenticates that the first message actually did originate from PayPal.

The next step would be for my script to add the PayPal details to a database, and generate a key code based on the Owner Name. There would be a special section of my website where only authorized usere (ie users in the aforementioned database) would be able to access to download the full version, as well as see their key.

This is the sequence of events:

1) Customer clicks on paypal button and sends payment. The custom field include the Owner Name.

2) At the end of the payment process, customer is redirected to secure section of my website, where they are presented with a logon screen.

3) If everything goes well, customer enters their PayPal Name and e-mail address to log onto secure section of my website, where they are able to download the full version, and are able to see the unlock key.

How does this sound to everyone ? Anyone see any security holes in the above process ? This seems to me to be pretty easy on my customers, and (more importantly :)) far easier for me, since the process should be 100% automatic.
The only problem I'm going to have with the whole system is actually writing the secure download section of my website. Anyone know of any good html tutorials or such dealing with logging on and validating users ?

(I have basically no knowledge of html).
yuit, PM me and I'll help you out if I can.
phew.... ok I managed to get everything working.

It was actually relatively simple, but took me a bit longer because I had no experience with php / html.

The process is rather slick, if I do say so myself :)

The buys my product, and when their payment is verified, PayPal sends my php script a notice. The script adds their details (including owner name) to a database, and generates a key. At the completio of the PayPal transaction, the customer is redirected to my download page where they can log on, get their user key, and download the full version.

Seems to be working very well so far, and most importantly :), requires no manual intervention from me.
Depends how secure you want it. If you need SSL encryption, that's beyond me. However, a PHP / MySQL system for storing and validating user's details is plenty secure. Most forum systems use it... you could encrypt passwords and store them in the database. This is just a function in PHP and is easy to use.

That way, even if someone gained access to the users' database table, they couldn't get access to the keys table because you can't decrypt it without having the seed used to encrypt it.