...

View Full Version : Paypal intergration



Phil Jackson
01-13-2010, 11:55 AM
Morning, long time since i've posted been really busy.

Now, this is sending me crazy but I have PHP code to generate a paypal button for subscription use.



<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="0000000">
<Input type="hidden" name="custom" value="<?php md5($code.microtime()); ?>"/>
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_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>

But what I want to do, and know how, is sending 1 variable accross through the payment process and out to a page once the payment proccess is complete. I have tried for days to understand documentation and read threads on the matter but non seem to help. My variable is


<Input type="hidden" name="custom" value="<?php md5($code.microtime()); ?>"/>

Any help is much appreciated.

kbluhm
01-13-2010, 12:39 PM
Have you tried echoing the value? :) There is no `echo` (or `print`, etc) so nothing will be sent to the client.


<input type="hidden" name="custom" value="<?php echo md5( $code . microtime() ); ?>"/>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum