• Admin features of Subscription Management System

  • PHP-SecureArea

    Administration of the application, such as creating subscription areas and testing the IPN system, is all performed via a set of administration web pages.

    The following sections describe the main features of each page.

  • PHP-SecureArea

    Site details page

    This page is used to set up all the global settings for the application.

    • Your PayPal Email Address:

      This address must match the PayPal address that you use to login to PayPal. It is your registered PayPal address. It must be the PRIMARY PayPal email address, that is, if you have multiple email address registered on PayPal, you must use the one defined as primary.

      You can use this by manually entering all user details and controlling access from the admin pages rather than through PayPal. In this case the email address does not have to be the PayPal email address but would be a suitable admin email address.

    • Full URL of installation folder:

      Enter in the complete url of the folder you installed the script in. Normally this will be a folder called 'phpsecurearea' at the root of the web site, so the url will be http://www.yourservername.com/phpsecurearea/
      Remember that Unix or Linux operating systems are case sensitive and you must enter the full URL.

    • Notify URL:

      This is displayed for information only, and is the url which PayPal IPN uses to post its data to.

    • Folder where .htpasswd is located:

      Enter in the full file reference for the folder where the .htpasswd file is located. This will be of the form /server/user/lib/files/pwd/ and is usually located outside the root of your web site - otherwise protect it with an .htaccess file. You must create the folder first and then change its permissions to 777.

    • Site title:

      A suitable site title which will be displayed in administration pages.

    • Default Currency:

      Select as required.

    • Your site admin email:

      This is an address which is used as the from address when an email is sent. You should enter a valid email address. If you leave it blank, then the 'from' address of all emails sent out will be the same as your PayPal Email Address.

      The admin email address MUST have the same domain name as the domain that your site is hosted on otherwise the customer may not receive their email.

    • Copy Email:

      A tick box which is used to identify if you wish the emails to be copied to yourself. This is useful for testing so that when a product is purchased you can see that everything is OK. The emails will also include the login password which may be useful to have if a user is having problems.

    • Cancel URL:

      The full url address of a web page which the user will see if they cancel their attempt to purchase. If this is blank, then a standard page on the PayPal site will be displayed. It is an optional entry, but gives a better impression to a customer and would say something like 'You have cancelled your purchase'.

    • Return URL:

      The full url address of a web page which the user will see after they have completed their purchase. If this is blank, then a standard page on the PayPal site will be displayed. It is an optional entry, but gives a better impression to a customer and might say something like 'Thank your for your purchase, you will receive an email in a few minutes. If you do not, then contact us at ...'

  • PHP-SecureArea

    Graphic button

    • Choose a graphic button

      Select which graphic button you wish to be displayed or you may enter the full url of another graphic image.

  • PHP-SecureArea

    Manage secure areas

    This is where you define your secure areas and enter the folder location as described in the on the secure area page.

    You may create a number of separate secure areas all pointing to the same folder reference. You may also enter a number of folder references against the same secure area so a customer will be able to login to different folders using the same username / password.

  • PHP-SecureArea

    Product list page

    • Product item number:

      Enter in a suitable item code such as 'premiumcontent' or 'shortsubscription'.

    • Product item name (brief):

      A short description of the item which acts as a title.

    • >Currency:

      Select as required from the drop down list.

    • Secure area

      Select as required from the drop down list. You cannot create a product without first creating a secure area.

    • Regular billing cost:

      Enter in a value for the normal billing cost.

    • Regular billing cycle:

      Enter in a number which will identify the number of days, weeks, months or years that the regular billing period will run for.

    • Regular billing cycle units:

      Choose the units of the regular billing cycle of days, weeks, months or years.

    • Recurring payments:

      Select 'Yes' if you would like your subscribers to be billed on a recurring basis. This means that after the regular billing cycle that you previously entered is complete, your customers' subscriptions will be automatically renewed unless a customer manually cancels his subscription. If you select 'No', your customers' subscriptions and payments will end after the first cycle is completed.

    • Re-attempt on failure:

      Click the 'Yes' radio button if you would like PayPal to automatically re-attempt failed payments. Payments will be re-attempted by PayPal three days after the failure date. After a second failure, PayPal will try once more five days later. A third failure will lead to an automatic cancellation of the subscription.

      If you select 'No', failed payments will result in the automatic cancellation of the subscription.

    • Recurring times (installments):

      Enter in the number of installments for payments at your regular rates. This means that once a customer has made the specified number of payments at your regular rate, his subscription will be completed. If no value is entered, your customers' subscriptions will continue unless it is cancelled manually or by payment failure.

    • Email Subject:

      This entry is copied from the setup table and may be modified to suit this product.

    • Email Text:

      This entry is copied from the set up table and may be modified to suit this product.

    • Make public:

      At the moment this does not have any function.

  • PHP-SecureArea

    Manage users page

    This is a list of current users and identifies their access state to the system.

    • Email address:

      The email address that the customer users to log in with.

    • Secure area:

      Identifies the name of the secure area that this customer can access.

    • Subscription state

      Will be either Activated or Disabled. When a customer purchases a subscription this will be Activated for the period of the subscription, and will then change to Disabled when the subscription has expired. If the user has been created manually then the state will always be Disabled because the subscription can only be created and controlled by the purchase of a membership subscription through PayPal.

    • Password state:

      Will be either Activated or Disabled. When activated, the user can login. The password will become disabled if the subscription for that customer has expired or if you, the administrator has disabled the password.

      Note that for a user that has been created manually, you will have to manually disable access to the area as it will not be under the control of a PayPal subscription. This can be done using the supplied cron job.

    • Disable password:

      Clicking on the link disables the password for that customer stopping them from logging in.

    • Date created:

      Is the date and time the user was created either manually or automatically.

    • Send password to customer:

      This allows you to re-send the password to the customer and is useful during testing when you create test users.

    • Delete user

      This will completely remove the user from the application.

  • PHP-SecureArea

    Create a new user

    Use this page to manually create a user and optionally make the user active for the subscription area. An active user account means the user can log in to the subscription area. A disabled user is unable to log into the subscription area. Also, you can optionally send an email to the new user with their login details.

    Note that manually created users are not under the control of PayPal. A cron job is provided which can be used to control manual users and disable subscribers.

  • PHP-SecureArea

    Transactions page

    Lists all the completed transactions, those from PayPal and from the test facilities.

  • PHP-SecureArea

    IPN test page

    The system can be tested using the IPN page. See testing page.

    To perform a local test go to the IPN test page and select the product you wish to test. This will take you to another page which displays all the input fields which must be filled out to run this test. Most of them are filled out automatically for you from the product information list. You need to fill in the payer email address which which acts as the purchaser. You also need to select an appropriate transaction type.

    This test by passes the IPN system but does test all other elements of the application.

    You may wish to test what happens when you change other entries on the page.

  • PHP-SecureArea

    Email to all purchasers with a newsletter

    Select email format as either HTML or plain text.

    Enter in the subject line for the email.

    Enter in the body text for the email.

    Pressing Submit will send an email to each of the purchasers you have in the table saleshistory.

  • PHP-SecureArea

    Email purchasers of a product with a newsletter

    Choose the product from the list.

    Select email format as either HTML or plain text.

    Enter in the subject line for the email.

    Enter in the body text for the email.

    Pressing Submit will send an email to each of the purchasers of the selected product who are in the table saleshistory.

  • PHP-SecureArea

    Display sales by date

    The sales display enables selection of to / from dates to display the totals sales for the defined period. It calculates totals, but at the moment the total does not differentiate between currencies. If this proves to be a problem, I should be able to fix it, but I believe most users will only sell with one currency.

  • PHP-SecureArea

    Administrator password

    Change your admin user password and username.

    You may want to add in your user name and password directly into the database if you have the ability to do that.

    However, remember that the password is stored in MD5 encrypted format within the database.

    The password must only have characters a - z and 0 - 9 and must not be greater than 10 characters.

    Usernames are restricted to a-z, 0-9, @ and full stop characters.