Connecting Tech Pros Worldwide Forums | Help | Site Map

How do i use paypal.cfc for recurring payment?

Newbie
 
Join Date: Dec 2008
Posts: 29
#1: Jan 21 '09
Is it possible recurring payment using PayPal Pro?
How to use paypal.cfc?
Is paypal java sdk needed for this?
can anyone gve detail description to applay paypal in coldfusion?

KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Jan 21 '09

re: How do i use paypal.cfc for recurring payment?


Quote:

Originally Posted by CFFAN View Post

Is it possible recurring payment using PayPal Pro?
How to use paypal.cfc?
Is paypal java sdk needed for this?
can anyone gve detail description to applay paypal in coldfusion?

Wrong forum. I assume you want to ask in the coldfusion forum.
Newbie
 
Join Date: Dec 2008
Posts: 29
#3: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


yes but i didn't see new thread button in coldfusion............
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#4: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


I see it "New Thread". I reported your post yesterday and thought it would have been moved to the coldfusion forum, but I guess no moderators are on the job.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#5: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


Quote:

Originally Posted by CFFAN View Post

yes but i didn't see new thread button in coldfusion............

It's in the Answers section.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


Quote:

Originally Posted by CFFAN View Post

Is it possible recurring payment using PayPal Pro?
How to use paypal.cfc?
Is paypal java sdk needed for this?
can anyone gve detail description to applay paypal in coldfusion?

Which cfc are you referring to? Also, what exactly do you want to do in Paypal?
Newbie
 
Join Date: Dec 2008
Posts: 29
#7: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


i want to do paypal recurring in my site. how can i start?Me want to do in coldfusion.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#8: Jan 22 '09

re: How do i use paypal.cfc for recurring payment?


Is this what you're talking about?
Newbie
 
Join Date: Dec 2008
Posts: 29
#9: Feb 6 '09

re: How do i use paypal.cfc for recurring payment?


how can i create createrecurringpayymentprofile? How to implement recurring using website payment pro in my website?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#10: Feb 7 '09

re: How do i use paypal.cfc for recurring payment?


Post what you've managed so far even if it's what you've researched and tried.

PS. merged threads. Please don't double post your questions.
Newbie
 
Join Date: Dec 2008
Posts: 29
#11: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


I wnd recurring payment in my coldfusion site. for that i have to create profile for users...how can i do in coldfusion?how can i get acknolgmt when each payment done through recurring..?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#12: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


You still haven't posted what you've done so far.

If you haven't yet started, check the APIs.
Newbie
 
Join Date: Dec 2008
Posts: 29
#13: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


Can i download API (coldfusion) from any sites?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#14: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


I'm not sure, you'd have to look. However, you may find this useful.
Newbie
 
Join Date: Dec 2008
Posts: 29
#15: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


I read the link you send but i didn't find API (coldfusion ) downloads in that pages...........i saw java and php etc.could you please help?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#16: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


You'd have to convert the Java or PHP to Coldfusion. Since there's no sample code for Coldfusion, you'll have to write it yourself using the guide/documentation.
Newbie
 
Join Date: Dec 2008
Posts: 29
#17: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


Ok thanks........one more doubt regarding recurring payment..if a user subscribe the payment done automatically ..the acknowlegment will be IPN and email..how can i test the IPN is valid in sanbox test environment..i am working in internal network system..so which url i can provide for testing?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#18: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


A quick search produced this.
Newbie
 
Join Date: Dec 2008
Posts: 29
#19: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


ok thanks.
Expand|Select|Wrap|Line Numbers
  1. CFSET str="cmd=_notify-validate">
  2. <!---<CFLOOP INDEX="TheField" list="#Form.FieldNames#">
  3. <CFSET str = str & "&#LCase(TheField)#=#URLEncodedFormat(Form[TheField])#">
  4. </CFLOOP>--->
  5.  
  6. <CFIF IsDefined("FORM.payment_date")>
  7. <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#">
  8. </CFIF>
  9. <CFIF IsDefined("FORM.subscr_date")>
  10. <CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#">
  11. </CFIF>
  12.  
  13. <!-- post back to PayPal system to validate -->
  14. <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#"
  15. " METHOD="GET" RESOLVEURL="false">
  16. </CFHTTP>
  17.  
  18. <!-- assign posted variables to local variables -->
  19. <CFSET item_name=FORM.item_name>
  20. <CFSET payment_status=FORM.payment_status>
  21. <CFSET payment_amount=FORM.mc_gross>
  22. <CFSET payment_currency=FORM.mc_currency>
  23. <CFSET txn_id=FORM.txn_id>
  24. <CFSET receiver_email=FORM.receiver_email>
  25. <CFSET payer_email=FORM.payer_email>
  26. <CFIF IsDefined("FORM.item_number")>
  27. <CFSET item_number=FORM.item_number>
  28. </CFIF>
  29.  
  30. <!-- check notification validation -->
  31. <CFIF CFHTTP.FileContent  is "VERIFIED">
  32. <!-- check that payment_status=Completed -->
  33. <!-- check that txn_id has not been previously processed -->
  34. <!-- check that receiver_email is your Primary PayPal email -->
  35. <!-- check that payment_amount/payment_currency are correct -->
  36. <!-- process payment -->verify
  37. <CFFILE action="append" file="C:\Inetpub\wwwroot\cf_nvp_samples\verify.txt" output="#str#">
  38. </CFFILE>
  39.  
  40. <CFFILE action="append" file="C:\Inetpub\wwwroot\cf_nvp_samples\verify.txt" output="#CFHTTP.FileContent#">
  41. </CFFILE>
  42.  
  43. <CFELSEIF #CFHTTP.FileContent# is "INVALID">
  44. INVALID
  45. <!-- log for investigation -->
  46. <CFFILE action="append" file="C:\Inetpub\wwwroot\cf_nvp_samples\invalid.txt" output="#str#">
  47. </CFFILE>
  48.  
  49. <CFFILE action="append" file="C:\Inetpub\wwwroot\cf_nvp_samples\invalid.txt" output="#CFHTTP.FileContent#">
  50. </CFFILE>
  51. <CFELSE>
  52. <!-- error -->
  53. </CFIF>

i used this for processing IPN.......bt i want to test this code in local site ...how can i get IPN for test this??
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#20: Feb 9 '09

re: How do i use paypal.cfc for recurring payment?


Does it work with the sandbox? Even with a local site, as long as you have access to the Internet, the code should be the same.
Newbie
 
Join Date: Apr 2009
Posts: 2
#21: Apr 28 '09

re: How do i use paypal.cfc for recurring payment?


Is the recurring payment thing working in your site?I am also using coldfusion and want to do recurring payment.Please provide me some sample if you can
thanks
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#22: Apr 29 '09

re: How do i use paypal.cfc for recurring payment?


Hi jasminkaur, welcome to Bytes! :)

Have you tried the code/links already posted?
Newbie
 
Join Date: Apr 2009
Posts: 2
#23: Apr 29 '09

re: How do i use paypal.cfc for recurring payment?


thanks for the reply,could you please give me the links or something?I am really not getting what to do and where to start?I am working in coldfusion.
i have sucessfully done the subscription thing,but not getting how to do recurring payment.Please help me on this.
Thanks
jasmine
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#24: Apr 30 '09

re: How do i use paypal.cfc for recurring payment?


Check out post nos. 12 and 14 in this thread for the API and guide to handling recurring payments.
Reply