469,301 Members | 2,278 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,301 developers. It's quick & easy.

How do i use paypal.cfc for recurring payment?

29
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?
Jan 21 '09 #1
23 6014
KevinADC
4,059 Expert 2GB
@CFFAN
Wrong forum. I assume you want to ask in the coldfusion forum.
Jan 21 '09 #2
CFFAN
29
yes but i didn't see new thread button in coldfusion............
Jan 22 '09 #3
KevinADC
4,059 Expert 2GB
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.
Jan 22 '09 #4
acoder
16,027 Expert Mod 8TB
@CFFAN
It's in the Answers section.
Jan 22 '09 #5
acoder
16,027 Expert Mod 8TB
@CFFAN
Which cfc are you referring to? Also, what exactly do you want to do in Paypal?
Jan 22 '09 #6
CFFAN
29
i want to do paypal recurring in my site. how can i start?Me want to do in coldfusion.
Jan 22 '09 #7
acoder
16,027 Expert Mod 8TB
Is this what you're talking about?
Jan 22 '09 #8
CFFAN
29
how can i create createrecurringpayymentprofile? How to implement recurring using website payment pro in my website?
Feb 6 '09 #9
acoder
16,027 Expert Mod 8TB
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.
Feb 7 '09 #10
CFFAN
29
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..?
Feb 9 '09 #11
acoder
16,027 Expert Mod 8TB
You still haven't posted what you've done so far.

If you haven't yet started, check the APIs.
Feb 9 '09 #12
CFFAN
29
Can i download API (coldfusion) from any sites?
Feb 9 '09 #13
acoder
16,027 Expert Mod 8TB
I'm not sure, you'd have to look. However, you may find this useful.
Feb 9 '09 #14
CFFAN
29
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?
Feb 9 '09 #15
acoder
16,027 Expert Mod 8TB
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.
Feb 9 '09 #16
CFFAN
29
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?
Feb 9 '09 #17
acoder
16,027 Expert Mod 8TB
A quick search produced this.
Feb 9 '09 #18
CFFAN
29
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??
Feb 9 '09 #19
acoder
16,027 Expert Mod 8TB
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.
Feb 9 '09 #20
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
Apr 28 '09 #21
acoder
16,027 Expert Mod 8TB
Hi jasminkaur, welcome to Bytes! :)

Have you tried the code/links already posted?
Apr 29 '09 #22
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
Apr 29 '09 #23
acoder
16,027 Expert Mod 8TB
Check out post nos. 12 and 14 in this thread for the API and guide to handling recurring payments.
Apr 30 '09 #24

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Stuart | last post: by
3 posts views Thread by Stephane | last post: by
4 posts views Thread by Mark | last post: by
3 posts views Thread by ykhamitkar | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.