PayPal API Integration Multiple products to check out at a same time.

Bryan1908
Contributor
Contributor

Hi, I am currently doing a PayPal integration on my Visual Studio 2015. I am not sure which version I'm using but it should be PayPal SDK Restful. 

I have done up all my codes for the checking out but I encountered an issue. When I try to check 1 item out, it works. However when I try to check multiple items, it gives me an Error 400. 

 

The code below is the problematic area. If the transactionList contains only 1 value with 1 itemlist, it will not have error. However, when it has 2 values with 1 itemlist each, it will give me an Error 400.

 

var payment = Payment.Create(apiContext, new Payment
{

intent = "sale",
payer = payer,
transactions = transactionList,
redirect_urls = redirectUrls

});

 

Please help!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.