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
↓ 1 callers
Function
safeCall
* Run a callback inside a try/catch block. * * @param logger - Used to log errors. * @param className - Type of callback, h
www/store.js:9108
↓ 1 callers
Function
safeCall
(logger: Logger, className: string, callback: Callback<T>, value: T, callbackName: string | undefined, reason:
src/ts/utils/safe-callback.ts:25
↓ 1 callers
Method
scheduleRefreshForSubscription
* Schedule a purchase refresh for a subscription without expiration date
www/store.js:6367
↓ 1 callers
Method
scheduleRefreshForSubscription
* Schedule a purchase refresh for a subscription without expiration date
src/ts/platforms/google-play/googleplay-adapter.ts:345
↓ 1 callers
Method
scheduleRefreshesForSubscriptions
* Detect subscriptions that need scheduled refreshes
www/store.js:6400
↓ 1 callers
Method
scheduleRefreshesForSubscriptions
* Detect subscriptions that need scheduled refreshes
src/ts/platforms/google-play/googleplay-adapter.ts:382
↓ 1 callers
Method
set
* Update the receipt content * * @internal
www/store.js:9339
↓ 1 callers
Method
set
* Update the receipt content * * @internal
src/ts/validator/verified-receipt.ts:86
↓ 1 callers
Method
setSupportedPlatforms
* Set the list of supported platforms. * * Called by the store when it is initialized.
www/store.js:1143
↓ 1 callers
Method
setSupportedPlatforms
* Set the list of supported platforms. * * Called by the store when it is initialized.
src/ts/internal/adapter-listener.ts:73
↓ 1 callers
Function
setTestMode
(win, fail, args)
src/windows/InAppPurchaseProxy.js:75
↓ 1 callers
Method
setValue
Update the cache and notify listeners on change.
www/store.js:1081
↓ 1 callers
Method
setValue
Update the cache and notify listeners on change.
src/ts/internal/storefronts.ts:90
↓ 1 callers
Function
shiftAdd32
(op0, op1, v1)
www/store.js:7517
↓ 1 callers
Function
shiftAdd32
(op0: number, op1: number, v1: number)
src/ts/utils/md5.ts:25
↓ 1 callers
Method
shouldSendProducts
Check if the products array should be included in the validation request. * Returns true at most once per day, tracked via localStorage.
www/store.js:711
↓ 1 callers
Method
shouldSendProducts
Check if the products array should be included in the validation request. * Returns true at most once per day, tracked via localStorage.
src/ts/validator/validator.ts:264
↓ 1 callers
Method
start
* Start monitoring the provided transaction for state changes.
www/store.js:1470
↓ 1 callers
Method
start
* Start monitoring the provided transaction for state changes.
src/ts/internal/transaction-monitor.ts:67
↓ 1 callers
Method
startListening
()
www/store.js:1450
↓ 1 callers
Method
startListening
()
src/ts/internal/transaction-monitor.ts:45
↓ 1 callers
Method
stop
(monitorId)
www/store.js:1480
↓ 1 callers
Method
stop
()
www/store.js:1566
↓ 1 callers
Method
stop
(monitorId: string)
src/ts/internal/transaction-monitor.ts:78
↓ 1 callers
Method
stop
()
src/ts/internal/expiry-monitor.ts:76
↓ 1 callers
Function
storeJsPlugin
* Rollup plugin that serves www/store.js as a virtual ES module. * Appends `export { CdvPurchase }` so the IIFE-defined variable * can be imported b
capacitor/rollup.config.mjs:13
↓ 1 callers
Method
storefrontUpdated
* Register a function called when a platform's storefront country code changes. * * Fires when a platform's cached value transitions
src/ts/types.ts:437
↓ 1 callers
Function
stringToIntArray
(r)
www/store.js:7610
↓ 1 callers
Function
stringToIntArray
(r: string)
src/ts/utils/md5.ts:125
↓ 1 callers
Method
subscribe
Subscribe to an item.
src/android/cc/fovea/PurchasePlugin.java:951
↓ 1 callers
Function
toHexString
(r)
www/store.js:7502
↓ 1 callers
Function
toHexString
(r: number)
src/ts/utils/md5.ts:7
↓ 1 callers
Method
toPaymentMode
(phase)
www/store.js:7442
↓ 1 callers
Method
toPaymentMode
(phase: Bridge.PricingPhase)
src/ts/platforms/google-play/googleplay-products.ts:337
↓ 1 callers
Method
toPricingPhase
(phase)
www/store.js:7456
↓ 1 callers
Method
toPricingPhase
(phase: Bridge.PricingPhase)
src/ts/platforms/google-play/googleplay-products.ts:353
↓ 1 callers
Method
toRecurrenceMode
(mode)
www/store.js:7449
↓ 1 callers
Method
toRecurrenceMode
(mode: Bridge.RecurrenceMode)
src/ts/platforms/google-play/googleplay-products.ts:345
↓ 1 callers
Method
toState
(fromConstructor, state, isAcknowledged, isConsumed)
www/store.js:6107
↓ 1 callers
Method
toState
(fromConstructor: boolean, state: Bridge.PurchaseState, isAcknowledged: boolean, isConsumed: boolean)
src/ts/platforms/google-play/googleplay-adapter.ts:18
↓ 1 callers
Function
toString
(o)
www/store.js:325
↓ 1 callers
Function
toString
(o: any)
src/ts/log.ts:129
↓ 1 callers
Method
transactionUpdated
Called from native. Same as SK1 but with extra SK2 fields.
www/store.js:4464
↓ 1 callers
Method
transactionUpdated
(state, errorCode, errorText, transactionIdentifier, productId, transactionReceipt, originalTransactionIdentif
www/store.js:4865
↓ 1 callers
Method
transactionUpdated
Called from native. Same as SK1 but with extra SK2 fields.
src/ts/platforms/apple-appstore/appstore-bridge-sk2.ts:258
↓ 1 callers
Method
transactionUpdated
(state: TransactionState, errorCode: ErrorCode | undefined, errorText: string | undefined, transactionIdentifi
src/ts/platforms/apple-appstore/appstore-bridge.ts:549
↓ 1 callers
Method
trigger
@internal
www/store.js:2726
↓ 1 callers
Method
triggerError
* Trigger an error event. * * @internal
www/store.js:2480
↓ 1 callers
Method
triggerError
* Trigger an error event. * * @internal
src/ts/store.ts:928
↓ 1 callers
Function
updatePurchases
(receipt: CdvPurchase.Receipt)
src/example/example.ts:185
↓ 1 callers
Function
updateUI
(product: CdvPurchase.Product)
src/example/example.ts:193
↓ 1 callers
Method
upsertProduct
(product)
www/store.js:7741
↓ 1 callers
Method
upsertProduct
(product: CdvPurchase.Product)
src/ts/platforms/iaptic-js/iapticjs-adapter.ts:94
↓ 1 callers
Method
verify
(transaction: Transaction)
src/ts/transaction.ts:10
↓ 1 callers
Function
warnIfDeprecatedAdditionalUsername
(log: Logger, additionalData: CdvPurchase.AdditionalData | undefined)
src/ts/platforms/apple-appstore/appstore-adapter.ts:967
↓ 1 callers
Function
warnIfDeprecatedAdditionalUsername
(log: Logger, additionalData: CdvPurchase.AdditionalData | undefined)
src/ts/platforms/google-play/googleplay-adapter.ts:638
↓ 1 callers
Method
when
* Register event callbacks. * * Events overview: * - `productUpdated`: Called when product metadata is loaded from the stor
www/store.js:2059
↓ 1 callers
Method
when
* Register event callbacks. * * Events overview: * - `productUpdated`: Called when product metadata is loaded from the stor
src/ts/store.ts:492
↓ 1 callers
Function
withObfuscatedAccountId
* Return a copy of `additionalData` with `googlePlay.accountId` populated * from `store.applicationUsername` (via the configured obfuscator)
www/store.js:6683
↓ 1 callers
Function
withObfuscatedAccountId
* Return a copy of `additionalData` with `googlePlay.accountId` populated * from `store.applicationUsername` (via the configured obfuscator)
src/ts/platforms/google-play/googleplay-adapter.ts:651
Method
acknowledgePurchase
(success: () => void, fail: ErrorCallback, purchaseToken: string)
www/store.d.ts:4860
Method
acknowledgePurchase
(success, fail, purchaseToken)
www/store.js:6821
Method
acknowledgePurchase
(success, fail, purchaseToken)
www/store.js:7068
Method
acknowledgePurchase
Acknowledge a purchase. CRITICAL 6: store PluginCall and resolve in async callback.
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:683
Method
acknowledgePurchase
(success: () => void, fail: ErrorCallback, purchaseToken: string)
src/ts/platforms/google-play/googleplay-bridge.ts:308
Method
acknowledgePurchase
(success: () => void, fail: ErrorCallback, purchaseToken: string)
src/ts/platforms/google-play/googleplay-bridge-capacitor.ts:138
Method
add
(receipt)
www/store.js:504
Method
add
Register a callback to be called when the plugin is ready.
www/store.js:1357
Method
add
(product)
www/store.js:1393
Method
add
(product: IRegisterProduct | Test.IRegisterTestProduct | (IRegisterProduct | Test.IRegisterTestProduct)[])
src/ts/internal/register.ts:46
Method
add
Register a callback to be called when the plugin is ready.
src/ts/internal/ready.ts:24
Method
add
(receipt: Receipt)
src/ts/validator/validator.ts:26
Method
add
Add a receipt to the validation queue. It'll get validated after a few milliseconds.
src/ts/validator/validator.ts:102
Function
ajax
* Simplified version of jQuery's ajax method based on XMLHttpRequest. * * Uses cordova's http plugin when installed. *
www/store.js:8807
Function
ajax
(log: Logger, options: Ajax.Options<T>)
src/ts/utils/ajax.ts:54
Function
ajaxDone
(response)
www/store.js:8880
Function
ajaxDone
(response: any)
src/ts/utils/ajax.ts:127
Method
analyzeReceipt
(receipt, requests)
www/store.js:197
Method
analyzeReceipt
(receipt: VerifiedReceipt, requests: AppleAppStore.DiscountEligibilityRequest[])
src/ts/iaptic.ts:120
Method
appStoreDiscountEligibilityDeterminer
* Determine the eligibility of discounts based on the content of the application receipt. * * The secret sauce used here is to wait
www/store.js:167
Method
appStoreDiscountEligibilityDeterminer
* Determine the eligibility of discounts based on the content of the application receipt. * * The secret sauce used here is to wait for vali
src/ts/iaptic.ts:86
Function
appStoreRedemptionSheet
()
src/example/example.ts:254
Method
approved
Register a function called when a transaction is approved.
www/store.d.ts:1683
Method
approved
(callback)
www/store.js:2713
Method
approved
(callback: Callback<Transaction>)
src/ts/payment-request.ts:18
Function
asyncDelay
@internal
www/store.js:8979
Function
asyncDelay
(milliseconds: number)
src/ts/utils/debounce.ts:41
Method
braintreeClientTokenProvider
* Provides a client token generated on iaptic's servers * * Can be passed to the Braintree Adapter at initialization. *
www/store.js:137
Method
braintreeClientTokenProvider
* Provides a client token generated on iaptic's servers * * Can be passed to the Braintree Adapter at initialization. * * @example
src/ts/iaptic.ts:55
Method
braintreePlugin
()
www/store.js:5945
Method
braintreePlugin
()
src/ts/platforms/braintree/braintree-bridge-ios.ts:160
Method
buy
(success: () => void, fail: ErrorCallback, productId: string, additionalData: CdvPurchase.AdditionalData)
www/store.d.ts:4857
Method
buy
(success, fail, productId, additionalData)
www/store.js:6791
Method
buy
(success, fail, productId, additionalData)
www/store.js:7042
Method
buy
Initiate a purchase flow (INAPP).
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:607
Method
buy
(success: () => void, fail: ErrorCallback, productId: string, additionalData: CdvPurchase.AdditionalData)
src/ts/platforms/google-play/googleplay-bridge.ts:282
Method
buy
(success: () => void, fail: ErrorCallback, productId: string, additionalData: CdvPurchase.
src/ts/platforms/google-play/googleplay-bridge-capacitor.ts:102
Method
buyFailed
(message, code)
www/store.js:6507
Method
buyFailed
(message: string, code?: ErrorCode)
src/ts/platforms/google-play/googleplay-adapter.ts:495
Method
buySuccess
()
www/store.js:6506
← previous
next →
501–600 of 1,331, ranked by callers