开发者

What do the n and m stand for in the PayPal API variables like L_PAYMENTREQUEST_n_NAMEm

开发者 https://www.devze.com 2023-03-04 15:30 出处:网络
Try as I might, I can\'t seem to find what the n and m stand f开发者_JAVA技巧or in the api variable request format above. I\'m guessing m stands for different items, but not sure what n stands for. \'

Try as I might, I can't seem to find what the n and m stand f开发者_JAVA技巧or in the api variable request format above. I'm guessing m stands for different items, but not sure what n stands for.


'n' is the number of your payment request. If you have one payment request going on at a time, this will be 0. If you have multiple (if you want to use parallel payments, for example), it would be 0 for the first payment request, 1 for the second, et cetera.

'm' is the specific product within that payment request.

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消