public class PaymentResponse
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PaymentResponse() |
|
PaymentResponse(Message message) |
Modifier and Type | Method and Description |
---|---|
int |
getBillingStatus()
Indicates the transaction status.
|
java.lang.String |
getCreditAmount()
Amount of credits paid for by the user (if the user buys "15 crystals" then this value is "15").
|
java.lang.String |
getCreditName()
Name of the credits paid for by the user (in case of "15 crystals" this would be "crystals").
|
java.util.Date |
getDate() |
long |
getMessageId()
Message id of the transaction.
|
java.lang.String |
getPaymentCode()
Returns payment code specific to the end-user's device.
|
java.lang.String |
getPriceAmount()
Amount paid by the user in a fractional format (X.YZ).
NB: Please note that this value will not be present if payment is made for a non-consumable product for which the customer has already paid for. |
java.lang.String |
getPriceCurrency()
ISO 4217 currency code (like USD, EUR...).
|
java.lang.String |
getProductName()
Mirrors the value passed to
PaymentRequest.PaymentRequestBuilder.setProductName(String) . |
int |
getProductType()
Either MpUtils.TYPE_CONSUMABLE, MpUtils.TYPE_NON_CONSUMABLE or MpUtils.TYPE_SUBSCRIPTIONS
|
java.lang.String |
getServiceId()
Returns Service ID this message was sent for.
|
java.lang.String |
getUserId()
Returns the user ID.
|
protected PaymentResponse()
public PaymentResponse(Message message)
public java.util.Date getDate()
public long getMessageId()
PaymentResponse
later via MpUtils.getPaymentResponse(android.content.Context, long)
.public int getBillingStatus()
MpUtils.MESSAGE_STATUS_PENDING
, MpUtils.MESSAGE_STATUS_BILLED
, MpUtils.MESSAGE_STATUS_FAILED
public java.lang.String getProductName()
PaymentRequest.PaymentRequestBuilder.setProductName(String)
.public java.lang.String getPaymentCode()
public java.lang.String getUserId()
public java.lang.String getServiceId()
public java.lang.String getCreditName()
public java.lang.String getCreditAmount()
public java.lang.String getPriceCurrency()
public java.lang.String getPriceAmount()
Amount paid by the user in a fractional format (X.YZ).
NB: Please note that this value will not be present if payment is made for a non-consumable product
for which the customer has already paid for.
public int getProductType()