Skip to content

Instantly share code, notes, and snippets.

@mattd
Created April 5, 2011 20:18
Show Gist options
  • Save mattd/904450 to your computer and use it in GitHub Desktop.
Save mattd/904450 to your computer and use it in GitHub Desktop.
Subscriptions Password Management
With Subscriptions Password Management, PayPal can generate unique usernames and passwords for your subscribers, enabling them to access "member only" content on your site.
Note: Subscriptions Password Management is not required to use PayPal Subscriptions and Recurring Payments. This feature requires installing a Perl script on your server. If you are not comfortable writing or editing Perl, or installing scripts on your server, do not enable Subscriptions Password Management when you set up your subscription.
Note: If you are using or planning to use Subscriptions Password Management, you cannot use Auto Return. Likewise, if you are using or planning to use Auto Return, you cannot use Subscriptions Password Management.
Overview
After a customer signs up for a subscription, he will be given a unique username and password on the PayPal Successful Completion page. You will then activate the username/password pair on your website's server through code you write or, if you are using Basic Authentication (with an Apache Web server on Linux), through a sample Perl script we provide.
How It Works
Step 1: Enable Password Generation
If you want to use Subscriptions Password Management, you will first need to activate Instant Payment Notification (IPN) from within your Profile.
When you create your subscription button, click the Subscriptions Password Management checkbox.
If you are creating and managing your own usernames and passwords, integration techniques are discussed in the PayPal Subscriptions and Recurring Payments Manual.
Step 2: PayPal generates usernames and passwords
Every subscriber will be given a different randomly generated username/password pair after signing up for your subscription.
Example:
Username: pp-bluekite
Password: dog2sun
Usernames and passwords are stored in both the buyer's and seller's Subscription Details pages.
Step 3: Activate usernames and passwords on your server
The Instant Payment Notification posted to your server will include your new subscriber's username and password.
At this point you have two choices:
You can write code on your server to accept the notifications and activate the username/password pair within your system. Learn more.
-OR-
If you are using Basic Authentication with an Apache web server on Linux, you may install and configure PayPal's sample Perl script (premier and business accounts only).
This Perl script will automatically read the IPNs and update your active username/password file.
To begin, your system administrator will have to download the Perl script and follow the installation and configuration instructions.
Download the Perl script
Close Window
Copyright © 1999-2011 PayPal. All rights reserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment