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
↓ 6 callers
Method
run
Run validation for all receipts in the queue
www/store.js:570
↓ 6 callers
Function
setCapacitorDevice
(plugin: { getInfo?: () => Promise<any>, getId?: () => Promise<any> })
tests/validator-deviceinfo.test.ts:14
↓ 6 callers
Function
windowsStoreError
(code, message, productId)
www/store.js:8786
↓ 6 callers
Function
windowsStoreError
(code: ErrorCode, message: string, productId: string | null)
src/ts/platforms/windows-store/windows-adapter.ts:49
↓ 5 callers
Function
captureRequestBody
(platform: CdvPurchase.Platform, store: CdvPurchase.Store)
tests/validator-request-body.test.ts:44
↓ 5 callers
Method
checkSupport
* Returns true if the platform supports the given functionality.
src/ts/types.ts:207
↓ 5 callers
Method
getStorefront
(success: (countryCode: string) => void, fail: ErrorCallback)
src/ts/platforms/google-play/googleplay-bridge-interface.ts:43
↓ 5 callers
Method
isSupported
Returns true on Android, the only platform supported by this Braintree bridge
www/store.js:5659
↓ 5 callers
Function
log
(verbosity: boolean | LogLevel, level: LogLevel, prefix: string, o: any)
src/ts/log.ts:135
↓ 5 callers
Function
logAndFail
(code)
src/windows/InAppPurchaseProxy.js:448
↓ 5 callers
Function
makeReceipt
(tx: Partial<CdvPurchase.Transaction>)
tests/local-receipts.test.ts:16
↓ 5 callers
Method
ready
* Register a callback to be called when the plugin is ready. * * This happens when all the platforms are initialized and their produ
www/store.js:2030
↓ 5 callers
Method
refreshWith
* Refresh the cached value for a given adapter. * * The returned promise: * - resolves when the adapter respo
src/ts/internal/storefronts.ts:38
↓ 5 callers
Method
register
* Register a product. * * @example * store.register([{ * id: 'subscription1', * type: Product
www/store.js:1942
↓ 5 callers
Method
resolve
Call all registered callbacks with the given value
src/ts/internal/promise-like.ts:20
↓ 5 callers
Function
runValidator
(payload: unknown)
tests/validator-response-validation.test.ts:49
↓ 5 callers
Method
warn
* Logs a warning message, only if `store.verbosity` >= store.WARNING
www/store.js:278
↓ 5 callers
Method
warn
* Logs a warning message, only if `store.verbosity` >= store.WARNING
src/ts/log.ts:68
↓ 4 callers
Method
acknowledgePurchase
Acknowledge a purchase (Android)
capacitor/src/definitions.ts:57
↓ 4 callers
Function
add32
(r, n)
www/store.js:7513
↓ 4 callers
Function
add32
(r: number, n: number)
src/ts/utils/md5.ts:20
↓ 4 callers
Method
approved
Register a function called when a transaction is approved.
src/ts/types.ts:395
↓ 4 callers
Method
areSubscriptionsSupported
()
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:463
↓ 4 callers
Method
areSubscriptionsSupported
Checks if subscriptions are supported for current client <p>Note: This method does not automatically retry for RESULT_SERVICE_DISCONNECTED. It is only
src/android/cc/fovea/PurchasePlugin.java:518
↓ 4 callers
Method
buy
(success: () => void, fail: ErrorCallback, productId: string, additionalData: CdvPurchase.
src/ts/platforms/google-play/googleplay-bridge-interface.ts:21
↓ 4 callers
Method
callPaymentMonitor
(status, code, message)
www/store.js:3363
↓ 4 callers
Method
callPaymentMonitor
(status: PaymentMonitorStatus, code?: ErrorCode, message?: string)
src/ts/platforms/apple-appstore/appstore-adapter.ts:279
↓ 4 callers
Function
complexShift
(r, n, e, t, o, u, shiftFunction)
www/store.js:7516
↓ 4 callers
Function
complexShift
(r: number, n: number, e: number, t: number, o: number, u: number, shiftFunction: ShiftFunction)
src/ts/utils/md5.ts:24
↓ 4 callers
Function
extendAdditionalData
(ad)
www/store.js:6859
↓ 4 callers
Method
finishDuplicate
Finish a duplicate subscription transaction at the native level so StoreKit won't re-deliver it
src/ts/internal/adapter-listener.ts:14
↓ 4 callers
Method
getOffer
* Find and return an offer for this product from its id * * If id isn't specified, returns the first offer. * * @p
www/store.js:426
↓ 4 callers
Method
getPurchases
Query existing purchases
capacitor/src/definitions.ts:19
↓ 4 callers
Method
getPurchases
(success: () => void, fail: ErrorCallback)
src/ts/platforms/google-play/googleplay-bridge-interface.ts:19
↓ 4 callers
Method
init
Initialize the billing client
capacitor/src/definitions.ts:10
↓ 4 callers
Method
init
(success: () => void, fail: ErrorCallback, options: Options)
src/ts/platforms/google-play/googleplay-bridge-interface.ts:14
↓ 4 callers
Method
isAvailable
Check if the SK2 extension plugin is installed
www/store.js:4330
↓ 4 callers
Method
loadReceipts
* Load the receipts
src/ts/types.ts:159
↓ 4 callers
Method
loadReceipts
(callback: (receipt: ApplicationReceipt) => void, errorCb: (code: ErrorCode, mess
src/ts/platforms/apple-appstore/appstore-bridge-interface.ts:45
↓ 4 callers
Method
manageBilling
()
src/ts/platforms/google-play/googleplay-bridge-interface.ts:39
↓ 4 callers
Method
manageSubscriptions
()
src/ts/platforms/google-play/googleplay-bridge-interface.ts:37
↓ 4 callers
Method
numValidationRequests
()
src/ts/internal/receipts-monitor.ts:10
↓ 4 callers
Method
numValidationResponses
()
src/ts/internal/receipts-monitor.ts:11
↓ 4 callers
Method
obfuscateUsername
* Obfuscate the application username according to the configured obfuscation strategy. * * See {@link Obfuscator} for the per-mode o
src/ts/store.ts:145
↓ 4 callers
Method
onPriceChangeConfirmationResult
(result)
www/store.js:6482
↓ 4 callers
Method
onPriceChangeConfirmationResult
(result: "OK" | "UserCanceled" | "UnknownProduct")
src/ts/platforms/google-play/googleplay-adapter.ts:469
↓ 4 callers
Method
onPurchasesUpdated
* Called when the platform reports updates for some purchases * * Notice that purchases can be removed from the array, we sh
www/store.js:6430
↓ 4 callers
Method
onPurchasesUpdated
* Called when the platform reports updates for some purchases * * Notice that purchases can be removed from the array, we s
src/ts/platforms/google-play/googleplay-adapter.ts:413
↓ 4 callers
Method
run
Run validation for all receipts in the queue
src/ts/validator/validator.ts:112
↓ 4 callers
Method
sendToListener
Send a message to the javascript bridge (GooglePlay.Bridge). @param type Message type / identifer. @param data Message arguments.
src/android/cc/fovea/PurchasePlugin.java:194
↓ 4 callers
Method
success
()
src/ts/platforms/google-play/googleplay-adapter.ts:476
↓ 4 callers
Method
toJSON
(final List<Purchase> purchaseList)
src/android/cc/fovea/PurchasePlugin.java:400
↓ 4 callers
Method
trigger
@internal
src/ts/payment-request.ts:36
↓ 3 callers
Method
acknowledgePurchase
(success: () => void, fail: ErrorCallback, purchaseToken: string)
src/ts/platforms/google-play/googleplay-bridge-interface.ts:30
↓ 3 callers
Method
codeToString
(int code)
src/android/cc/fovea/PurchasePlugin.java:719
↓ 3 callers
Method
failed
(callback: Callback<IError>)
src/ts/payment-request.ts:6
↓ 3 callers
Function
formatDurationEN
(iso?: string, options?: {omitOne?: boolean})
src/ts/utils/format-duration.ts:17
↓ 3 callers
Method
getAvailableProducts
Query available products
capacitor/src/definitions.ts:13
↓ 3 callers
Method
getAvailableProducts
(inAppSkus: string[], subsSkus: string[], success: (validProducts: (InApp
src/ts/platforms/google-play/googleplay-bridge-interface.ts:33
↓ 3 callers
Method
getLastResponseCode
()
capacitor/android/src/main/java/cc/fovea/iap/PurchasePlugin.java:149
↓ 3 callers
Method
getLastResponseCode
Last response code from the billing client. @return The last response code from the billing client.
src/android/cc/fovea/PurchasePlugin.java:149
↓ 3 callers
Method
getOffer
(id)
www/store.js:7165
↓ 3 callers
Method
getOffer
(id: string)
src/ts/platforms/google-play/googleplay-products.ts:48
↓ 3 callers
Method
getPurchases
Refresh purchases from GooglePlay
www/store.js:6485
↓ 3 callers
Method
getPurchases
Refresh purchases from GooglePlay
src/ts/platforms/google-play/googleplay-adapter.ts:473
↓ 3 callers
Function
hashStep
(inOutVec4, strAsInts, shiftFunction)
www/store.js:7529
↓ 3 callers
Function
hashStep
(inOutVec4: [number, number, number, number], strAsInts: number[], shiftFunction?: ShiftFunction | undefined)
src/ts/utils/md5.ts:39
↓ 3 callers
Method
incrResponsesCounter
()
www/store.js:541
↓ 3 callers
Method
incrResponsesCounter
()
src/ts/validator/validator.ts:80
↓ 3 callers
Method
isAvailable
Check if the SK2 extension plugin is installed
src/ts/platforms/apple-appstore/appstore-bridge-sk2.ts:85
↓ 3 callers
Method
isOwned
Return true if a product is owned
www/store.js:2898
↓ 3 callers
Method
isOwned
Return true if a product is owned
src/ts/internal/local-receipts.ts:31
↓ 3 callers
Method
isReady
true if the plugin is initialized and ready
src/ts/store.ts:464
↓ 3 callers
Method
isSupported
()
src/ts/platforms/braintree/braintree-adapter.ts:212
↓ 3 callers
Method
length
()
src/ts/validator/validator.ts:18
↓ 3 callers
Method
load
Load product details (iOS)
capacitor/src/definitions.ts:67
↓ 3 callers
Method
loadAppStoreReceipt
Promisified loading of the AppStore receipt
www/store.js:3581
↓ 3 callers
Method
loadAppStoreReceipt
Promisified loading of the AppStore receipt
src/ts/platforms/apple-appstore/appstore-adapter.ts:526
↓ 3 callers
Function
makeLogger
()
tests/validator-request-body.test.ts:7
↓ 3 callers
Function
makeLogger
()
tests/validator-response-validation.test.ts:7
↓ 3 callers
Method
presentCodeRedemptionSheet
(callback?: Callback<any>)
src/ts/platforms/apple-appstore/appstore-bridge-interface.ts:42
↓ 3 callers
Method
refresh
(purchases: ModuleIapticJS.Purchase[])
src/ts/platforms/iaptic-js/iapticjs-adapter.ts:34
↓ 3 callers
Method
refreshReceipts
Refresh App Store receipts (iOS)
capacitor/src/definitions.ts:90
↓ 3 callers
Method
refreshReceipts
(successCb: (receipt: ApplicationReceipt) => void, errorCb: (code: ErrorCode,
src/ts/platforms/apple-appstore/appstore-bridge-interface.ts:43
↓ 3 callers
Method
register
* Register a product. * * @example * store.register([{ * id: 'subscription1', * type: Product
src/ts/store.ts:364
↓ 3 callers
Method
removeTransactionInProgress
Remove a transaction from the pseudo receipt
www/store.js:3305
↓ 3 callers
Method
removeTransactionInProgress
Remove a transaction from the pseudo receipt
src/ts/platforms/apple-appstore/appstore-adapter.ts:217
↓ 3 callers
Method
retry
(fn)
www/store.js:3019
↓ 3 callers
Method
retry
(fn: F)
src/ts/internal/retry.ts:40
↓ 3 callers
Function
setCordovaDevice
(device: any)
tests/validator-deviceinfo.test.ts:10
↓ 3 callers
Function
step
(result)
www/store.js:7
↓ 3 callers
Method
unverified
Register a function called when a receipt failed validation.
src/ts/types.ts:407
↓ 3 callers
Function
updateVerifiedPurchases
(tr)
www/store.js:8095
↓ 3 callers
Function
updateVerifiedPurchases
(tr: Transaction)
src/ts/platforms/test/test-adapter.ts:11
↓ 3 callers
Method
upsertTransaction
Insert or update a transaction in the pseudo receipt, based on data collected from the native side
www/store.js:3310
↓ 3 callers
Method
upsertTransaction
Insert or update a transaction in the pseudo receipt, based on data collected from the native side
src/ts/platforms/apple-appstore/appstore-adapter.ts:223
↓ 3 callers
Method
upsertTransactionInProgress
(productId, state)
www/store.js:3285
↓ 3 callers
Method
upsertTransactionInProgress
(productId: string, state: TransactionState)
src/ts/platforms/apple-appstore/appstore-adapter.ts:196
↓ 3 callers
Function
virtualTransactionId
* In the first stages of a purchase, the transaction doesn't have an identifier. * * In the meantime, we generate a virtual transact
www/store.js:3195
↓ 3 callers
Function
virtualTransactionId
* In the first stages of a purchase, the transaction doesn't have an identifier. * * In the meantime, we generate a virtual transact
src/ts/platforms/apple-appstore/appstore-adapter.ts:77
← previous
next →
101–200 of 1,331, ranked by callers