PayPal Order Summary Using REST API - - cURL or PHP PayPal Order Summary Using REST API - - cURL or PHP curl curl

PayPal Order Summary Using REST API - - cURL or PHP


your code is good. This is actually a bug that will be fixed very soon. Regarding documentation, can you share how we can make it better? I want to make sure your feedback gets passed to our documentation team.


I experienced the same issue while trying it out today. What I did was add the Items like below.

$item = new Item();$item->setQuantity($item_quantity);$item->setName($item_name);$item->setPrice($item_price);$item->setCurrency($item_currency);$item_list = new ItemList();$item_list->setItems(array($item));

The $item_list is a property of transaction so you should add it after.

$transaction = new Transaction();$transaction->setItemList($item_list);....

That should show on the Order summary pane on PayPal page.You can also check the answer here.


Try using the sample shown here : http://htmlpreview.github.io/?https://raw.githubusercontent.com/paypal/PayPal-PHP-SDK/master/sample/doc/payments/CreatePaymentUsingPayPal.html

It is a sample that comes along with the PayPal REST API SDK. You can try those samples out yourselves, by following instructions on readme.

This is how it would look like, when you run that sample:

enter image description here