Google Check Out Questions
Want
to know how you can send dynamic message to Google Check Out so that
the text of the message goes with the order and back to you in the
email notification?
It took me several days to figure it out, but it is actually not that hard, once you understand. I implemented this at http://yen9.com - take a look at "order service".
I
did it basically by creating a PHP variable and then used php echo
to stuff the variable into Google's item_option_description.
I have also implemented a donation for a non-profit at: http://microsteps.org/ using Paypal but that solution does not allow you to send a comment.
Here is some of the required code: ( Where my_field_name is a name you create and use throughout)
In the <head> part of your page put:
<script> function $(id) {return document.getElementById(id)} </script>
In the <body> part of your page put:
<form method="post" action="">
<input name="my_field_name" type='text' id='my_field_name'/>
<input value="Check Subdomain Availability"type="submit">
</form>
<p>
<?php $fname = $_POST['fname']; ?>
In the portion of the code that you send to Google Check Out, instead of
<input name="item_option_description_1" type="hidden" value="Some fixed information <? echo my_field_name;?>"/>
Play around with it and make sure you don't forget the ";" - PHP is picky !
If you want to contact me directly, please do so through the Yen 9 contact page.
Warning: include(/home/stevenf/adds/center-bottom.html) [function.include]: failed to open stream: No such file or directory in /home1/yenninco/public_html/sub/google-check-out-questions/index.phtml on line 32
Warning: include() [function.include]: Failed opening '/home/stevenf/adds/center-bottom.html' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in /home1/yenninco/public_html/sub/google-check-out-questions/index.phtml on line 32