KongMtx Class Reference
Inherits from | NSObject |
---|---|
Declared in | KongMtx.h |
Overview
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.
– requestUserItemList
Call this function to request the user’s inventory from the remote server. Once the list of items has been retrieved, a KONGREGATE_EVENT_USER_INVENTORY event will be broadcast, at which point you can call hasItem: to determine if the user owns a specific item.
- (void)requestUserItemList
Declared In
KongMtx.h
– hasItem:
Used to check if a user owns an item with the given identifier. Only valid after a call to requestUserItemList generates the KONGREGATE_EVENT_USER_INVENTORY event. It is recommended you persist the value of this call to disk once it returns true so that repeated requests to the server don’t need to be made.
- (bool)hasItem:(NSString *)identifier
Parameters
identifier |
The Kongregate item identifier |
---|
Return Value
True if the user has the specified identifier in their inventor
Declared In
KongMtx.h
– verifyTransaction:completionHandler:
please use a custom or 3rd party receipt validation service (Deprecated: please use a custom or 3rd party receipt validation service)
- (void)verifyTransaction:(SKPaymentTransaction *)transaction completionHandler:(KongVerifyCompletionHandler)completionHandler
Parameters
transaction |
The SKPaymentTransaction to verify |
---|---|
completionHandler |
The callback function and boolean result for when complete |
Declared In
KongMtx.h
– verifyTransactionId:
please use a custom or 3rd party receipt validation service (Deprecated: please use a custom or 3rd party receipt validation service)
- (void)verifyTransactionId:(NSString *)transactionId
Parameters
transactionId |
The transacationIdentifier from the transaction to verify |
---|
Declared In
KongMtx.h
– receiptVerificationStatus:
please use a custom or 3rd party receipt validation service (Deprecated: please use a custom or 3rd party receipt validation service)
- (NSString *)receiptVerificationStatus:(NSString *)transactionId
Parameters
transactionId |
The transacationIdentifier to check the status of |
---|
Return Value
the status of the verification.
Declared In
KongMtx.h