public interface MicrotransactionServices
Interface for transaction APIs including Kongregate micro-transactions, user item management, and App Store reciept validation.
This API can be used to query the server to determine if a Kongregate user owns a particular item. Currently, the functionality provided by this API is used for cross-promotion between games. For example, a bonus item in one game can be awarded by obtaining a badge in another.
Modifier and Type | Interface and Description |
---|---|
static interface |
MicrotransactionServices.ReceiptVerificationListener
Deprecated.
Please use a custom or 3rd party receipt validation service
|
static class |
MicrotransactionServices.ReceiptVerificationStatus
Deprecated.
Please use a custom or 3rd party receipt validation service
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasItem(java.lang.String identifier) |
MicrotransactionServices.ReceiptVerificationStatus |
receiptVerificationStatus(java.lang.String orderId)
Deprecated.
Please use a custom or 3rd party receipt validation service
|
void |
requestUserItemList()
Request the user item list from the server, which will generate the USER_INVENTORY event upon success
|
void |
verifyTransaction(java.lang.String receipt,
java.lang.String signature)
Deprecated.
Please use a custom or 3rd party receipt validation service
|
void |
verifyTransaction(java.lang.String receipt,
java.lang.String signature,
MicrotransactionServices.ReceiptVerificationListener listener)
Deprecated.
Please use a custom or 3rd party receipt validation service
|
void requestUserItemList()
Request the user item list from the server, which will generate the USER_INVENTORY event upon success
boolean hasItem(java.lang.String identifier)
identifier
- The item identifiervoid verifyTransaction(java.lang.String receipt, java.lang.String signature, MicrotransactionServices.ReceiptVerificationListener listener)
receipt
- The full JSON receipt for the purchasesignature
- The data signature included with the purchase response.listener
- Listener to be notified when the request completes.void verifyTransaction(java.lang.String receipt, java.lang.String signature)
receipt
- The full JSON receipt for the purchasesignature
- The data signature included with the purchase response.MicrotransactionServices.ReceiptVerificationStatus receiptVerificationStatus(java.lang.String orderId)
orderId
- The orderId token returned by the google billing API.