Jump to content

PayPal callback sandbox


evotz

Recommended Posts

Any chance we could get a copy of the paypal.php callback that uses the PayPal sandbox instead of the main PayPal?

 

Would seem simple enough, just change the instance of https://www.paypal.com/cgi-bin/webscr to https://www.sandbox.paypal.com/cgi-bin/webscr (I think) and name it paypal-sandbox.php and release it for testing purposes.

 

Makes it hard to test out the IPN system, when we can't use the sandbox to test.

Link to comment
Share on other sites

  • 4 months later...

here is what i use,

 

for the ipn

 


$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); //live version

$fp = fsockopen('ssl://www.sandbox.paypal.com',443,$errno,$errstr,30); // test only

 

and for the form

 


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

<!-- test version -->
<form  method="post"  action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="paypal">

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated