Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsWhen do PayPal events get approved?When do PayPal events get approved?
Previous
 
Next
New Post
10/12/2007 2:47 PM
 

I am unable to test the events module with a real PayPal account at the time being, but looking through the source code I cannot find where the event gets approved.

Clicking the purchase link enrolls the user into the event, but does not yet approve it. But when the user is taken back to the DNN site from paypal, they aren't approved either...?

In the cmdPurchase_Click event handler, there is this:

                    objEventSignups = New EventSignupsInfo
                    objEventSignups.EventID = objEvent.EventID
                    objEventSignups.ModuleID = objEvent.ModuleID
                    objEventSignups.UserID = UserId
                    objEventSignups.PayPalStatus = "none"
                    objEventSignups.PayPalReason = "PayPal call initiated..."
                    objEventSignups.PayPalPaymentDate = DateTime.Now
                    objEventSignups.EventTimeBegin = CType(Me.lblStartDate.Text, DateTime)
                    objEventSignups.Approved = False
                    objEventSignups = objCtlEventSignups.EventsSignupsSave(objEventSignups)

Obviously the EventSignup is saved, and the Approved status is False. In that same event handler, the following are passed to PayPal as the Return and Cancel redirect URLs:

Dim returnURL As String = NavigateURL(TabId, "PPEnroll", "Mid=" & ModuleId, "signupid=" & CType(objEventSignups.SignupID, String), "status=enrolled")
Dim cancelURL As String = NavigateURL(TabId, "PPEnroll", "Mid=" & ModuleId, "signupid=" & CType(objEventSignups.SignupID, String), "status=cancelled")

Here's where my discrepency lies. At this point the user is redirected to PayPal, and there is no way PayPal can modify anything about the EventSignup. So when they are redirected back to the DNN site, the following code is passed:

                        If Request.Params("status") = "enrolled" Then
                            ' User has been successfully enrolled for this event (paid enrollment)
                            Me.lblPurchase.Text = Localization.GetString("lblComplete", LocalResourceFile)
                            Me.cmdPurchase.Visible = False
                            Me.cancelButton.Visible = False
                            Me.cmdReturn.Visible = True
                        ElseIf Request.Params("status") = "cancelled" Then
                            ' User has been cancelled paid enrollment
                            Me.lblPurchase.Text = Localization.GetString("lblCancel", LocalResourceFile)
                            Me.cmdPurchase.Visible = False
                            Me.cancelButton.Visible = False
                            Me.cmdReturn.Visible = True
                            ' Make sure we delete the signup
                            objCtlEventSignups.EventsSignupsDelete(SignupID)
                        End If
                   

If the user cancels the payment, then great, the EventSignup is deleted. But if they actually pay, the only thing that happens is that labels' text is set and the cmd links are set. Is the user really in Approval limbo right now? Or is there something else going on somewhere that I am not seeing?

Like I said, I am unable to actually test using paypal right now, but I do know that once redirected to PayPal, the user is enrolled but not approved.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsWhen do PayPal events get approved?When do PayPal events get approved?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out