Invoice amount only
mapleukraine
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-24-2017
03:50 PM
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?
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.
Related Content
- [UNPROCESSABLE_ENTITY], but payment went through in PayPal Payments Standard
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- Getting API error PAYEE_ACCOUNT_INVALID, I set the payee to my merchant id. in REST APIs
- Recurring payments for cart with multiple individually subscribable items? in PayPal Payments Standard
- Authorization being forced prior to Paypal Button becoming available. in PayPal Payments Standard