Chad Nash
 river guide Posts:4674

 |
| 06-17-2008 02:59 PM |
|
Dynamic Registration 3.2 now supports
PayPal!
Hi everyone… Dynamic Registration 3.2 was released today. Some of the final testing we have been doing is directly related to the PayPal integration that was added to the 3.2 release. The PayPal integration is a major new feature in 3.2 and one that we will continue to review and enhance. The biggest benefit is that PayPal can always be talking to your registration form, and therefore able to manage the users subscription (based on security roles within your DNN site) and based on their subscription setup within PayPal. These enhancements are similar to the PayPal integration with Dynamic Forms but since the information is adding/updating the user and also interacting with SQL events I wanted to cover several topics related to the feature so that everyone has a good understanding for how it works, how you should implement it, and common tips/FAQ’s.
First, let’s cover some of the basics.
We designed the integration with PayPal to be as powerful as possible. This means that you should be able to provide as few or as many types of implementations with PayPal integrated, and with each implementation you could potentially have very separate forms of integration. Beyond just integration, you should be able to utilize all types of Dynamic Completion Events that correspond to your registration process and PayPal integration. So, a few examples should include:
- Do not actually create the user until payment is completed
- Add or remove the user from security role(s) when payment is completed
- Distribute email(s) to user or administrator for various payment notifications
- Perform any other Dynamic Completion Event (Emails, SQL statements, HTTP Posts, Adding or Removing User from role) – All based conditionally upon users responses to questions and also based conditionally upon PayPal response codes (Payment Completed, Payment Pending, etc...)
When PayPal integration is turned on:
- The user is redirected to PayPal based on the information and settings within your PayPal Payment gateway. This includes the PayPal login, sandbox or standard gateway, and payment information/additional parameters.
- Completion events do not get fire off initially
How do completed events get fired off?
- When PayPal is enabled Dynamic Completion Events need to be ‘linked’ to PayPal IPN codes. In short, this means that you will specify within the PayPal payment gateway section which ‘completion events’ should be fired off basically conditionally upon which IPN code PayPal will send to your registration form.
- For example: Maybe you want to setup a completion event to add the user to a security role, but you only want this to happen when the payment is completed. You would first create the completion event, and then you would ‘link it’ within the PayPal payment gateway section under ‘Form Completion Events / PayPal Payment Status’
- For example: Maybe you want to setup a ‘Payment failed’ email to be sent to the administrator if a subscription payment fails. You would first create the completion event, and then you would ‘link it’ within the PayPal payment gateway section under ‘Form Completion Events / PayPal Payment Status’
- The ‘Redirect Successfully’ and ‘Redirect After Cancel’ are status codes that should be directly related to Redirection completion events only. Why? These IPN status codes are actually what’s processed when the user returns back to the site from PayPal.
- These IPN status codes from PayPal should be setup with URL redirection events ONLY
- All other IPN status codes besides these two should NOT be setup as URL redirection events. Why? Well when PayPal sends the registration form a IPN status code such as ‘Pending’ or ‘Complete’, this is silent and separate from the user interaction. Therefore, there is no need to redirect the user besides its actually PayPal servers that are posting these IPN status codes
- You typically should always have a URL redirection event setup for both Success and Cancel redirect IPN status codes. These are used when the user is finished with the PayPal and clicks the link to go back to the site, or when the user clicks the cancel link
- Even though you might redirect a user to a ‘Success URL’ this doesn’t necessarily mean that the transaction was successful for complete. For example, if the user used an ECheck, the payment is probably in ‘Pending Status’ but the URL is still successful.
- If you do not setup a redirect successful or redirect cancel URL the user might not be redirected to a proper page after returning from PayPal
- Completion Events are still conditionally based on responses, for example if you specify that the user should check a box or answer a question a specific way, then this will be checked as well as the completion event / status link. Or if you have a completion event to be fired off for initial registration only, this setting will still apply.
We will be working on several tutorials over the coming weeks, a few demonstrations, and also cover some FAQ's on this topic.
If you have any questions please let us know!
-Chad
|
|
|
|
|
JackPerkins
 skipping stones Posts:9

 |
| 11-07-2009 05:04 AM |
|
Hey Chad, Any Example of Paypal Integration from Dynamic Registration you can refer?? I just want to see the power of this module as i am unable to figure it out how to use it. J. |
|
|
|
|
David To
 river guide Posts:2736

 |
|
JackPerkins
 skipping stones Posts:9

 |
| 11-14-2009 10:06 AM |
|
Hi,
I just Purchased Dynamic Registration. Just wondering, Can i do credit card Payments via paypal using Dynamic Registration. iF yes Can you provide me the reference to it..
Secondly Can AnyBody explain what is the difference b/w the dynamic registration and dynamic forms ...LOOK same to me...
Thanks..
J. |
|
|
|
|
Candace
 river guide Posts:2136

 |
| 11-18-2009 10:16 AM |
|
Hi Jack,
Sorry for the late response here. First, thank you for purchasing Dynamic Registration! You can process credit card payments via PayPal if the credit card is activated on the PayPal account. Was that what you meant?
Yes, Dynamic Registration (DR) and Dynamic Forms (DF) have a lot in common. Payment options such as gateways and special functions like the PGateway and EnablePGateway are common to both. The main difference is that DR has a lot of functions related to account creation and profile management. Aside from allowing users to update their profiles, it also allows for someone with rights to manage users (without full admin rights) to make changes to your user's profiles. Hope that helps!
Candace |
|
|
|
|
SS
 new to the springs Posts:2

 |
| 04-03-2010 06:05 AM |
|
Are there any examples where a SQL event fires on success/pending/fail (of Paypal) to update the form results that were posted before paypal redirect? |
|
|
|
|
David To
 river guide Posts:2736

 |
| 04-05-2010 09:36 AM |
|
Well, it's kind of difficult to provide examples of SQL event being fired because each form is different. What you need to know is what type of SQL event do you want to create and then either use a stored procedure or a straight SQL statement to perform the modification necessary. Have it set to trigger for any response and under payment gateway, tie this event to Paypal complete standard or subscription depending on what you have configured. -- David |
|
|
|
|
dherman
 skipping stones Posts:12

 |
| 11-28-2010 05:30 PM |
|
Chad
After a few bruises I finally have the PayPal integration working. There are a number of areas where you can go wrong between settings on the PayPal sandbox and the configuration in Dynamic Registration. So I now have a redirect successful, a couple of PayPal complete events firing redirect and sql completion events in DR. However I still can't get the PayPal tokens mentioned in this forum to return anything, specifically
$(PayPal:txn_id)
so I tried
$(PayPal:invoice) after changing my request to pass in the invoice information . Still nothing. My query is a follows
exec dbo.dfAddPaymentRecord 14,2,$(UserID),$(PayPal:txn_id)
the sql database does not update
but this hardcoded query does fine
exec dbo.dfAddPaymentRecord 14,2,$(UserID),'my transid'
Appreciate and help
|
|
|
|
|
Chad Nash
 river guide Posts:4674

 |
| 11-29-2010 11:37 AM |
|
Hi Deb, Just to confirm are you running on 4.0 or still 3.2? Just curious as this is a pretty old post. I would probably make this into an email during your testing as it would just be easier to test. The only thing I think might be a problem is if this is a subscription, I think some of that subscription IPN that come back from PayPal include these details and others don't. For example, there is a Subscription Sign Up that might not send the details because an actual payment transaction wasn't processed... So, what specific IPN is this linked too? Thanks, Chad |
|
|
|
|
dherman
 skipping stones Posts:12

 |
| 11-29-2010 12:11 PM |
|
It's linked to Completed (Standard). There is not a subscription involved. Email is not set up on this test site yet so it is hard to test that way. Can I redirect on complete and use the token in a screen?
Oh and yes it is version 4. I was just referring to the tokens in this thread. |
|
|
|
|
dherman
 skipping stones Posts:12

 |
| 11-29-2010 12:17 PM |
|
Nevermind that doesn't make sense. Any other ideas. Is my syntax correct for using the token. The parameter is a string. If I put quotes around it, it works, but of course the value is token itself not the value of the token. |
|
|
|
|
Chad Nash
 river guide Posts:4674

 |
| 11-30-2010 04:51 PM |
|
Hi... I believe you solved this in another thread but if you are still having problems just let me know. Thanks, Chad |
|
|
|
|
dherman
 skipping stones Posts:12

 |
| 12-02-2010 02:56 PM |
|
Yes thanks Chad I'm all set |
|
|
|
|
Ryan Bakerink
 river guide Posts:1129

 |
| 01-20-2011 05:05 PM |
|
Hello dherman,
If you ever have any questions please let us know so we can be of assistance.
Thanks,
Ryan
|
|
|
|
|