|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazon.InApp.transaction.PurchaseResponse
public final class PurchaseResponse
Represents the result of a call to TransactionManager.initiatePurchaseRequest(String)
and is sent to the
registered TransactionObserver
asynchronously via
TransactionObserver.notifyPurchaseResponse(PurchaseResponse)
.
Nested Class Summary | |
---|---|
static class |
PurchaseResponse.PurchaseRequestStatus
Indicates the result of a purchase operation initiated via TransactionManager.initiatePurchaseRequest(String) . |
Method Summary | |
---|---|
PurchaseResponse.PurchaseRequestStatus |
getPurchaseRequestStatus()
Indicates the status of the purchase request. |
Receipt |
getReceipt()
In the case where getPurchaseRequestStatus() returns
PurchaseResponse.PurchaseRequestStatus.Successful a Receipt will also be returned with details of the item that
was purchased. |
java.lang.String |
getRequestId()
Provides access to the request ID originally returned by TransactionManager.initiatePurchaseRequest(String) . |
java.lang.String |
getSku()
Provides access to the vendor SKU that was originally provided in the request to TransactionManager.initiatePurchaseRequest(String) . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getRequestId()
TransactionManager.initiatePurchaseRequest(String)
.
This identifier can be used to correlate the original request with this response.
public java.lang.String getSku()
TransactionManager.initiatePurchaseRequest(String)
.
public Receipt getReceipt()
getPurchaseRequestStatus()
returns
PurchaseResponse.PurchaseRequestStatus.Successful
a Receipt
will also be returned with details of the item that
was purchased. If the PurchaseResponse.PurchaseRequestStatus
is not PurchaseResponse.PurchaseRequestStatus.Successful
, this method
will return null.
Receipt
in the case where getPurchaseRequestStatus()
returns
PurchaseResponse.PurchaseRequestStatus.Successful
, null otherwisepublic PurchaseResponse.PurchaseRequestStatus getPurchaseRequestStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |