mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-21 17:36:27 +08:00
feat(in-app-purchase-2): update validator for custom headers (#4262)
This commit is contained in:
parent
1b45462542
commit
8b826e3c1b
@ -745,7 +745,13 @@ export class InAppPurchase2 extends AwesomeCordovaNativePlugin {
|
|||||||
products: IAPProducts;
|
products: IAPProducts;
|
||||||
|
|
||||||
@CordovaProperty()
|
@CordovaProperty()
|
||||||
validator: string | ((url: string | IAPProduct, callback: Function) => void);
|
validator:
|
||||||
|
| string
|
||||||
|
| ((url: string | IAPProduct, callback: Function) => void)
|
||||||
|
| {
|
||||||
|
url: string;
|
||||||
|
headers?: { [token: string]: string };
|
||||||
|
};
|
||||||
|
|
||||||
@CordovaProperty()
|
@CordovaProperty()
|
||||||
applicationUsername: string | (() => string);
|
applicationUsername: string | (() => string);
|
||||||
@ -918,5 +924,8 @@ export class InAppPurchase2 extends AwesomeCordovaNativePlugin {
|
|||||||
|
|
||||||
/** Open the subscription price change notification workflow. (Play) See: https://developer.android.com/google/play/billing/subscriptions#price-change-communicate */
|
/** Open the subscription price change notification workflow. (Play) See: https://developer.android.com/google/play/billing/subscriptions#price-change-communicate */
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
launchPriceChangeConfirmationFlow(productId: string, callback: (status: 'OK' | 'UnknownProduct' | 'UserCanceled') => void): void {};
|
launchPriceChangeConfirmationFlow(
|
||||||
|
productId: string,
|
||||||
|
callback: (status: 'OK' | 'UnknownProduct' | 'UserCanceled') => void
|
||||||
|
): void {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user