n和m在PayPal API变量(如L_PAYMENTREQUEST_n_NAMEm)中代表什么

时间:2011-05-10 07:36:15

标签: api paypal

尽我所能,我似乎无法在上面的api变量请求格式中找到n和m代表的内容。我猜m代表不同的项目,但不确定n代表什么。

1 个答案:

答案 0 :(得分:4)

'n'是您的付款请求的编号。如果您一次有一个付款请求,则该值为0.如果您有多个(例如,如果您想使用并行付款),则第一个付款请求将为0,第二个付款请求为1,等等等等。

'm'是该付款请求中的特定产品。

E.g。

// First payment request
PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=test@example.com
PAYMENTREQUEST_0_AMT=10
L_PAYMENTREQUEST_0_NAME0=Test+product

// Second payment request
PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID=test@anotherexample.com // Recipient of this payment request
PAYMENTREQUEST_1_AMT=5 // Total of all products combined in this payment request
L_PAYMENTREQUEST_1_NAME0=Test+product+2 // Name of the first product/item in this payment request
L_PAYMENTREQUEST_1_AMT0=2.50 // Price of this one product
L_PAYMENTREQUEST_1_NAME1=Test+product+3 // Name of the second product/item in this payment request
L_PAYMENTREQUEST_1_AMT1=2.50 // Price of this one product

来源:https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECParallelPaymens