PHP PAYLAP sandbox buy now button - urgent help required.

by newbim
1 replies
Hi. I'm tearing my hear out with this.

I'm trying to sent 1 piece of information through ($number). Here is the script I have for the button:

Code:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="LD9GZX7SB2ETS">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
I've tried adding:

Code:
<input type="hidden" name="number" value="<?php echo $number; ?>" />
but nothing's happening. I'm not simple enough to think that's all I need to do, but the rest is a nightmare.

In a nutshell, I need to send the value for $number to paypal so it will send it back to the success URL and I can use it from there.

So far, I have spent about 8 hours trying to figure it out, reading pages of Paypal's documentation, and other forums etc. (I like to try and RTF Manual before asking for help - it's more of an achievement that way) but I've spent as much time as I can afford on it now.

Any pointers to useful tutorials, or explanations would be MASSIVELY APPRECIATED.

Thank you in advance,

Andy.
#button #buy #paylap #php #required #sandbox #urgent

Trending Topics