mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
feat(purchases): update plugin to v0.0.5 (#2988)
* Updates to Cordova plugin 0.0.5 * Makes underlyingErrorMessage optional
This commit is contained in:
parent
c063652800
commit
7ea51fcf06
@ -52,7 +52,7 @@ import { Observable } from 'rxjs';
|
|||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* this.purchases.getEntitlements()
|
* this.purchases.getEntitlements()
|
||||||
* .subscribe(entitlements => )
|
* .subscribe(entitlements => ,
|
||||||
* error => );
|
* error => );
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
@ -67,7 +67,7 @@ import { Observable } from 'rxjs';
|
|||||||
* // Unlock content
|
* // Unlock content
|
||||||
* }
|
* }
|
||||||
* },
|
* },
|
||||||
* error => // Error making purchase. You can check error.userCancelled to check if user cancelled the purchase
|
* ({ error, userCancelled }) => // Error making purchase. You can check error.userCancelled to check if user cancelled the purchase
|
||||||
* );
|
* );
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
@ -271,7 +271,7 @@ export class Purchases extends IonicNativePlugin {
|
|||||||
* @param oldSkus {string[]} Optional array of skus you wish to upgrade from.
|
* @param oldSkus {string[]} Optional array of skus you wish to upgrade from.
|
||||||
* @param type {String} Optional type of product, can be inapp or subs. Subs by default
|
* @param type {String} Optional type of product, can be inapp or subs. Subs by default
|
||||||
*
|
*
|
||||||
* @return {Observable<MakePurchaseResponse>} An [RCError] is thrown when user cancels. error.usercancelled will be true if user cancelled
|
* @return {Observable<MakePurchaseResponse>} An [RCError] is thrown when user cancels. On error `usercancelled` will be true if user cancelled
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
@ -413,7 +413,6 @@ export interface RCMakePurchaseResponse {
|
|||||||
|
|
||||||
export interface RCError {
|
export interface RCError {
|
||||||
code: number;
|
code: number;
|
||||||
domain: string;
|
|
||||||
message: string;
|
message: string;
|
||||||
userCancelled?: string;
|
underlyingErrorMessage?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user