Interface FacebookIapReceiptService
- All Known Implementing Classes:
UserFacebookIapReceiptService
public interface FacebookIapReceiptService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFacebookIapReceipt(String originalTransactionId) Deletes an existing receipt.getFacebookIapReceipt(String originalTransactionId) Gets the receipt with the id, or throws aNotFoundExceptionif the receipt can't be found.getFacebookIapReceipts(int offset, int count) Gets receipts for a given user specifying the offset and the count.getOrCreateFacebookIapReceipt(FacebookIapReceipt facebookIapReceipt) Finds a receipt in the db, or creates a new one if necessary.Verifies the given base64-encoded receiptData string against the Facebook servers in the given environment.
-
Field Details
-
FACEBOOK_IAP_SCHEME
- See Also:
-
FACEBOOK_IAP_ROOT_URL
- See Also:
-
FACEBOOK_IAP_RECEIPT_CREATED
- See Also:
-
-
Method Details
-
getFacebookIapReceipts
Gets receipts for a given user specifying the offset and the count.- Parameters:
offset- the offsetcount- the count- Returns:
- a
PaginationofFacebookIapReceiptobjects.
-
getFacebookIapReceipt
Gets the receipt with the id, or throws aNotFoundExceptionif the receipt can't be found.- Parameters:
originalTransactionId- the original facebook transaction id- Returns:
- the
Receiptthat was requested, never null
-
getOrCreateFacebookIapReceipt
Finds a receipt in the db, or creates a new one if necessary.- Returns:
- the
Receiptas it was written into the database - Throws:
InvalidDataException- if the state of the passed in OculusIapReceipt is invalidDuplicateException- if the passed in OculusIapReceipt has a name that already exists
-
deleteFacebookIapReceipt
Deletes an existing receipt.- Parameters:
originalTransactionId- the original facebook transaction id
-
verifyAndCreateFacebookIapReceiptIfNeeded
Verifies the given base64-encoded receiptData string against the Facebook servers in the given environment.- Parameters:
receiptData-- Returns:
- the
FacebookIapReceiptas it was written into the database, or the existing database record
-