Using Flash buttons ....
If you are creating buttons by hand and you want to use Flash, you can easily create single item purchase buttons.
Single item purchase buttons
Both of the following will post the required data for PayPal.
In the following examples, for Google just replace http://www.yourservername.com/phpkeycodes/ipn/process.php
with
http://www.yourservername.com/google/process.php
1. Creating a buy button as part of the main time line
For a button called 'buy_btn2' :
buy_btn2.onRelease = function() {
item_number = "item2";
getURL("http://www.yourservername.com/phpkeycodes/ipn/process.php", "_self", "POST");
};
// the url is http://www.yourservername.com/phpkeycodes/ipn/process.php
//assuming that you have installed PHP-KeyCodes at the
//root of your web site in a folder called 'phpkeycodes'.
// The "item2" value is the item_number for the product you
// wish to create the button for. This is the value that you
// gave the item in the Products display of the PHP-KeyCodes
// admin pages.
//***************************************************
2. Creating a buy button linked to the button code
on (release) {
item_number = "item1";
getURL("http://www.yourservername.com/phpkeycodes/ipn/process.php", "_self", "POST");
};
// the url is http://www.yourservername.com/phpkeycodes/ipn/process.php
// assuming that you have installed PHP-KeyCodes at the root
// of your web site in a folder called 'phpkeycodes'.
// The "item1" value is the item_number for the product you wish
// to create the button for. This is the value that you gave
// the item in the Products display of the admin pages.
Clicking on a buy now button will all that item to be purchased from PayPal.
The above example can be downloaded by clicking here.

