yoursanjay Posted May 5, 2009 Share Posted May 5, 2009 Hi, I am using the following script for PayPal integration for my site. After successful transaction the page is redirected to thankyou.php page. In this page I want to store the PayPal transaction information into my db. I am passing Invoice id & user id at the time of integration. I need these two values (invoice id & userid) in thankyou.php page. How will I get these values so that i can run my sql? $userid=$_GET['userid']; $invoiceid=$_GET['invoiceid']; $cost=$_GET['cost']; $_SESSION['payment_check']=time(); <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="<?=$paypal?>" /> <input type="hidden" name="item_name" value="Invoice #<?=$invoiceid?>" /> <input type="hidden" name="amount" value="<?=$cost?>" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="currency_code" value="<?=$paypal_curr?>" /> <input type="hidden" name="lc" value="<?=$paypal_lang?>" /> <input type="hidden" name="at" value="xxxxxxxxxxxxxxxxxxxxxxxxx"> <input name="Custom" id="Custom" type="hidden" value="<?=$userid?>"/> <input type="hidden" name="bn" value="PP-BuyNowBF" /> <input name="sucess_return" id="sucess_return" type="hidden" value="<?=$site_url?>thankyou.php?key=<?=base64_encode($_SESSION['payment_check']."-a")?>" /> <input name="cancel_return" id="cancel_return" type="hidden" value="<?=$site_url?>cancel.php?key=<?=base64_encode($_SESSION['payment_check']."-b")?>" /> <input id="return" type="hidden" name="return" value="<?=$site_url?>thankyou.php?key=<?=base64_encode($_SESSION['payment_check']."-a")?>"> <input name="notify_url" id="notify_url" type="hidden" value="<?=$site_url?>thankyou.php?key=<?=base64_encode($_SESSION['payment_check']."-a")?>" /> <input name="paypal" type="image" src="images/button/paypal.gif" align="right" /> Link to comment https://forums.phpfreaks.com/topic/156903-writing-into-db-after-paypal-integration/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.