Developer's Guide
Mobile Payments Library Developer Guide & Reference – Blackberry OS Edition 23
PayPalInvoiceItem
These items can be added to any PayPalInvoiceData.
NOTE: The
Price
and
Quantity
must multiply together correctly to equal the Price.
The TotalPrices of all invoiceItems of a PayPalPayment or a
PayPalAdvancedPayment must equal the subtotal of the payment.
Method Description
setName(String name)
(Optional) – The name of the item.
setID(String ID)
(Optional) – A unique ID for the item.
setTotalPrice(BigDecimal
price)
(Required) – The total cost of this item (unit cost * quantity).
setQuantity(int quantity)
(Required) – The quantity of this item.
PayPalReceiverDetails
This object is used in the AdvancedPayPalPayment to identify a single recipient.
Method Description
setReceivers(Vector
PayPalReceiverDetails)
setSubtotal(BigDecimal
subtotal)
setIsPrimary(boolean
isPrimary)
setPaymentType(Payment
Type paymentType)
setPaymentSubType(Paymen
tSubType paymentSubType)
setInvoiceData(PayPalInvo
iceData invoiceData)
(Required) – The email address or phone number of this recipient.
(Required) – The subtotal of the payment to this recipient.
(Optional) – Indicates whether or not the receiver is the primary
receiver of the payment. A payment with multiple recipients may
specify the primary recipient of the payment to denote a chained
payment. Payments with multiple recipients but no primary
receivers are parallel payments. See the section “Chained,
Parallel, and Simple Payments” for more details.
(Optional) – See enumeration values below.
(Optional) – See enumeration values below.
(Optional) – The InvoiceData holds information such as tax
and shipping amounts as well as an optional breakdown of the
items included. See “PayPalInvoiceData” above for more
details.
setCustomID(String customID)
(Optional) – The recipient's custom ID.
setMerchantName(String
merchantName)
(Optional) – Displayed at the top of the library screen. If not
set, displays the recipient email or phone number string instead.