Reputation: 51
<form>
<!--- paypal form --->
</form>
How to send data thru paypal when submitting?
For example:
Upon submitting the form with an #ID value of "12345" and after paying successfully.
It will return back to my site ThankYou.php
Question: how will I get the value 12345? or can I use
//ThankYou.php
<?php
echo $_REQUEST["#ID"];
?>
Thanks in advance!!
Upvotes: 1
Views: 271
Reputation: 243
PayPal allows you to post custom values. You should be able to put a hidden form field value on your form that will make the trip back on return. Their documentation has all that information.
This may work:
<input type="hidden" name="custom" value="Id value" />
Upvotes: 1