Mode:  

Click here for web hosting wind powered

    |   Register   |   Thursday, March 11, 2010   
You are here:Dyn Registration  Kellys Paypal Subcription  


Dynamic Registration 2nd Setup









Register     

Read Me

  

This is a test page for setting up paypal subscriptions and testing the IPN status.

 

The objective is for a user to subscribe to a service, recurring basis. Successful paypal payment should result in the user becoming a Registered User, Subscriber, as well as added to a public role called "Arbitrary Role 1". I have setup 2 role completion events as follows:

 

Add to Registered User role, fires on sub payment - not working

Add to Arbitrary Role 1, fires on sub payment - not working

 

I noticed that the default event Create User/Update User also fires by default on sub payment and sub signup. I left this as is

 

I have used only two redirect events as follows

 

Success Redirect, goes to transaction Complete page - works

Cancel Redirect, goes to transaction Cancelled page - works

 

I have setup a few email completion event for key IPN results, which fire on the corresponding paypal IPN status:

 

Subscription Payment Complete - works, send email

Subscription Signup Complete - works, sends email

Subscription Cancelled - not working, but IPN response appear in log 

Pending - not working, recieved Payment complete email when using echeck ... IPN status was not pending.

 

This seems to be a proper setup to my understanding, still there are problems with some of these events, role additions, or IPN processing  General exceptions are thrown in the viewer, debug ipn info helps ...

 

UPDATE: 2008-08-06

 

Thank you for your testing and comments in my post. I think I now understand why adding roles was not working previously. I now have this working .. however, I want to add a user to a specific role that they select upon registration ... this does not work, the user is added as a registered member but it does not assign the selected role. I have setup a variety of completion events based on user response to add them to a specific role. I have done this also here on beta springs without success. 

 

7:40 MST I'm doing more testing ... I have deleted the completetion events Role Subscriber and Role Arbitrary and added the following new completion events

 

Add_Role_Arbitrary - adds user to that role if selected during registration

Add_Role_CodeGrad - adds user to that role if selected during registration

Add_Role_DSTest - adds user to that role if selected during registration

Add_Role_Filter1 - adds user to that role if selected during registration

 

These are all set to respond to PayPal Subscription Complete status, and are also dynamically set to fire only when the associated selection is made during registration. 

 

7:58 MST disabled all but Add_Role_Arbitrary ... event viewer shows many exceptions. Will remove unused completetion events and try again. Also changed default completeton event "Create User" to fire on Subscription Signup rather than Completed. Does not add user to any role.

 

8:15 MST No Joy! Seeing lots of exceptions in log ... I'm going to delete and then recreate this module in the most basic form.

 

9:19 MST  Now have nice fresh DR module. Most basic implementation to use paypal subscriptions. I have a few completion events as follows:

 

Redirect Success - redirects to success page

Redirect Cancel - redirects to cancel page

 

Email Sub Signup - fires on Sub Signup

Email Sub Payment - fires on Sub Payment

Email Sub Pending - fires on Pending

 

The default event Create User is set to fire on Complete (standard)

 

No add new role events yet .. just see if we can create a registered user first.

 

9:42 MST No Luck. Throws exceptions .. timeouts, object instance not set .. also aborts on some debug processing item. Will try different paypal status for the default event Create User.

 

10:04 MST Some Luck. This time the user was created. if my single attempts at setting the default event Create User are correct .. it would seem that you must have Create User fire on Complete (SubPayment) and not Complete(standard) . That seems to make sense.

 

Didn't work on second try. Still throws exceptions .. pages hang a while before processing.  

 

10:46 MST I tried setting Create User Event to fire on Complete (Sub Signup) .. user was not created, only Sub Signup email was sent.

 

Still exceptions .. perhaps fewer ... could some be caused by somthing else on the page?

 

10:50 MST Tried a few more variations, could not seem to identify what is causing or not causing a user to get created.

 

Long shot .. I will remove the $ from the radio string text and value $49 .... no difference.

 

12:05 MST Frustrated! I have a basic subscription registration with basic events, still not working properly. Seem to be getting irregular results, pages hang, long waits, I usually get the emails for SubPayemnt and SubSignup but still not much certainty in creating a registered user .. let alone adding another role. Seems results are slightly inconsistent, only once in several attempt have I been able to create a new user ... and when i tried to duplicate it diddn't work either. Could it be caching some old sql .. a cookie value? Either way it's been quite a few hours now for something that should have taken 30 minutes.

 

 

Copyright 2006 by Data Springs, Inc.
Terms Of Use | Privacy Statement