1 no_shipping
<!-- Make sure you get the buyer's address during checkout. -- >
<input type="hidden" name="no_shipping" value="2">
2 cmd的值
描述
_xclick按钮,点击立即购买按钮的人了。购物车购买_cart。下列变量指定被单击的购物车按钮的种类
添加-添加到购物车按钮对于贝宝购物车显示查看购物车按钮对于贝宝购物车上传-第三方车的购物车上传命令
_oe-gift-certificate按钮,点击购买按钮的人是一个礼品证书。
_xclick-subscriptions按钮,点击订阅按钮的人了。
_xclick-auto-billing按钮,点击按钮的人是一个自动计费。
_xclick-payment-plan按钮,点击按钮的人是分期付款。
_donations按钮,点击一个按钮的人。
_s-xclick按钮,点击的人免受篡改利用加密,或按钮被保存在商人的贝宝账户。贝宝决定哪种按钮被解码加密的代码或通过查找保存在商家的账户点击按钮。
现在购买按钮- <输入=“隐藏”name=“cmd”value=“_xclick”>
购物车按钮,<输入=“隐藏”name=“cmd”value=“_cart”>
购买礼券按钮<输入=“隐藏”name=“cmd”value=“_oe-gift-certificate”>
订阅按钮,<输入=“隐藏”name=“cmd”value=“_xclick-subscriptions”>
自动计费按钮<输入=“隐藏”name=“cmd”value=“_xclick-auto-billing”>
分期付款按钮,<输入=“隐藏”name=“cmd”value=“_xclick-payment-plan”>
捐赠按钮<输入=“隐藏”name=“cmd”value=“_donations”>
3 currency_code
货币支持 货币编码 https://developer.paypal.com/docs/classic/api/currency_codes/#id09A6G0U0GYK
Australian Dollar AUD
Brazilian Real
Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.
BRL
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint
Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.
HUF
Israeli New Sheqel ILS
Japanese Yen
Note: This currency does not support decimals. Passing a decimal amount will throw an error.
JPY 1,000,000
Malaysian Ringgit
Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.
MYR
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Philippine Peso PHP
Polish Zloty PLN
Pound Sterling GBP
Russian Ruble RUB For in-border payments (payments made within Russia), the Russian Ruble is the only accepted currency. If you use another currency for in-border payments, the transaction fails and returns the 10001 error code – Internal Error.
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
Taiwan New Dollar
Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.
TWD
Thai Baht THB
U.S. Dollar USD
5 国家国别代码
https://developer.paypal.com/docs/classic/api/state_codes/
6 物品
<input type="hidden" name="item_name" value="hat">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="15.00">
7
Shopping cart variables
Use these shopping carts variables with Add to Cart buttons, as well as with third-party shopping carts or custom carts that initiate payment processing with the Cart Upload command.
Name Required or Optional Description Character Length
add See description. Add an item to the PayPal Shopping Cart.
This variable must be set as follows:
add="1"
The alternative is the display="1" variable, which displays the contents of the PayPal Shopping Cart to the buyer.
If both add and display are specified, display takes precedence.
1
amount_x Required The amount associated with item x. To pass an aggregate amount for the entire cart, use amount_1.
Applies only to the Cart Upload command.
business Required Your PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed.
discount_amount_cart Optional Single discount amount charged cart-wide.
It must be less than the selling price of all items combined in the cart. This variable overrides any individual item discount_amount_x values, if present.
Applies only to the Cart Upload command.
discount_amount_x Optional The discount amount associated with item x.
It must be less than the selling price of the associated item. This amount is added to any other item discounts in the cart.
Applies only to the Cart Upload command.
discount_rate_cart Optional Single discount rate (percentage) to be charged cart-wide.
It must be set to a value less than 100. The variable overrides any individual item discount_rate_x values, if present.
Applies only to the Cart Upload command.
discount_rate_x Optional The discount rate associated with item x.
It must be set to a value less than 100. The variable takes into account all quantities of item x.
Applies only to the Cart Upload command.
display See description. Display the contents of the PayPal Shopping Cart to the buyer. This variable must be set as follows:
display="1"
The alternative is the add="1" variable, which adds an item to the PayPal Shopping Cart.
If both add and display are specified, display takes precedence.
1
handling_ cart Optional Single handling fee charged cart-wide. If handling_cart is used in multiple Add
to Cart
buttons, the handling_cart value of the first item is used.
item_name_x Required The name associated with item x. To pass an aggregate name for the entire cart, use item_name_1.
Applies only to the Cart Upload command.
paymentaction Optional Indicates whether the payment is a final sale or an authorization for a final sale, to be captured later.
item_number
<input type="hidden" name="item_name" value="Memorex 256MB Memory Stick">
<input type="hidden" name="item_number" value="MEM32507725">
<input type="hidden" name="amount" value="3">
<input type="hidden" name="tax" value="1">
<input type="hidden" name="quantity" value="1">
Allowable values are:
sale
authorization
order
The default value is sale. Set the value to authorization to place a hold on the PayPal account for the authorized amount. Set the value to order to authorize the payment without placing a hold on the PayPal account.
Important: If you set paymentaction to order, use the Authorization & Capture API to authorize and capture the payment payments. The Merchant Services on the PayPal website let you capture payments only for authorizations, not for orders.
shopping_url Optional The URL of the page on the merchant website that buyers go to when they click the Continue Shopping button on the PayPal Shopping Cart page.
For more information see the Continue shopping on current merchant webpage section at Add to Cart: sample HTML button code.
购物车地址
例如 http://www.swansonhongkong.com/flow.php
upload See description Upload the contents of a third-party shopping cart or a custom shopping cart.
This variable must be set as follows:
upload="1"
The alternatives are the add="1" variable and the display="1" variables, which are used with the PayPal Shopping Cart.
RM 可选返回方法。用于将数据发送到返回变量指定的地址的窗体方法。
允许值是:
0 -所有的购物车支付使用的方法
1 -买方的浏览器被重定向到返回的网址通过使用得到的方法,但没有支付变量包括
2 -买方的浏览器被重定向到返回的网址通过使用后的方法,和所有的付款变量包括
默认为0。
<!-- Make sure you get the buyer's address during checkout. -- >
<input type="hidden" name="no_shipping" value="2">
2 cmd的值
描述
_xclick按钮,点击立即购买按钮的人了。购物车购买_cart。下列变量指定被单击的购物车按钮的种类
添加-添加到购物车按钮对于贝宝购物车显示查看购物车按钮对于贝宝购物车上传-第三方车的购物车上传命令
_oe-gift-certificate按钮,点击购买按钮的人是一个礼品证书。
_xclick-subscriptions按钮,点击订阅按钮的人了。
_xclick-auto-billing按钮,点击按钮的人是一个自动计费。
_xclick-payment-plan按钮,点击按钮的人是分期付款。
_donations按钮,点击一个按钮的人。
_s-xclick按钮,点击的人免受篡改利用加密,或按钮被保存在商人的贝宝账户。贝宝决定哪种按钮被解码加密的代码或通过查找保存在商家的账户点击按钮。
现在购买按钮- <输入=“隐藏”name=“cmd”value=“_xclick”>
购物车按钮,<输入=“隐藏”name=“cmd”value=“_cart”>
购买礼券按钮<输入=“隐藏”name=“cmd”value=“_oe-gift-certificate”>
订阅按钮,<输入=“隐藏”name=“cmd”value=“_xclick-subscriptions”>
自动计费按钮<输入=“隐藏”name=“cmd”value=“_xclick-auto-billing”>
分期付款按钮,<输入=“隐藏”name=“cmd”value=“_xclick-payment-plan”>
捐赠按钮<输入=“隐藏”name=“cmd”value=“_donations”>
3 currency_code
货币支持 货币编码 https://developer.paypal.com/docs/classic/api/currency_codes/#id09A6G0U0GYK
Australian Dollar AUD
Brazilian Real
Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.
BRL
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint
Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.
HUF
Israeli New Sheqel ILS
Japanese Yen
Note: This currency does not support decimals. Passing a decimal amount will throw an error.
JPY 1,000,000
Malaysian Ringgit
Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.
MYR
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Philippine Peso PHP
Polish Zloty PLN
Pound Sterling GBP
Russian Ruble RUB For in-border payments (payments made within Russia), the Russian Ruble is the only accepted currency. If you use another currency for in-border payments, the transaction fails and returns the 10001 error code – Internal Error.
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
Taiwan New Dollar
Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.
TWD
Thai Baht THB
U.S. Dollar USD
5 国家国别代码
https://developer.paypal.com/docs/classic/api/state_codes/
6 物品
<input type="hidden" name="item_name" value="hat">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="15.00">
7
Shopping cart variables
Use these shopping carts variables with Add to Cart buttons, as well as with third-party shopping carts or custom carts that initiate payment processing with the Cart Upload command.
Name Required or Optional Description Character Length
add See description. Add an item to the PayPal Shopping Cart.
This variable must be set as follows:
add="1"
The alternative is the display="1" variable, which displays the contents of the PayPal Shopping Cart to the buyer.
If both add and display are specified, display takes precedence.
1
amount_x Required The amount associated with item x. To pass an aggregate amount for the entire cart, use amount_1.
Applies only to the Cart Upload command.
business Required Your PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed.
discount_amount_cart Optional Single discount amount charged cart-wide.
It must be less than the selling price of all items combined in the cart. This variable overrides any individual item discount_amount_x values, if present.
Applies only to the Cart Upload command.
discount_amount_x Optional The discount amount associated with item x.
It must be less than the selling price of the associated item. This amount is added to any other item discounts in the cart.
Applies only to the Cart Upload command.
discount_rate_cart Optional Single discount rate (percentage) to be charged cart-wide.
It must be set to a value less than 100. The variable overrides any individual item discount_rate_x values, if present.
Applies only to the Cart Upload command.
discount_rate_x Optional The discount rate associated with item x.
It must be set to a value less than 100. The variable takes into account all quantities of item x.
Applies only to the Cart Upload command.
display See description. Display the contents of the PayPal Shopping Cart to the buyer. This variable must be set as follows:
display="1"
The alternative is the add="1" variable, which adds an item to the PayPal Shopping Cart.
If both add and display are specified, display takes precedence.
1
handling_ cart Optional Single handling fee charged cart-wide. If handling_cart is used in multiple Add
to Cart
buttons, the handling_cart value of the first item is used.
item_name_x Required The name associated with item x. To pass an aggregate name for the entire cart, use item_name_1.
Applies only to the Cart Upload command.
paymentaction Optional Indicates whether the payment is a final sale or an authorization for a final sale, to be captured later.
item_number
<input type="hidden" name="item_name" value="Memorex 256MB Memory Stick">
<input type="hidden" name="item_number" value="MEM32507725">
<input type="hidden" name="amount" value="3">
<input type="hidden" name="tax" value="1">
<input type="hidden" name="quantity" value="1">
Allowable values are:
sale
authorization
order
The default value is sale. Set the value to authorization to place a hold on the PayPal account for the authorized amount. Set the value to order to authorize the payment without placing a hold on the PayPal account.
Important: If you set paymentaction to order, use the Authorization & Capture API to authorize and capture the payment payments. The Merchant Services on the PayPal website let you capture payments only for authorizations, not for orders.
shopping_url Optional The URL of the page on the merchant website that buyers go to when they click the Continue Shopping button on the PayPal Shopping Cart page.
For more information see the Continue shopping on current merchant webpage section at Add to Cart: sample HTML button code.
购物车地址
例如 http://www.swansonhongkong.com/flow.php
upload See description Upload the contents of a third-party shopping cart or a custom shopping cart.
This variable must be set as follows:
upload="1"
The alternatives are the add="1" variable and the display="1" variables, which are used with the PayPal Shopping Cart.
RM 可选返回方法。用于将数据发送到返回变量指定的地址的窗体方法。
允许值是:
0 -所有的购物车支付使用的方法
1 -买方的浏览器被重定向到返回的网址通过使用得到的方法,但没有支付变量包括
2 -买方的浏览器被重定向到返回的网址通过使用后的方法,和所有的付款变量包括
默认为0。