Purchase

This object encapsulates the attributes of a purchase.

It may be aquired by calling to one of the blackberry.payment methods.

Installation:

To use this API in your project, add the payment plugin:

webworks plugin add com.blackberry.payment
Properties:
String date
String digitialGoodID
String digitalGoodSKU
Object extraParameters
String licenseKey
String metaData
String PurchaseID
String transactionID

date

The Epoch time represention of the date this purchase was made.

Synopsis:

String blackberry_payment_Purchase_date

digitialGoodID

The digital good ID for this purchase.

Synopsis:

String blackberry_payment_Purchase_digitialGoodID

digitalGoodSKU

The digital Good SKU for this purchase.

Synopsis:

String blackberry_payment_Purchase_digitalGoodSKU

extraParameters

A set of key/value pairs to be associated with a purchase request. Extra parameters (not necessarily corresponding to any that were passed in) may also be present in the purchasedItem returned from a successful {@link blackberry.payment.purchase}. Only relevant to a Purchase object at the time of the transaction (would not be present in a {@link blackberry.payment.getExistingPurchases} result).

Synopsis:

Object blackberry_payment_Purchase_extraParameters

licenseKey

Represents the license key for this purchase, or null if the purchased digital good does not have a license key.

Synopsis:

String blackberry_payment_Purchase_licenseKey

metaData

The metadata for this purchase, or null if no metadata was included with the purchase.

Synopsis:

String blackberry_payment_Purchase_metaData

PurchaseID

The purchaseID for this purchase.

Synopsis:

String blackberry_payment_Purchase_purchaseID

transactionID

The transaction ID for this purchase.

Synopsis:

String blackberry_payment_Purchase_transactionID

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus