This article applies to: ML v7

PlugNPay Payment Gateway


Due to 3rd-party COM requirements, the PlugNPay gateway requires a recompile of the AspDotNetStorefront software to enable. Non source-code customers should contact Support for an AspDotNetStorefrontGateways.dll file with the gateway compiled in and then start with step 3 of these directions.

NOTE: Customers running on a shared server should check with their hosting company before attempting to use PlugNPay. This gateway requires that a 3rd-party DLL be registered on the server, which not all hosts will allow.

1. Customers with the full source code can open the PlugNPay.cs (or .vb) file located in the ASPDNSFGateways folder and remove the comment near the top of the file, so

//#define PLUGNPAY

becomes

#define PLUGNPAY

2. After making that change, save the file and recompile the application.

3. Drop the modified AspDotNetStorefrontGateways.dll file into the /bin folder on the live site.

4. Log into the PlugNPay site at https://pay1.plugnpay.com/admin/index.cgi and click on "API & Cart Downloads" and then on the window that opens, click the 'Download' link next to the first API listed - "98/NT/2000/XP/2k3 (WinINET)".

5. Save the file locally when prompted, then extract the contents to a temp folder on your computer. Move the 'pnpcom.dll' file to the /bin folder of your live site.

6. Next, register the DLL by opening a command prompt and entering the following command:

regsvr32 C:\{yourpath}\bin\pnpcom.dll (replace {yourpath} with the path to your site's /bin folder on the server.

7. In the AspDotNetStorefront admin site, go to Misc → AppConfig Parameters.

8. In the Config Search box, enter “PlugNPay”, then click Search. Results should be shown as below:

9. The following AppConfigs will need to be populated with your personal account information, obtained from PlugNPay. Do not change the other AppConfigs unless instructed to do so!

- PlugNPay_Password
- PlugNPay_Username

10. Finally, go to Misc → Run Config Wizard in the AspDotNetStorefront admin site and select “PlugNPay” from the Payment Gateways section. Click the “Submit” button, and your gateway setup is complete.

Test Credentials
For testing purposes, store admins can use the following credentials for this gateway:

- PlugNPay_Password: pnpdemo
- PlugNPay_Username: pnpdemo

During test order checkout, use 'cardtest' as the name on the card and 4111111111111111 for the CC number. To simulate a successful transaction use a dollar amount under $1000. For a 'badcard' response, use $1001 - $2000. For a 'problem' response, use a transaction over $2000.