在Adaptive Paypal Payments中发送每件商品的运费详情

I have a requirement where I have to add shipping costs per item not per order of a particular supplier.

For example, if a buyer purchases three products of a supplier, each product has different shipping costs. The receiver option to add shipping details in invoice data I found is

receiverOptions[x].invoiceData.totalShipping

that means I have to sum up all the shipping costs and assign it. But I want to show shipping costs per product. I'm accessing the api using NVP. Is there a chance I can achieve this?

You could put the shipping items as actual items in the order instead of using the single shipping field.

With Adaptive Payments, you make your call to Pay using CREATE, and then you would follow that up with SetPaymentOptions to include details like order items prior to redirecting the user to PayPal.

If you're splitting the payment up between multiple receivers then you can specify the individual shipping amounts in each payment within SetPaymentsOptions. Each payment in the transaction can have its own items, shipping, tax, etc.