paypal发送多个项目?

时间:2013-11-29 11:39:47

标签: php arrays paypal

亲爱的朋友,这是我在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没有显示任何项目,请帮助。

谢谢。

1 个答案:

答案 0 :(得分:2)

首先,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
)

使用此阵列可以帮助您