Using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
silvester
Forum Newbie
Posts: 8
Joined: Fri Jun 23, 2006 2:43 pm

Using PHP

Post by silvester »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]



[color=red][b]feyd[/b] | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Last edited by silvester on Sun Aug 27, 2006 1:08 pm, edited 2 times in total.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What is or isn't happening to lead you to believe it isn't working? Are you getting any error messages? Please give a few more details.
silvester
Forum Newbie
Posts: 8
Joined: Fri Jun 23, 2006 2:43 pm

Post by silvester »

PayPal's page is opened inside my checkout page (the url is not changed) and the following Paypal error page appears.

My point of using cURL is to submit the details to paypal automatically without using javascript and not having to add an extra button so the client redirects to paypal. Is there any other way to submit to paypal without using javascript or adding a button?


Code: Select all

You must log in before you access this page.
 


We are sorry this page cannot be displayed. To access it, please complete the following steps:


If this message appeared after you clicked on a link in an email, please copy and paste the desired URL into a new browser window.
If this fails and you are using Internet Explorer Version 6, follow the steps below to change your browser's cookie setting:
In Internet Explorer, click on the Tools menu and then Internet Options.
Click Privacy and then click Advanced.
Click Override default settings, and then specify how you want Internet Explorer to handle cookies from first-party websites.
If you are using a browser that is not Internet Explorer Version 6, please refer to the "Help" section and follow the instructions to enable cookies.
If you have attempted all of the above and are still experiencing problems, you may contact PayPal Customer Service at the following page:

https://www.paypal.com/contactus.

Message 3014
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

So Paypal is telling you that you need to login. I think you can use cURL, but I think that there is a Paypal API that you can use also.
silvester
Forum Newbie
Posts: 8
Joined: Fri Jun 23, 2006 2:43 pm

Post by silvester »

OK, but why is Paypal's page opening inside my checkout page? My checkout page's url has not changed to paypal's (paypal's page appears inside my site).

Is there any PHP function to open a url?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The only thing I can think of is that this is a response to the request you are making to the Paypal server when you cURL into it. I am guessing that there is a trigger somewhere that is returned for you, the developer, to be able to distinguish what took place with the transaction. It might that the error is the return. But I am totally not sure.
silvester
Forum Newbie
Posts: 8
Joined: Fri Jun 23, 2006 2:43 pm

Post by silvester »

I have searched quite a bit but canot find a single page which describes how to submit payment details to PayPal without using not a single line of JavaScript.

I tried using cURL but it seems that it will not redirect the customer to the http://www.paypal.com url. Is this correct? Or am I using cURL incorrectly ?

Can anyone recommend me an IPN that does not use JavaScript?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What do the Paypal API docs say?
silvester
Forum Newbie
Posts: 8
Joined: Fri Jun 23, 2006 2:43 pm

Post by silvester »

I'm trying to download the PHP version of the PayPal SDK supposedly found on the following url but none of the files can be downloaded. I can't find any other place to download it, can anyone help ?

https://www.paypal.com/IntegrationCente ... ource.html
Post Reply