1.1.2 • Published 12 months ago
@dicty/payment v1.1.2
@dicty/payment
Dicty Stripe plugin
Install
npm install @dicty/payment
npx cap sync
API
isAppleInAppPurchaseAvailable()
getAppleInAppPurchaseProducts(...)
buyAppleInAppPurchase(...)
restoreAppleInAppPurchase()
getAppleInAppPurchaseReceipt()
isGooglePayAvailable()
handleGooglePay(...)
- Interfaces
- Enums
isAppleInAppPurchaseAvailable()
isAppleInAppPurchaseAvailable() => Promise<void>
getAppleInAppPurchaseProducts(...)
getAppleInAppPurchaseProducts(opts: GetAppleInAppPurchaseProductsOptions) => Promise<GetAppleInAppPurchaseProductsResult>
Param | Type |
---|---|
opts | GetAppleInAppPurchaseProductsOptions |
Returns: Promise<GetAppleInAppPurchaseProductsResult>
buyAppleInAppPurchase(...)
buyAppleInAppPurchase(opts: BuyAppleInAppPurchaseOptions) => Promise<BuyAppleInAppPurchaseResult>
Param | Type |
---|---|
opts | BuyAppleInAppPurchaseOptions |
Returns: Promise<BuyAppleInAppPurchaseResult>
restoreAppleInAppPurchase()
restoreAppleInAppPurchase() => Promise<RestoreAppleInAppPurchaseResult>
Returns: Promise<RestoreAppleInAppPurchaseResult>
getAppleInAppPurchaseReceipt()
getAppleInAppPurchaseReceipt() => Promise<GetAppleInAppPurchaseReceiptResult>
Returns: Promise<GetAppleInAppPurchaseReceiptResult>
isGooglePayAvailable()
isGooglePayAvailable() => Promise<void>
handleGooglePay(...)
handleGooglePay(opts: GooglePayOptions) => Promise<GooglePayResult>
Param | Type |
---|---|
opts | GooglePayOptions |
Returns: Promise<GooglePayResult>
Interfaces
GetAppleInAppPurchaseProductsResult
Prop | Type |
---|---|
products | AppleInAppPurchaseProduct[] |
AppleInAppPurchaseProduct
Prop | Type |
---|---|
id | string |
title | string |
description | string |
price | number |
priceLocale | string |
subscriptionPeriod | { value: number; unit: AppleSubscriptionPeriodUnit; } |
GetAppleInAppPurchaseProductsOptions
Prop | Type |
---|---|
id | string[] |
BuyAppleInAppPurchaseResult
Prop | Type |
---|---|
status | AppleInAppPurchaseStatus |
productIdentifier | string |
transactionIdentifier | string |
BuyAppleInAppPurchaseOptions
Prop | Type |
---|---|
id | string |
RestoreAppleInAppPurchaseResult
Prop | Type |
---|---|
status | AppleInAppPurchaseStatus |
productIdentifier | string |
transactionIdentifier | string |
GetAppleInAppPurchaseReceiptResult
Prop | Type |
---|---|
receiptData | string |
GooglePayResult
Prop | Type |
---|---|
result | GooglePayResults |
GooglePayOptions
Prop | Type |
---|---|
clientSecret | string |
Enums
AppleSubscriptionPeriodUnit
Members |
---|
Day |
Week |
Month |
Year |
AppleInAppPurchaseStatus
Members | Value |
---|---|
Completed | 'completed' |
Restored | 'restored' |
Cancelled | 'cancelled' |
Failed | 'failed' |
GooglePayResults
Members | Value |
---|---|
Completed | 'completed' |
Failed | 'failed' |
1.1.2
12 months ago
1.1.1
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.19
1 year ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago