Invoice amount only

mapleukraine
Contributor
Contributor

Hi, I can't create "Amount only" invoice. I use Invoicing PHP SDK in sandbox. I set "Amount only" template as default and made call to invoicing endpoint but in result i got same quantity/price/amount document. Result shows "Amount only" template id used for document creation.

Another one strange thing - the logo i have set up for this template also absent in result document.

Here is a part of my code:

$items = array();
foreach ($invoiceEntity->invoice as $invoiceItem) {
$ppInvoiceItem = new PaypalInvoiceItem();
$ppInvoiceItem
->setName($invoiceItem->title)
->setDescription('some description')
->setQuantity(1)
->setUnitPrice(new Currency());
$ppInvoiceItem->getUnitPrice()
->setCurrency($invoiceItem->currency)
->setValue($invoiceItem->subtotal_cur);
$items[] = $ppInvoiceItem;
}
$invoice->setItems($items);

Does anybody know what i'm doing wrong?

 

 

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.