Testing PayPal KeyGen

You can test the PayPal KeyGen with the Activation Server installed on your host, or using the live demo Activation Server which is available at:

 

https://demo.eleckey.net/activationmanager.aspx

Username: Administrator

Password: Administrator

 

Before starting, please ensure that you have created a product in the Products page in the Activation Server. The field "EcommerceProdID2" is for use with PayPal IPN as the purchased product ID. Therefore, for each product (in the Products table) or upgrade (in the Upgrades table), you must assign a number in this field that will match the item number received from PayPal IPN

To Test PayPal KeyGen

1.       Visit http://developer.paypal.com and logon to your account.

2.       Click the Test Tools menu on the left.

3.       Under Test Tools, click the Instant Payment Notification (IPN) Simulator link.

4.       Under Instant Payment Notification (IPN) Simulator, in the IPN handler URL field, enter:

         https://demo.eleckey.net/paypal_keygen.aspx for testing with the live demo Activation Server.

         http://<Your Host>/paypal_keygen.aspx for testing with your Activation Server.

5.       In the Transaction type field, select eCheck - complete, Express Checkout, Cart checkout, or Web Accept.

6.       In the payment_status field, select Completed.

7.       In the payer_email field, enter the email address to receive the Activation Key.

8.       In the receiver_email field, enter the same email address as the key PayPalReceiverEmail in the Web.Config file (Demo: my_business@email.com).

9.       In the item_number field, enter the same number as the field EcommerceProdID2 of your product (in the Products table) in the Activation Server.

10.    In the txn_id field, enter a number as the transaction ID. This number must not be a duplicate of any Purchase ID in the Activation Server.

11.    In the custom field, leave it blank.

12.    Click the Send IPN button.

 

You can now check the Accounts page in the Activation Server for the newly added account received through PayPal IPN. The confirmation email containing the Activation Key will also be sent to the specified email address (payer_email).

To Test PayPal KeyGen for Product Upgrade

1.       Visit http://developer.paypal.com and logon to your account.

2.       and logon to your account.

3.       Click the Test Tools menu on the left.

4.       Under Test Tools, click the Instant Payment Notification (IPN) Simulator link.

5.       Under Instant Payment Notification (IPN) Simulator, in the IPN handler URL field, enter:

         https://demo.eleckey.net/paypal_keygen.aspx for testing with the live demo Activation Server.

         http://<Your Host>/paypal_keygen.aspx for testing with your Activation Server.

6.       In the Transaction type field, select eCheck - complete, Express Checkout, Cart checkout, or Web Accept.

7.       In the payment_status field, select Completed.

8.       In the payer_email field, enter the email address to receive the Activation Key.

9.       In the receiver_email field, enter the same email address as the key PayPalReceiverEmail in the Web.Config file (Demo: my_business@email.com).

10.    In the item_number field, enter the same number as the field EcommerceProdID2 of your product (in the Products table) in the Activation Server.

11.    In the txn_id field, enter a number as the transaction ID. This number must not be a duplicate of any Purchase ID in the Activation Server.

12.    In the custom field, , enter the Activation Key or the account ID of the account to be upgraded.

13.    Click the Send IPN button.

 

You can now check the Control page in Activation Manager for the account that has been upgraded through PayPal IPN. The product upgrade is shown in the Upgrade Logs. The confirmation email will also be sent to the specified email address (payer_email).

 

noteNOTE: The PayPal KeyGen records errors to the PayPal_KeyGen_Err.log file in the Database\ folder. To diagnose a problem, you can find more details from the log file.

See Also

         Configuring Activation Server for PayPal KeyGen

         Order Confirmation Email Template

         PayPal Purchase Button

         Product Upgrade Purchase

         SMTP Configuration

         Email Template