Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/j3k0/cordova-plugin-purchase
/ functions
Functions
1,331 in github.com/j3k0/cordova-plugin-purchase
⨍
Functions
1,331
◇
Types & classes
595
↓ 100 callers
Method
info
* Logs an info message, only if `store.verbosity` >= store.INFO
www/store.js:282
↓ 100 callers
Method
info
* Logs an info message, only if `store.verbosity` >= store.INFO
src/ts/log.ts:73
↓ 89 callers
Method
push
Add a callback to the list
www/store.js:1305
↓ 81 callers
Method
push
Add a callback to the list
src/ts/internal/callbacks.ts:41
↓ 76 callers
Method
debug
* Logs a debug message, only if `store.verbosity` >= store.DEBUG
www/store.js:286
↓ 76 callers
Method
debug
* Logs a debug message, only if `store.verbosity` >= store.DEBUG
src/ts/log.ts:78
↓ 70 callers
Method
warn
(message: string)
src/ts/log.ts:123
↓ 61 callers
Function
log
(verbosity, level, prefix, o)
www/store.js:330
↓ 54 callers
Method
find
* Retrieve a platform adapter.
src/ts/internal/adapters.ts:238
↓ 54 callers
Function
protectCall
(callback, context, ...args)
www/store.js:4294
↓ 52 callers
Method
error
(message: string)
src/ts/log.ts:124
↓ 51 callers
Method
find
* Retrieve a platform adapter.
www/store.js:977
↓ 50 callers
Method
receiptsUpdated
(platform: Platform, receipts: Receipt[])
src/ts/internal/adapters.ts:45
↓ 37 callers
Method
log
(message: string)
src/ts/log.ts:122
↓ 35 callers
Function
log
(msg: string)
src/ts/platforms/apple-appstore/appstore-bridge-capacitor.ts:5
↓ 29 callers
Function
exec
(methodName, options, success, error)
www/store.js:4291
↓ 29 callers
Function
protectCall
Execute a javascript-side method in a try-catch block
src/ts/platforms/apple-appstore/appstore-bridge.ts:167
↓ 28 callers
Function
log
(s)
src/windows/InAppPurchaseProxy.js:8
↓ 25 callers
Method
callError
(final int code, final String msg)
src/android/cc/fovea/PurchasePlugin.java:1320
↓ 25 callers
Function
protectCall
( this: any, callback: T, context: string, ...args: Parameters<T>)
src/ts/platforms/apple-appstore/appstore-bridge-sk2.ts:15
↓ 24 callers
Method
trigger
Call all registered callbacks with the given value
www/store.js:1320
↓ 23 callers
Method
resolve
Call all registered callbacks with the given value
www/store.js:2972
↓ 22 callers
Method
refreshWith
* Refresh the cached value for a given adapter. * * The returned promise: * - resolves when the adapter respo
www/store.js:1031
↓ 21 callers
Method
format
(final BillingResult result)
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:392
↓ 21 callers
Method
trigger
Call all registered callbacks with the given value
src/ts/internal/callbacks.ts:57
↓ 20 callers
Method
format
(final BillingResult result)
src/android/cc/fovea/PurchasePlugin.java:1411
↓ 20 callers
Method
obfuscateUsername
* Obfuscate the application username according to the configured obfuscation strategy. * * See {@link Obfuscator} for the per-mode o
www/store.js:1883
↓ 18 callers
Method
child
* Create a child logger, whose prefix will be this one's + the given string. * * @example * const log = store.log.child('Ap
www/store.js:259
↓ 17 callers
Function
appStoreError
(code, message, productId)
www/store.js:4016
↓ 17 callers
Function
appStoreError
(code: ErrorCode, message: string, productId: string | null)
src/ts/platforms/apple-appstore/appstore-adapter.ts:962
↓ 17 callers
Method
child
* Create a child logger, whose prefix will be this one's + the given string. * * @example * const log = store.log.child('Ap
src/ts/log.ts:48
↓ 17 callers
Method
initialize
* Initializes a platform adapter. * * Will resolve when initialization is complete. * * Will fail with an `IError`
src/ts/types.ts:149
↓ 15 callers
Method
add
(log, adapters, context)
www/store.js:881
↓ 15 callers
Method
add
(log: Logger, adapters: (PlatformWithOptions)[], context: AdapterContext)
src/ts/internal/adapters.ts:142
↓ 15 callers
Function
braintreeError
(code: ErrorCode, message: string)
src/ts/platforms/braintree/braintree-adapter.ts:468
↓ 15 callers
Function
exec
Execute a native method
src/ts/platforms/apple-appstore/appstore-bridge.ts:162
↓ 15 callers
Method
get
* Find a product from its id and platform * * @param productId Product identifier on the platform. * @param platform The pr
www/store.js:2126
↓ 15 callers
Function
playStoreError
(code, message, productId)
www/store.js:6695
↓ 15 callers
Function
playStoreError
(code: ErrorCode, message: string, productId: string | null)
src/ts/platforms/google-play/googleplay-adapter.ts:663
↓ 15 callers
Method
when
()
src/ts/internal/receipts-monitor.ts:6
↓ 14 callers
Method
addListener
( eventName: string, listenerFunc: (data: any) => void )
capacitor/src/definitions.ts:97
↓ 14 callers
Method
canPurchase
* Returns true if the offer can be purchased.
src/ts/offer.ts:19
↓ 14 callers
Function
exec
(methodName: string, options: any[], success?: (msg?: any) => void,
src/ts/platforms/apple-appstore/appstore-bridge-sk2.ts:9
↓ 14 callers
Function
makeLogger
()
tests/storefronts.test.ts:3
↓ 13 callers
Method
getApplicationUsername
()
src/ts/validator/validator.ts:46
↓ 13 callers
Method
receiptsReady
* Register a function called when all receipts have been loaded. * * This handler is called only once. Use this when you want to run
src/ts/types.ts:419
↓ 13 callers
Method
refresh
* @deprecated - use store.initialize(), store.update() or store.restorePurchases()
www/store.js:1992
↓ 13 callers
Method
remove
Remove a callback from the list
www/store.js:1333
↓ 13 callers
Method
remove
Remove a callback from the list
src/ts/internal/callbacks.ts:71
↓ 12 callers
Method
findReady
* Retrieve the first platform adapter in the ready state, if any. * * You can optionally force the platform adapter you are
www/store.js:988
↓ 12 callers
Method
findReady
* Retrieve the first platform adapter in the ready state, if any. * * You can optionally force the platform adapter you are
src/ts/internal/adapters.ts:250
↓ 12 callers
Method
get
* Find a product from its id and platform * * @param productId Product identifier on the platform. * @param platform The pr
src/ts/store.ts:566
↓ 12 callers
Method
getValueFor
* Retrieve a storefront value. * * - With a platform: always returns `{ platform, countryCode }`, * where `co
www/store.js:1061
↓ 12 callers
Function
iapticJsError
(code, message, productId)
www/store.js:8081
↓ 12 callers
Function
iapticJsError
(code: ErrorCode, message: string, productId: string | null)
src/ts/platforms/iaptic-js/iapticjs-adapter.ts:432
↓ 12 callers
Function
log
(msg: string)
src/ts/platforms/google-play/googleplay-bridge.ts:88
↓ 12 callers
Function
makeAdapter
(id: CdvPurchase.Platform, getStorefrontImpl?: () => Promise<string | undefined>)
tests/storefronts.test.ts:16
↓ 12 callers
Method
receiptsReady
(platform: Platform)
src/ts/internal/adapters.ts:46
↓ 12 callers
Function
storeError
(code: ErrorCode, message: string, platform: Platform | null, productId: string | null)
src/ts/error-codes.ts:88
↓ 11 callers
Method
addOffer
* Add an offer to this product. * * @internal
www/store.js:436
↓ 11 callers
Method
addOffer
* Add an offer to this product. * * @internal
src/ts/product.ts:119
↓ 11 callers
Function
errorCb
(fail)
www/store.js:7105
↓ 11 callers
Function
errorCb
(fail: (message: string, code?: number) => void)
src/ts/platforms/google-play/googleplay-bridge.ts:350
↓ 11 callers
Method
getLastResult
()
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:145
↓ 11 callers
Method
getLastResult
Last result from the billing client. @return the latest BillingResult
src/android/cc/fovea/PurchasePlugin.java:140
↓ 11 callers
Method
isEligible
(productId: string, discountType: DiscountType, discountId: string)
src/ts/platforms/apple-appstore/appstore-discount.ts:20
↓ 10 callers
Function
collectEligibilityRequests
* Build the pair of (requests, native-provided answers) for every valid product. * * The two arrays are parallel: for each r
www/store.js:5019
↓ 10 callers
Method
finish
* Finish a transaction. * * For non-consumables, this will acknowledge the purchase. * For consumable, this will acknowledg
src/ts/types.ts:177
↓ 10 callers
Function
getDeviceInfo
(store: any)
tests/validator-deviceinfo.test.ts:18
↓ 10 callers
Method
has
(receipt)
www/store.js:512
↓ 10 callers
Function
product
(over: Partial<ValidProduct> = {})
tests/appstore-eligibility.test.ts:21
↓ 10 callers
Method
verified
Register a function called when a receipt is verified.
src/ts/types.ts:404
↓ 9 callers
Function
log
(msg: string)
src/ts/platforms/google-play/googleplay-bridge-capacitor.ts:5
↓ 9 callers
Method
verify
(receipt: Receipt)
src/ts/receipt.ts:7
↓ 8 callers
Function
errorString
(code)
src/windows/InAppPurchaseProxy.js:248
↓ 8 callers
Method
has
(receipt: Receipt)
src/ts/validator/validator.ts:36
↓ 8 callers
Method
off
(callback: Callback<T>)
src/ts/internal/receipts-monitor.ts:12
↓ 8 callers
Method
onProductDetailsResponse
(BillingResult result, List<ProductDetails> productDetailsList)
src/android/cc/fovea/PurchasePlugin.java:79
↓ 8 callers
Method
refresh
(valid: Bridge.ValidProduct, decorator: CdvPurchase.Internal.ProductDecorator & CdvPurchase.Internal.OfferDeco
src/ts/platforms/apple-appstore/appstore-product.ts:43
↓ 7 callers
Method
executeServiceRequest
(final Runnable runnable)
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:449
↓ 7 callers
Method
getStorefront
* Retrieve the billing country code from the platform's storefront. * * Returns an ISO 3166-1 alpha-2 country code (e.g., "US", "FR"
src/ts/types.ts:222
↓ 7 callers
Method
loadProducts
* Load product definitions from the platform.
src/ts/types.ts:154
↓ 7 callers
Method
manageSubscriptions
* Open the platforms' subscription management interface.
src/ts/types.ts:197
↓ 7 callers
Method
order
* Initializes an order.
src/ts/types.ts:169
↓ 7 callers
Function
testStoreError
(code, message, productId)
www/store.js:8376
↓ 7 callers
Function
testStoreError
(code: ErrorCode, message: string, productId: string | null)
src/ts/platforms/test/test-adapter.ts:293
↓ 6 callers
Function
allowed
(policy)
www/store.js:9220
↓ 6 callers
Function
allowed
(policy: PrivacyPolicyItem)
src/ts/validator/validator-deviceinfo.ts:107
↓ 6 callers
Function
braintreeError
(code, message)
www/store.js:5566
↓ 6 callers
Method
callSuccess
()
src/android/cc/fovea/PurchasePlugin.java:1302
↓ 6 callers
Method
executeServiceRequest
(final Runnable runnable)
src/android/cc/fovea/PurchasePlugin.java:1374
↓ 6 callers
Method
finished
Register a function called when a transaction is finished.
src/ts/types.ts:401
↓ 6 callers
Method
getProduct
Find a given product from ID
www/store.js:3266
↓ 6 callers
Method
getProduct
(id: string)
src/ts/platforms/google-play/googleplay-products.ts:42
↓ 6 callers
Method
listen
Register a change listener.
www/store.js:1073
↓ 6 callers
Method
manageBilling
* Open the platforms' billing management interface.
src/ts/types.ts:202
↓ 6 callers
Function
mergeNativeEligibility
* Overlay native-provided eligibility answers on top of a determiner response. * * Native wins on conflict — it's the author
www/store.js:5051
↓ 6 callers
Method
owned
* Returns true if the product is owned.
src/ts/product.ts:12
↓ 6 callers
Method
productsUpdated
(platform: Platform, products: Product[])
src/ts/internal/adapters.ts:44
↓ 6 callers
Method
requestPayment
* Request a payment from the user
src/ts/types.ts:192
next →
1–100 of 1,331, ranked by callers