cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

PayPal Express Checkout - Adding Line Items

This is a question similar to this issue posted on GitHub:

https://github.com/AuthorizeNet/sample-code-csharp/issues/38

 

I am trying to include lineItems using this model. Any suggestions would be great. Code snip below:

//standard api call to retrieve response
var paymentType = new paymentType { Item = creditCard };

        var orderDetails = new orderType { invoiceNumber = "Inv 01234", description = "Test" };

        var items = new lineItemType { itemId = "TESTER", description = "Dec", name="Name", quantity = 1, taxable = false, taxableSpecified = false, unitPrice = 0.10m };


        var transactionRequest = new transactionRequestType
        {
            transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),    // charge the card
            //amount = 133.45m,
            amount = Amount,
            payment = paymentType,
            order = orderDetails,
            lineItems = items

        };

 Thanks!

1 REPLY 1
RaynorC1emen7
Expert