Jump to content
Larry Ullman's Book Forums

Chapter6/Example1


Recommended Posts

yes, a view of my Sandbox accounts are displayed and my name is visible in the top right corner of the page as being actively logged in.

https://developer.paypal.com/webapps/developer/applications/accounts.

 

The 'log in to complete your checkout' page is where my problem occurs. I continue to receive an error message.

Please check your email address and password and try again

 

The email and passwords I'm entering at this point are valid because I can log into each Sandbox account using them. I'll submit this on the PayPal forum as well. 

Link to comment
Share on other sites

I don't think I'll resolve this issue with PayPal so I went ahead and read the remainder of the chapter. Just a few quick questions...

 

Once the IPN is initiated on the PayPal side, it's my understanding that whatever variables that were sent to PayPal to complete the registration process are returned as $_POST variables for validation. When constructing the $req variable, their inclusion is required, is that correct?

 

When the response variable $res is being assigned a value, does the fgets function read just 1 line of text? Does $fp consist of numerous lines of text that include the values for 'payment_status', 'receiver_email', 'mc_gross' etc?

 

Which leads me to my last question, are the $_POST entries such as 'payment_status' specific to PayPal responses and are not arbitrary?

Link to comment
Share on other sites

Sorry for the delay; was out of town. Answers inline...

 



Once the IPN is initiated on the PayPal side, it's my understanding that whatever variables that were sent to PayPal to complete the registration process are returned as $_POST variables for validation. When constructing the $req variable, their inclusion is required, is that correct?



I can't say with absolute certainty that that's the case, but I believe so. Basically you send the data to PayPal to confirm that data was just sent to you (and not coming from some third party).



When the response variable $res is being assigned a value, does the fgets function read just 1 line of text? Does $fp consist of numerous lines of text that include the values for 'payment_status', 'receiver_email', 'mc_gross' etc?


Let me double-check the code before I answer this one.



Which leads me to my last question, are the $_POST entries such as 'payment_status' specific to PayPal responses and are not arbitrary?


Yes, correct. You can see that for yourself in PayPal's 5,000 pages of documentation. ;)
Link to comment
Share on other sites

  • 1 month later...

It appears that my problem with PayPal is with the generated code for the subscribe button. The form action is directed to the Production site.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

Manually changing the code to read <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> doesn't effect the desired results. I would probably need to go through the process of creating the accounts again from the beginning, if I'm so enthused. Thanks for the help just the same.

Link to comment
Share on other sites

 Share

×
×
  • Create New...