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

最佳答案

“ n”是您的付款请求号。如果您一次有一个付款请求,则为0。如果有多个付款请求(例如,如果要使用并行付款),则第一个付款请求为0,第二个为1,等等。等等

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

例如。

// First payment request
[email protected]
PAYMENTREQUEST_0_AMT=10
L_PAYMENTREQUEST_0_NAME0=Test+product

// Second payment request
[email protected] // 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

关于api - n和m在PayPal API变量(例如L_PAYMENTREQUEST_n_NAMEm)中代表什么,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5946709/

10-16 16:51