Jump to content


Most Liked Content


#48 https http ?

Posted by Guest(old) on 12 November 2002 - 01:08 PM

I have seen some example scripts in ASP and Java and they open a socket to "https://www.paypal.com" which is what is described in the paypal manual. All PHP demo scripts seem to open a socket to just "www.paypal.com" and I was wondering if there was any reason for this.
  • Mymnrumourf, xxkalliy, Infevavof and 1 other like this


#33 Help with ColdFusion IPN.

Posted by splendorx on 05 November 2002 - 03:56 PM

I have tested the CF ipn script from Pay Pal, but I seem to have a problem verifying it.

Here is the code:


<!-- read post from PayPal system and add 'cmd' -->
<CFSET str="cmd=_notify-validate">
<CFLOOP INDEX="TheField" list="#Form.FieldNames#">
<CFSET str = str & "&#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#">
</CFLOOP>
<CFIF IsDefined("FORM.payment_date")>
<CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#">
</CFIF>
<CFIF IsDefined("FORM.subscr_date")>
<CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#">
</CFIF>

<!-- post back to PayPal system to validate -->
<CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false">
</CFHTTP>

<!-- assign posted variables to local variables -->
<CFSET receiver_email=FORM.receiver_email>


<!-- note: additional IPN variables also available -- see IPN documentation

<CFSET item_name=FORM.item_name>
<CFSET payment_status=FORM.payment_status>
<CFSET payment_gross=FORM.payment_gross>
<CFSET txn_id=FORM.txn_id>
<CFSET payer_email=FORM.payer_email>
<CFIF IsDefined("FORM.item_number")>
<CFSET item_number=FORM.item_number>
</CFIF>

-->

<!-- check notification validation -->
<CFIF #CFHTTP.FileContent# is "VERIFIED">

<cfoutput>
#FORM.receiver_email#

It works!
</cfoutput>

<!-- check that payment_status=Completed -->
<!-- check that txn_id has not been previously processed -->
<!-- check that receiver_email is your email address -->
<!-- process payment -->

<CFELSEIF #CFHTTP.FileContent# is "INVALID">
<!-- log for investigation -->

It's not being verified!

<CFELSE>
<!-- error -->
</CFIF>

I am using a third-party to verify:

http://www.optionins...IPNtestbed.html

I am trying to pass the value of receiver_email to verify transaction is working properly. No luck. Not sure what I may be doing incorrectly. I would appreciate any feedback.



splendorx
  • Mymnrumourf, xxkalliy, Infevavof and 1 other like this


#24 Can someone walk me through the "testing" tip?

Posted by sduraybito on 30 October 2002 - 05:03 PM

I keep seeing references to the IPN testing tip, to wit, set the "return" URL to my ipn script and see the FORM variables.

1. Where will I see these FORM variables: on the actual page, in the address bar or under View Source?

2. Am I looking for this information on a Paypal payment page or on the script page I am using?

Thanks.


  • Mymnrumourf, xxkalliy, Phenembency and 1 other like this


#20 Problems with response from Paypal server

Posted by Julie on 30 October 2002 - 12:20 AM

Please, please help. I am trying to process IPN through a perl script and although I am sending the query back exactly as I got it, plus the appended '&cmd=_notify-validate' I seem to keep getting an error from the Paypal server. When I print the response, this is what I see: 'HTTP::Response=HASH(0x82390f0)' although the contents of the parens tends to change. I am using the sample code that paypal provided, and I have checked and double checked it. I am at my wits' end with getting this script to work properly and when I talk to paypal they are not really able to help.
  • Mymnrumourf, xxkalliy, Infevavof and 1 other like this


#52 IPN Didn't Process w/ uncleared PayPal eCheck...

Posted by FusionSoft on 13 November 2002 - 12:17 AM

Here's a general question for all you using IPN. I just to my first eCheck payment for a product today and it's uncleared. My IPN didnt process so nothing got entered into my databases. When credit card orders come, IPN works fine. Is this how IPN works with eCheck payments? And will it process my IPN when the eCheck clears or not....any info would help.
  • Mymnrumourf, xxkalliy and Infevavof like this


#38 Received email cc but no subscription

Posted by sduraybito on 08 November 2002 - 10:33 AM

I received the email cc generated by the ipn.asp script. However, when I go to my PayPal account, there's no subscription and no new user name under tblUsers. Any explanation for this?

Peter


  • abracadabra, Mymnrumourf and Calzumor like this


#37 always returns invalid!!

Posted by scoutt on 07 November 2002 - 07:06 PM

I finally got the script working thanks to the test site, http://www.eliteweav...ing/ipntest.php , but now paypal always sends the invalid response. here is what the $res (from php)variable shows. and I am using the php ipntest script from paypal.

Result: HTTP/1.1 200 OK
Result: Date: Thu, 07 Nov 2002 20:45:57 GMT
Result: Server: Apache/1.3.26 (Unix) mod_bwlimited/1.0 PHP/4.2.2 mod_log_bytes/0.3 FrontPage/5.0.2.2510 mod_ssl/2.8.9 OpenSSL/0.9.6b
Result: X-Powered-By: PHP/4.2.2
Result: Expires: Tue, 01 Jan 1985 07:15:30 GMT
Result: Cache-Control: no-cache, must-revalidate
Result: Pragma: no-cache
Result: Connection: close
Result: Content-Type: text/html
Result:
Result: INVALID

someone explain why it returns invalid!! please

http://www.snippetlibrary.com
  • Mymnrumourf, xxkalliy and Calzumor like this


#34 receiver_email?

Posted by scoutt on 05 November 2002 - 09:59 PM

"check that receiver_email is an email address in your PayPal account"

I am a little confused here. am I suppose to check the email against the users email in my DB or somewhere else?

http://www.snippetlibrary.com
  • Mymnrumourf, xxkalliy and Infevavof like this


#30 Learning IPN as I go

Posted by birddogsgarage on 03 November 2002 - 05:59 AM

Im Learning IPN (not to mention php and mysql)as I go so I will apologize now if my ignorance comes shining through.

I am wondering if anyone knows of a basic walkthrough for a newbie to set up IPN using php and a mysql database.

I am trying to set up a system for both a classified ads section and a consignment section with subscription capabilities.

If anyone knows of a "Basic" tutorial it would be appreciated.

Thanks,
TJ


  • Mymnrumourf, xxkalliy and Infevavof like this


#28 processing sequence

Posted by Darren on 01 November 2002 - 06:37 PM

Warning: I am new to paypal processing

After reading much of the material available on single, basket and IPN based transactions I have a few concerns/questions.

It is my understanding customer X does a POST to paypal from the web site of merchant Y. The form data in that post came from merchant Y's website as described in countless examples. Customer X then logs into paypal and initates a payment for the goods/services. Merchant Y then receives an IPN call regarding the transaction.

1. What is preventing Customer X from spoofing a POST call to paypal for the goods/services, but with significantly lower prices? say $1 for a $300 item?

2. When paypal sends the IPN call to merchant Y, that seems to be the opportunity to validate the transaction. Assuming the merchant validates the transaction how does it tell paypal something is wrong? Every example provided, or talked about seems to imply that paypal is the *only* authority on validating a transaction. It seems logical that customer X, Paypal and merchant Y, all need to validate the transaction before it becomes "valid"... correct? How is this suppose to work?

3. How many times does paypal attempt IPN and if multiple times, how much time inbetween?

4. What happens if paypal never completes the IPN call? Servers occationally go down, and in the off chance a would-be buyer posts just as the merchants server goes offline... how does the process handle that situation?

As mentioned, I am new to paypal so forgive my ignorance on the subject. Perhaps I overlooked a document or two.



  • Mymnrumourf, xxkalliy and Phenembency like this


#23 Different Currency

Posted by Bruce on 30 October 2002 - 08:52 AM

I am using the single item button factory and I cannot get it to display the price of my product in £ (pounds sterling) only $(usd),
I was under the impression that PayPal was recently adapted for pounds and euros.

Cheers
Bruce
Serendipity-Interactive


  • Mymnrumourf, xxkalliy and Infevavof like this


#17 Shannon - help! AccessLevel not switching to 5

Posted by sduraybito on 25 October 2002 - 10:41 AM

Help!

I can't get the AccesLevel to switch to five.

1. I enter the username/password on the register.asp page.
2. tblUsers updates with that username/password and defaults to 1.
3. I continue with registration through to PayPal and receive enail confirmation.
4. The username/password AccessLevel field does NOT get switched to 5 as it's supposed to.

Does it make a difference that this is a free trial subscription with no payment until after two weeks. The user should still be able to access content.

Peter


  • Mymnrumourf, xxkalliy and Infevavof like this


#16 IPN on multiple sites

Posted by andrewpeacock on 24 October 2002 - 04:44 AM

Hi all,
Great site - glad I found it!

Here's a question for you IPN gurus :-)

I have three different sites which I want to work with paypal, but only one credit card, and hence only one paypal account.

My problem is that I want the following:

1. Site 1. Do not use IPN. Used for a subscription service, but I want to process it manually.

2. Site 2. Single item purchases, using the EliteWeaver.co.uk software running on site 2. IPN should be enabled.

3. Site 3. Single item purchases, using the EliteWeaver.co.uk software running on site 3. IPN should be enabled.

My question is - how can I disabled IPN for site 1, and have sites 2 and 3 going to different URLs.

I think the latter part can be solved by using the notify_url parameter, but how can I turn off IPN for site one.

If I turn off IPN in my profile, but include notify_url in site 2 and 3, does that enable IPN for those sites despite my profile being IPN-disabled?

I greatly appreciate any help you an offer,

Regards,
Andy





  • Mymnrumourf, Infevavof and TigrenokTLaniannonna like this


#43 ASP script erroring out ...

Posted by ipnuser on 10 November 2002 - 06:47 PM


Hello ipn gurus,

I am using the ipnpage.asp sample from the article 'SECURING DOWNLOAD PURCHASES USING THE PAYPAL IPN' on superfreaker.com.

I was testing it using ipnpal script, but the script fails with the following error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/appuser/Content/ipnpage.asp, line 89

Invalid class string


Line 89 in the asp file is:

set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")


I have the same exact line as in the sample code on paypal and superfreaker site.

Please help!!.

Thanks,


  • Mymnrumourf and Abrapnava like this


#27 New IPN Home on PayPal

Posted by PayPalDave on 01 November 2002 - 01:53 PM

There is a new,updated set of pages with info about IPN listed here:
http://www.paypal.co...n-intro-outside

enjoy...

Dave McClure dmcclure@paypal.com
Director Geek Marketing
PayPal Developer Network (PDN)
http://www.paypal.com/pdn
  • Mymnrumourf and Infevavof like this


#26 $payment_status="Pending"

Posted by Bruce on 01 November 2002 - 09:27 AM

Another basic question from me!!!
If $payment_status is Pending, shouild my script do nothing and wait for the $payment_status="Completed" to be returned from the paypal server.

I am only wanting to process an order when I know that it is verified and payment_staus="completed".

Apologies if this seems a simple question.

Thanx
Bruce


  • Mymnrumourf and Infevavof like this


#22 Checking that txn_id

Posted by Bruce on 30 October 2002 - 05:39 AM

Hi all,

A really simple question, but how do I check that txn_id has not been previously processed. I am intending to use Perl.

What do I check txn_id against, I know that I have to check register_email with my email address, but what do I check the txnid with?


Also I want to do a couple of inserts into my DB, when the payment has been completed, if the payment is pending do I just do nothing until the I get a failed or completed from the paypal server.

Cheers
Bruce


  • Mymnrumourf and Infevavof like this


#18 IPN is slow sometimes? or is it just me?

Posted by WayneLambright on 28 October 2002 - 03:11 PM

Recently i noticed that sometimes it takes a while for paypal to do the hidden post back to my server. I wonder how many times it trys? and how often. does anybody have any ideas?

cheers

wayne.
I just finished something new called http://ImageDeposit.com

Wayne Lambright
Http://Subscriptionkit.com
Http://MxExtensions.com
  • Mymnrumourf and Infevavof like this


#163 subscription "custom" from form.

Posted by Guest(old) on 28 November 2002 - 01:38 AM

I am currently storing my own database's User ID in the custom field for the PayPal subscriptions. Right now it's passing through and I am using it to pinpoint my users and upgrading their accounts. However, once their end of term comes, will the custom field still be available for me to use to pinpoint their accounts? (Since originally the field was passed through the sign-up form and it's not part of the standard fields.)
  • xxkalliy and sachinkalane like this


#126 Trial Offer

Posted by Guest(old) on 23 November 2002 - 12:10 PM

Sure could use a hand. Is there a method to offer a free trial period without going further. I would like to offer a free trial period only. Then have the client decide to select one of three subscription plan alternatives. With a free subscription offer ended, I hope to releave the client of having to cancel payment or use an unsubscribe button. A free trial period, period. They then will have the option to choose a pay subscription. If this is a little wordy, sorry. Thanks in advance for any guidence.
Jim
  • xxkalliy and Infevavof like this