php - paypal寄多件?

标签 php arrays paypal

亲爱的 friend 们,这是我在 paypal 上发送多个项目的数组。

Array
(
    [item_name1] => this is the testing job
    [item_number1] => 2433
    [amount1] => 40
    [item_name2] => testing job 2
    [item_number2] => 2435
    [amount2] => 40
    [item_name3] => testing job 3
    [item_number3] => 2437
    [amount3] => 40
    [item_name4] => testing job 4
    [item_number4] => 2439
    [amount4] => 40
    [item_name5] => testing job 5
    [item_number5] => 2441
    [amount5] => 40
    [item_name6] => testing job 6
    [item_number6] => 2443
    [amount6] => 40
    [business] => mysend@mydoma.com
    [currency_code] => USD
    [cbt] => Continue to testing code
    [return] => http://mydomain.com/order/4456/?_wpnonce=de449cd303
    [cancel_return] => http://mydomain.com/order/4456/?cancel=1
    [noshipping] => 1
    [no_note] => 1
    [rm] => 0
    [charset] => utf-8
    [cmd] => _xclick
)

这个数组不工作。然后我在谷歌上搜索我发现 item_name_1 像数组

Array
(
    [item_name_1] => this is the testing job
    [item_number_1] => 2433
    [amount_1] => 40
    [item_name_2] => testing job 2
    [item_number_2] => 2435
    [amount_2] => 40
    [item_name_3] => testing job 3
    [item_number_3] => 2437
    [amount_3] => 40
    [item_name_4] => testing job 4
    [item_number_4] => 2439
    [amount_4] => 40
    [item_name_5] => testing job 5
    [item_number_5] => 2441
    [amount_5] => 40
    [item_name_6] => testing job 6
    [item_number_6] => 2443
    [amount_6] => 40
    [business] => mysend@mydoma.com
    [currency_code] => USD
    [cbt] => Continue to testing code
    [return] => http://mydomain.com/order/4456/?_wpnonce=de449cd303
    [cancel_return] => http://mydomain.com/order/4456/?cancel=1
    [noshipping] => 1
    [no_note] => 1
    [rm] => 0
    [charset] => utf-8
    [cmd] => _xclick
)

但是我在 paypal 上传递了这个数组,但是 paypal 没有显示任何项目,请帮忙。

谢谢。

最佳答案

首先,xclick 类型用于将您必须使用购物车的多种产品的即时付款发送到 paypal

Array
(
[item_name_1] => this is the testing job
[item_number_1] => 2433
[amount_1] => 40
[item_name_2] => testing job 2
[item_number_2] => 2435
[amount_2] => 40
[item_name_3] => testing job 3
[item_number_3] => 2437
[amount_3] => 40
[item_name_4] => testing job 4
[item_number_4] => 2439
[amount_4] => 40
[item_name_5] => testing job 5
[item_number_5] => 2441
[amount_5] => 40
[item_name_6] => testing job 6
[item_number_6] => 2443
[amount_6] => 40
[business] => mysend@mydoma.com
[currency_code] => USD
[cbt] => Continue to testing code
[return] => http://mydomain.com/order/4456/?_wpnonce=de449cd303
[cancel_return] => http://mydomain.com/order/4456/?cancel=1
[noshipping] => 1
[no_note] => 1
[rm] => 0
[charset] => utf-8
[cmd] => _cart
[upload] => 1
)

使用这个数组对你有帮助

关于php - paypal寄多件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20284924/

相关文章:

用于发布到返回 url 的 PayPal 支付变量

php - 为什么 PHP 在[宽松地]比较两个数字字符串之前将它们转换为数字?

php - 制作带图像的视频

php - 一个类怎么能同时是一个数组和一个对象呢?

php - 如何在 PHP 中对请求进行排队

Java arraylist 掷骰子

arrays - Lua: "dragging"数组中的元素序列

javascript - 我如何在 Paypal 中更改 Alfredo Barco 的测试商店

paypal - 如何使用 PayPal Payflow 托管页面实现 PayPal 定期付款?不使用 IPN

java - 这个结构在某种程度上是无限递归的吗?