PayPal Password Management - 2002 Guía de instalación Pagina 14

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 22
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 13
Configuring the PayPal Password Management Script
Configuring the PayPal Password Management Script
3
14 April 2002 Password Management Installation Guide
my $PERIOD1 = '';
my $PERIOD2 = '';
my $PERIOD3 = '';
my $AMOUNT1 = '';
my $AMOUNT2 = '';
my $AMOUNT3 = '';
my $SMTP_SERVER = '192.168.1.10';
my $ADMIN_EMAIL = 'admin@abc123.com';
my @PAYMENT_EMAILS = ('s@a123.com');
3. Change the path of $PASSWORD_FILE to that of your .htpassword file which you created
above.
4. You need to specify a path and filename for $TRANSACTION_FILE. This file is used to track
the transactions the Password Management script has processed. Create this file using the
touch command:
touch /var/www/files/processed_txns
5. Then change the owner so the script will be able to write to it (replace our example Apache
username with your actual username):
chown /var/www/files/processed_txns apache
6. If you plan on using SSL to secure communications between PayPal and your website then
you should change
$PAYPAL_URL to:
my $PAYPAL_URL = 'https://www.paypal.com/cgi-bin/webscr';
However, be sure to follow the later directions on downloading and installing the SSL
modules. Otherwise leave this as is.
7. To ensure that a new subscription sign-up meets your expected terms and conditions you
need to fill in each pay period and amount. For example, if you created a subscription
button and specified that the first month was $20.00, the second month was $10 and then
$5 for each month thereafter the period and amount constants would look like:
my $PERIOD1 = '1 M';
my $PERIOD2 = '1 M';
my $PERIOD3 = '1 M';
my $AMOUNT1 = '20.00';
my $AMOUNT2 = '10.00';
my $AMOUNT3 = '5.00';
Each period is expressed as a number followed by a single capital character. Valid characters
are D (for day), W (for week), M (for month), Y (for year). Amounts are specified in dollars
and correspond with their respective period (period1 goes with amount1, etc.).
Vista de pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Comentarios a estos manuales

Sin comentarios