The demo application depends on some dlls. All dlls (except zaypay.dll) are located in dlls folder. You can add zaypay dll to the project from [zaypay plugin] (https://github.com/zaypay/asp_dot_net_zaypay_plugin).
If you want to run this application on your localhost, and yet connect to the Zaypay platform to create payments, receive reports etc, you might need to configure port forwarding on your local machine.
You have to make sure that your application is accessible from internet. This is important, because Zaypay sends report of your payments to the reporting url you gave when creating your price settings and payalogues at Zaypay.com
If you have a public ip address, you have to make sure that your windows server and iis express allows external connections to your application on a specific port.
Please follow these steps if your application cannot be accessed over the internet:
- First, you need to tell HTTP.SYS at the kernel level that it's OK to let everyone talk to this URL by making an "Url Reservation."
You can check if your url is supported or not by the following httpcfg command:
httpcfg query urlacl
From an administrative command prompt you can make reservation if your url is not supported, for example, port 2167 with any ip address:
httpcfg set urlacl /u http://*:2167/ /a D:(A;;GX;;;WD)
- Next, as you want to be able to talk to IIS Express from outside, you need to allow IIS Express through the Windows Firewall. You can do that graphically from Windows, or type in command prompt:
netsh firewall add portopening TCP 2167 IISExpressWeb enable ALL
where 2167 is the port you want to allow.
- Finally, you need to change the bindings section in applicationHost.config file of iis express:
<binding protocol="http" bindingInformation="*:2167:" />
You have to restart iisexpress for changes to take affect.
- Your machine is accessible from external source.
- Zaypay.json file is in App_Data directory of the project with proper id to key mappings.
- You have added zaypay dll from zaypay plugin.
- You have added all dlls in dlls folder