Tell us the problems you're having and we can help you out.
We are having difficulty implementing with Paypal and need the help of an experienced implementor
Anyone experienced with Lime and interested in working with us to implement Paypal in our app please email us at accounts@miccant.com
David
Tell us the problems you're having and we can help you out.
The real problem I think is that we don't understand Paypal integration properly !
Using the ASPX you create for us we upload all to our server and then try to Buy. Here's our test page:
http://www.miccant.com/Neil/payment.aspx
We are taken to a Paypal page and we get the PayPal "thank you" page, we have to click "Return to miccant" link (not sure if this should be automatic or not) but no information is passed to our paychecker.aspx page and so no activation code is generated and no email is sent from us. We just get pushed through to our pay_Thankyou.aspx page.
Just don't understand what we are supposed to do?
The first thing to do is to add a breakpoint to the top of the paychecker page to see if it's actually being called by PayPal. If it's not being called then there's likely a configuration problem somewhere in your PayPal settings.
Ok we have now managed to get beyond the Paypal - we receive a Notification email from Paypal abot the sale and funds are in our account
But our test user never receives his Pkeys generated Product key email. Tried and tried and now stuck. Here's our payment settings code - any advice?????
'==== PayPal Config ====
' Use PayPal Sandbox (set to false on your live server) Public Const PayPalSandbox As Boolean = False
' Your Paypal email (where the money will be transferred to) Public Const PayPalEmail As String = "miccant@miccant.com"
'==== Moneybookers Config ====
' Your Moneybookers email (where the money will be transferred to) Public Const MBEmail As String = "your@email.com"
' Set the "Secret Word" in your Moneybookers account ' on the "Merchant tools" page. Then set it here. Public Const SecretWord As String = "PASTE YOUR SECRET WORD HERE"
''' <summary> ''' Generate and send the product keys to your users. ''' </summary> ''' <param name="quantity">The number of licenses ordered.</param> ''' <param name="email">The email of the new customer.</param> ''' <param name="first">The first name of the customer.</param> ''' <param name="last">The last name of the customer.</param> Public Shared Sub SendPKeys(ByVal quantity As Integer, ByVal email As String, ByVal first As String, ByVal last As String)
Dim pkeyList As String = String.Empty
Try LimeLM.APIKey = PaymentSettings.LimeLM_ApiKey
' generate the product key (1 key with N activations) Dim resp As String = LimeLM.GeneratePKeys(PaymentSettings.LimeLM_VersionID, 1, quantity, email, Nothing, Nothing)
' parse the XML response Using reader As XmlReader = XmlReader.Create(New StringReader(resp)) reader.ReadToFollowing("rsp")
If (reader.Item("stat") <> "ok") Then 'TODO: handle errors how ever you need to (logging, throwing exceptions, etc.) reader.ReadToFollowing("err") Throw New Exception(("Failed to generate the product keys: " & reader.Item("msg"))) Return End If
reader.ReadToFollowing("pkeys")
Dim pkeys As New List(Of String) GetPKeys(reader, pkeys)
For Each pkey As String In pkeys pkeyList += pkey & vbNewLine Next End Using Catch ex As Exception ' failed to generate product keys ' TODO: handle the error somehow (log it, notify your support team, etc.) ' and delete the following "throw" statement Throw End Try
' System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system ' (so for ASP.NET applications youd configure this in your applications web.config file).
' Here is an example of how to configure it:
' <system.net> ' <mailSettings> ' <smtp from="test@foo.com"> ' <network host="smtpserver1" port="25" ' userName="username" password="secret" defaultCredentials="true" /> ' </smtp> ' </mailSettings> ' </system.net>
' email the product key to your users ' (only if we succeeded in getting product keys) If Not pkeyList Is String.Empty Then Dim message As New MailMessage
message.To.Add(New MailAddress(email)) message.Subject = ("Your " & AppName & " product key")
Dim customerName As String = first
If Not String.IsNullOrEmpty(last) Then customerName = (customerName & " " & last) End If
message.Body = customerName & "," & vbNewLine + vbNewLine + " Thank you for your order. Your product key is:" & vbNewLine + vbNewLine & pkeyList & vbNewLine + vbNewLine message.Body += "This product key is licensed for " & quantity message.Body += IIf((quantity > 1), " users", " user") message.Body += " (i.e. one computer) of " + AppName + "." + vbNewLine + vbNewLine 'message.Body += "This Product key is licensed for 1 user (i.e. one computer) of Akiva 2.0. " message.Body += "To unlock your Akiva software please start Akiva and click the Activate button. Type (or paste) the above Product key into the space provided and click to Activate. Akiva will then be unlocked permanently via the internet." + vbNewLine + vbNewLine message.Body += "Please keep this Product Key safe. If you need to re-install Akiva on this computer in future you will need to use this Product key." + vbNewLine + vbNewLine message.Body += "Thank you," + vbNewLine message.Body += "Miccant(Ltd)" + vbNewLine message.Body += "accounts@miccant.com"
Dim smtp As New SmtpClient() smtp.Send(message)
Did you set up your email settings? Try attaching a debugger to the page to see where the problem is.
SOLVED!
Our ISP had not configured the SMTP settings correctly
Now customers receive their Product Keys!
Thank you
Great, I'm glad you got this solved.