Payment Post never called

PayPal sandbox and local host:Running your c# payment example. PayPal payment is processed successfully.if (Request.HttpMethod == "POST" && CCProc != null) {CCProc.Process(); is never called, so product keys are not generated and there is no email.

Standard debugging techniques apply (we can't help you debug your code / infrastructure, etc., etc.).

Start by seeing if your address is accessible from the outside world.

Next test is PayPal can access your site: https://developer.paypal.com/developer/ipnSimulator/

Are you using TLS? Are you using certificates that are signed by a CA (i.e. not self-signed)?

Add breakpoints to your code. See what succeeds and what fails and dig in from there.

This is your sample project.It is on local host.Paypal payment succeeds to sandbox and returns to Thankyou page with correct email address.Where and how in your code does it call the POST function?

The post function seems to be only on the Page_Load function in payment.aspx.c

>> "It is on local host."

Ok. that's probably the problem. You likely don't have it running under an HTTPS (not HTTP) server with a valid CA cert. And you're running it on a local machine.

1. Run on a real server.2. Use HTTPS.3. Don't use self-signed certificates.

Anyway, these are problems you need to solve. This is not a problem in our code.

We don't have the resources to setup your servers for you. I'd advise you to either hire an IT person who knows how to setup and properly configure a website, or use a 3rd party payment provider to just handle it for you (like FastSpring: https://wyday.com/limelm/help/automate-license-generation-with-fastspring/ )

Thanks. We have a server.

If on the real server, can you explain to me how the post gets called in your c# example?

paychecker.aspx is what is called to validate and send the product keys.

The page is loaded in the Page_Load() function.

Set the CheckScript in "PaymentSettings.cs".

This is covered in our articles.