Here is how I have integrated my rev project with payPal so I can recieve on-line payments hassle-free. There are 4 pages to this. This page will give you an overview of the implementation (the big picture). The following pages will go into the details and provide links to scripts and stacks I've used (details).
What you need:
Here is an outline of what my registration process looks like:
- cool rev project ('natch)
- Hosting service that will let you run rev cgi (I'm using Dreamhost. iPowerweb also runs rev without a problem)
- PayPal account
- a paypal 'sandbox' account --you need this to test things out.
- a registration scheme for your project. e.g. a simple routine to mix up the email address
Here is a simple graphic of the process
- user clicks on a button in my project. The button has this script:
go stack URL "http://www.mysite.com/myproject/reg/reg_stack.rev" in a new window
A stack is downloaded from my site and is displayed.
- The user selects the type of license (single, site) and presses a button.
- The stack generates the license code and writes that information (as well as some tracking info) to a text file on my site. This is done by sending the info to a cgi.
- Next a html address is built to call PayPal with your product's info and customer tracking number. This is sent via shell to automatically launch the user's browser and display PayPal's site.
- The user pays. PayPal will send the user back to a cgi on your site.
- Your cgi checks the output from PayPal. If the payment is completed, it finds the user's license key in the "key_log.txt" file. Then it uses a "success.html" file to create a custom page with the license key displayed. It also email the user with the key.
Next, I'll go into more detail and note some possible pitfalls that could trip you up [they did me!]:
>> let's begin >>