bright, fresh software
Downloads  |  Buy

Paypal validation fails

Paypal validation fails

Postby mks » August 14th, 2011, 11:00 am

Hi
I have tried Paypal but I can't seem to get it working. The payment goes through successfully, however when you click on the return link in paypal, you return to the "pay_thankyou.aspx" page and thats it.

Should not Paypal automatically return to the appropriate page when the payment has gone through. Is there a step missing?

The return paypal validation fails at the first hurdle. This is in sandbox mode

If (Request.Form.Item("payment_status") <> "Completed") Then
errorlog.WriteActivity("PP Payment status not completed successfully")
Return False
End

Another thing: I logged on to LimeLM this morning and got about dozen activation keys (none activated). They must have beeb made at various points yesterday, but why did they showup only today. They are all associated with the customer email, but there is nothing in the customer email inbox. Strange
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Re: Paypal validation fails

Postby mks » August 14th, 2011, 11:23 am

"Should not Paypal automatically return to the appropriate page when the payment has gone through. Is there a step missing?"

OK disregard this - return activity is generated as soon as you press Pay Now. Its jsut that the validation fails
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Re: Paypal validation fails

Postby Wyatt » August 14th, 2011, 12:26 pm

Add a breakpoint at every "Return" statement in paychecker.aspx.vb. This way you can validate what went wrong.

... but there is nothing in the customer email inbox. Strange


The email sending code is in PaymentSetting.vb. There's a comment that explains how to set up ASP.NET to send emails:

System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system
(so for ASP.NET applications you’d configure this in your application’s web.config file).

Here is an example of how to configure it:

Code: Select all
<system.net>
  <mailSettings>
    <smtp from="test@foo.com">
      <network host="smtpserver1" port="25"
               userName="username" password="secret" defaultCredentials="true" />
    </smtp>
  </mailSettings>
</system.net>
User avatar
Wyatt
Site Admin
 
Posts: 3243
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Paypal validation fails

Postby mks » August 15th, 2011, 6:59 am

Hi

I have done some more trials, but the validation seems to still fail at this point:

If (Request.Form.Item("payment_status") <> "Completed") Then
errorlog.WriteActivity("PP Payment not completed successfully")
Return False
End If

I tried it in non-sandbox mode (with a nominal payment) and paypal sends out two email notifications - to the customer and to the company.

Turbo Activate works, so the licence key can be issued manually I suppose. Find-Key by email also works.
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Re: Paypal validation fails

Postby Wyatt » August 15th, 2011, 7:37 am

What is the "payment_status" when it fails? Write that to your log:

Code: Select all
errorlog.WriteActivity("PP Payment not completed successfully" & Request.Form.Item("payment_status"))
User avatar
Wyatt
Site Admin
 
Posts: 3243
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Paypal validation fails

Postby mks » August 15th, 2011, 8:52 am

Returned Status = Pending
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Re: Paypal validation fails

Postby Wyatt » August 15th, 2011, 9:00 am

It should eventually contact your server with the "Completed" status. Does this ever happen? That is, are you letting your server run for a while or are you killing it immediately after it gets a "Pending" status?
User avatar
Wyatt
Site Admin
 
Posts: 3243
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Paypal validation fails

Postby mks » August 15th, 2011, 10:55 am

its on a remote server (VPS) so its always running in the background. But yes there is something holding up the process
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Re: Paypal validation fails

Postby Wyatt » August 15th, 2011, 11:09 am

I've sent you an email with a new version of paychecker.aspx.vb. Try that.
User avatar
Wyatt
Site Admin
 
Posts: 3243
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Paypal validation fails

Postby mks » August 15th, 2011, 11:47 am

it still has the same status = "pending" issue
mks
 
Posts: 19
Joined: July 30th, 2011, 3:43 pm

Next

Return to LimeLM, TurboActivate, & TurboFloat Support