1.1.2 • Published 12 months ago

@dicty/payment v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@dicty/payment

Dicty Stripe plugin

Install

npm install @dicty/payment
npx cap sync

API

isAppleInAppPurchaseAvailable()

isAppleInAppPurchaseAvailable() => Promise<void>

getAppleInAppPurchaseProducts(...)

getAppleInAppPurchaseProducts(opts: GetAppleInAppPurchaseProductsOptions) => Promise<GetAppleInAppPurchaseProductsResult>
ParamType
optsGetAppleInAppPurchaseProductsOptions

Returns: Promise<GetAppleInAppPurchaseProductsResult>


buyAppleInAppPurchase(...)

buyAppleInAppPurchase(opts: BuyAppleInAppPurchaseOptions) => Promise<BuyAppleInAppPurchaseResult>
ParamType
optsBuyAppleInAppPurchaseOptions

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>
ParamType
optsGooglePayOptions

Returns: Promise<GooglePayResult>


Interfaces

GetAppleInAppPurchaseProductsResult

PropType
productsAppleInAppPurchaseProduct[]

AppleInAppPurchaseProduct

PropType
idstring
titlestring
descriptionstring
pricenumber
priceLocalestring
subscriptionPeriod{ value: number; unit: AppleSubscriptionPeriodUnit; }

GetAppleInAppPurchaseProductsOptions

PropType
idstring[]

BuyAppleInAppPurchaseResult

PropType
statusAppleInAppPurchaseStatus
productIdentifierstring
transactionIdentifierstring

BuyAppleInAppPurchaseOptions

PropType
idstring

RestoreAppleInAppPurchaseResult

PropType
statusAppleInAppPurchaseStatus
productIdentifierstring
transactionIdentifierstring

GetAppleInAppPurchaseReceiptResult

PropType
receiptDatastring

GooglePayResult

PropType
resultGooglePayResults

GooglePayOptions

PropType
clientSecretstring

Enums

AppleSubscriptionPeriodUnit

Members
Day
Week
Month
Year

AppleInAppPurchaseStatus

MembersValue
Completed'completed'
Restored'restored'
Cancelled'cancelled'
Failed'failed'

GooglePayResults

MembersValue
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