Automatic form submit specially used in paypal using JavaScript php
<script type="text/javascript" language="JavaScript">
//submit form
document.form1.submit();
</script>
Automatic form submit specially used in paypal using JavaScript php
| Required Variables |
| Name |
Value |
| business |
Email address on your PayPal account |
| item_name |
Name of the item (or a name for the shopping cart) |
| currency_code |
Defines the currency in which the monetary variables (amount, shipping, shipping2, handling, tax) are denoted. Possible values are “USD”, “EUR”, “GBP”, “CAD”, “JPY”. |
| amount |
Price of the item (the total price of all items in the shopping cart) |
| image |
The image for the button your buyer will press to initiate the PayPal payment process. You can substitute your own image by replacing the src with the URL of your image |
|
| Available Variables |
| Name |
Value |
| business |
Email address on your PayPal account |
| quantity |
Number of items. This will multiply the amount if greater than one |
| item_name |
Name of the item (or a name for the shopping cart). Must be alpha-numeric, with a 127character limit |
| item_number |
Optional pass-through variable for you to track payments. Must be alpha-numeric, with a 127 character limit |
| amount |
Price of the item (the total price of all items in the shopping cart) |
| shipping |
The cost of shipping the item |
| shipping2 |
The cost of shipping each additional item |
| handling |
The cost of handling |
| tax |
Transaction-based tax value. If present, the value passed here will override any profile tax settings you may have (regardless of the buyer’s location). |
| no_shipping |
Shipping address. If set to “1,” your customer will not be asked for a shipping address. This is optional; if omitted or set to “0,” your customer will be prompted to include a shipping address |
| cn |
Optional label that will appear above the note field (maximum 40 characters) |
| no_note |
Including a note with payment. If set to “1,” your customer will not be prompted to include a note. This is optional; if omitted or set to “0,” your customer will be prompted to include a note. |
| on0 |
First option field name. 64 character limit |
| os0 |
First set of option value(s). 200 character limit. “on0″ must be defined for “os0″ to be recognized. |
| on1 |
Second option field name. 64 character limit |
| os1 |
Second set of option value(s). 200 character limit. “on1″ must be defined for “os1″ to be recognized. |
| custom |
Optional pass-through variable that will never be presented to your customer. Can be used to track inventory |
| invoice |
Optional pass-through variable that will never be presented to your customer. Can be used to track invoice numbers |
| notify_url |
Only used with IPN. An internet URL where IPN form posts will be sent |
| return |
An internet URL where your customer will be returned after completing payment |
| cancel_return |
An internet URL where your customer will be returned after cancelling payment |
| image_url |
The internet URL of the 150 X 50 pixel image you would like to use as your logo |
| cs |
Sets the background color of your payment pages. If set to “1,” the background color will be black. This is optional; if omitted or set to “0,” the background color will be white |
|
| Extended Variables |
| Name |
Value |
| email |
Customer’s email address |
| first_name |
Customer’s first name. Must be alpha-numeric, with a 32 character limit |
| last_name |
Customer’s last name. Must be alpha-numeric, with a 64 character limit |
| address1 |
First line of customer’s address. Must be alpha-numeric, with a 100 character limit |
| address2 |
Second line of customer’s address. Must be alpha-numeric, with a 100 character limit |
| city |
City of customer’s address. Must be alpha-numeric, with a 100 character limit |
| state |
State of customer’s address. Must be official 2 letter abbreviation |
| zip |
Zip code of customer’s address |
| night_phone_a |
Area code of customer’s night telephone number |
| night_phone_b |
First three digits of customer’s night telephone number |
|
|
| day_phone_a |
Area code of customer’s daytime telephone number |
| day_phone_b |
First three digits of customer’s daytime telephone number |
|
|
|