The StoreKit purchase and restore front end, shared across the store screens.
More...
#include <PurchaseManager.h>
The StoreKit purchase and restore front end, shared across the store screens.
◆ addProduct:
| - (void) addProduct: |
|
(NSString *) | productID |
|
Add a product to purchasedProducts if not already present, and clear pending.
- Parameters
-
| productID | The product identifier. |
- Ghidra address:
- 0xb6308
- Ghidra address:
- 0xb6308
◆ alertSelect:
| - (void) alertSelect: |
|
(id) | alert |
|
Handle an alert selection for a consumable.
- Parameters
-
- Ghidra address:
- 0xb9644
- Ghidra address:
- 0xb9644
◆ beginConsumePurchase:
| - (void) beginConsumePurchase: |
|
(SKProduct *) | product |
|
Start a consumable purchase (bConsume = YES).
- Parameters
-
- Ghidra address:
- 0xb5ec8
- Ghidra address:
- 0xb5ec8
◆ beginPurchase:
| - (void) beginPurchase: |
|
(SKProduct *) | product |
|
Start a non-consumable purchase, or refresh receipt if already pending.
- Parameters
-
- Ghidra address:
- 0xb5fec
- Ghidra address:
- 0xb5fec
◆ beginRestore
Begin restoring completed transactions.
- Ghidra address:
- 0xb6238
◆ checkConsumeItemID:
| - (BOOL) checkConsumeItemID: |
|
(NSString *) | itemID |
|
Check if an item ID is a consumable cube.
- Parameters
-
- Returns
- YES if it has the jubeat.cube prefix.
- Ghidra address:
- 0xb9628
- Ghidra address:
- 0xb9628
◆ createConsumeVerifyPostDictionary:prices:
| - (NSDictionary *) createConsumeVerifyPostDictionary: |
|
(NSString *) | sku |
| prices: |
|
(NSArray *) | prices |
Create a consume-verify post dictionary.
- Parameters
-
| sku | The SKU. |
| prices | The prices array. |
- Returns
- The dictionary or nil.
- Ghidra address:
- 0xb63bc
- Ghidra address:
- 0xb63bc
◆ createVerifyPostData:
| - (NSData *) createVerifyPostData: |
|
(NSArray *) | products |
|
Create verify post data for given products.
- Parameters
-
| products | The products array. |
- Returns
- The dictionary or nil.
- Ghidra address:
- 0xb66ec
- Ghidra address:
- 0xb66ec
◆ createVerifyPostDictionary:productPrices:
| - (nullable NSDictionary *) createVerifyPostDictionary: |
|
(NSArray *) | products |
| productPrices: |
|
(nullable NSArray *) | productPrices |
Create verify post dictionary with product prices.
- Parameters
-
| products | The products array. |
| productPrices | The prices array. |
- Returns
- The dictionary or nil.
- Ghidra address:
- 0xb6af0
◆ dealloc
Tears down the manager and clears the delegate.
- Ghidra address:
- 0xb96a4
◆ end
Tears the purchase manager down.
Removes itself as a transaction observer.
- Ghidra address:
- 0xb5194
- Ghidra address:
- 0xb5194
◆ init
Builds the manager.
- Returns
- The initialised manager.
- Ghidra address:
- 0xb50e8
- Ghidra address:
- 0xb50e8
◆ isPending:
| - (BOOL) isPending: |
|
(nullable NSString *) | productID |
|
Whether a purchase of the product is in flight.
- Parameters
-
| productID | The product identifier. |
- Returns
- YES if a receipt is pending.
- Ghidra address:
- 0xb61f0
◆ isPurchasable
Whether the device can make payments.
- Returns
- YES when StoreKit says so.
- Ghidra address:
- 0xb5130
- Ghidra address:
- 0xb5130
◆ isPurchased:
| - (BOOL) isPurchased: |
|
(nullable NSString *) | productID |
|
Whether the product has already been bought.
- Parameters
-
| productID | The product identifier. |
- Returns
- YES if contained in purchasedProducts.
- Ghidra address:
- 0xb61d8
◆ loadPendingConsumeList
| - (void) loadPendingConsumeList |
|
|
|
Load pending consumable receipts.
- Ghidra address:
- 0xb8dc8
◆ loadPendingList
Loads purchases that were started but not finished.
- Ghidra address:
- 0xb5c04
◆ loadProductList
Loads the product catalogue.
- Ghidra address:
- 0xb56f0
◆ paymentQueue:restoreCompletedTransactionsFailedWithError:
| - (void) paymentQueue: |
|
(SKPaymentQueue *) | queue |
| restoreCompletedTransactionsFailedWithError: |
|
(NSError *) | error |
Handle a failed receipt restore.
- Parameters
-
| queue | The payment queue. |
| error | The error. |
- Ghidra address:
- 0xb8970
- Ghidra address:
- 0xb8970
◆ requestDidFinish:
| - (void) requestDidFinish: |
|
(SKRequest *) | request |
|
Handle a finished SKRequest.
- Parameters
-
- Ghidra address:
- 0xb8a34
- Ghidra address:
- 0xb8a34
◆ savePendingConsumeList
| - (void) savePendingConsumeList |
|
|
|
Save pending consumable receipts.
- Ghidra address:
- 0xb8b78
◆ start
Brings the purchase manager up.
Adds itself as a transaction observer on the default queue.
- Ghidra address:
- 0xb5144
- Ghidra address:
- 0xb5144
◆ verifyConsumeReceipt
| - (void) verifyConsumeReceipt |
|
|
|
Verify the consumable receipt.
- Ghidra address:
- 0xb908c
◆ verifyPendingConsumeReceipt
| - (BOOL) verifyPendingConsumeReceipt |
|
|
|
Verify any pending consumable receipt.
- Returns
- YES if an unfinished cube purchase was found and its alert was shown.
- Ghidra address:
- 0xb92b4
- Ghidra address:
- 0xb92b4
◆ verifyReceipt
Verify the receipt for the current verifingID/Price.
- Ghidra address:
- 0xb6ec4
◆ delegate
The delegate.
- Ghidra address:
- 0x34a4e8
◆ pendingPackIDs
| - (NSArray *) pendingPackIDs |
|
readnonatomicassign |
The packs whose purchase has not settled yet.
- Ghidra address:
- 0xb5354
- Ghidra address:
- 0xb5420
◆ purchasedPackIDs
| - (NSArray *) purchasedPackIDs |
|
readnonatomicassign |
The packs the player has bought.
- Ghidra address:
- 0xb51e4
- Ghidra address:
- 0xb52b0
◆ sharedManager
The shared instance.
- Ghidra address:
- 0xb5068
- Ghidra address:
- 0xb50a8
The documentation for this class was generated from the following files: