From c2b01e051086d87747597ac3554feaa8772a71d1 Mon Sep 17 00:00:00 2001 From: "Lincoln Baxter, III" Date: Sat, 21 May 2022 14:29:41 -0400 Subject: [PATCH] feat(in-app-purchase-2): add launchPriceChangeConfirmationFlow (#4127) See: https://github.com/j3k0/cordova-plugin-purchase/releases/tag/v11.0.0 --- .../plugins/in-app-purchase-2/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/in-app-purchase-2/index.ts b/src/@awesome-cordova-plugins/plugins/in-app-purchase-2/index.ts index fb12c97f..f1582a83 100644 --- a/src/@awesome-cordova-plugins/plugins/in-app-purchase-2/index.ts +++ b/src/@awesome-cordova-plugins/plugins/in-app-purchase-2/index.ts @@ -915,4 +915,8 @@ export class InAppPurchase2 extends AwesomeCordovaNativePlugin { /** Opens the Manage Billing page (AppStore, Play, Microsoft, ...), where the user can update his/her payment methods. */ @Cordova({ sync: true }) manageBilling(): void {} + + /** Open the subscription price change notification workflow. (Play) See: https://developer.android.com/google/play/billing/subscriptions#price-change-communicate */ + @Cordova({ sync: true }) + launchPriceChangeConfirmationFlow(productId: string, callback: (status: 'OK' | 'UnknownProduct' | 'UserCanceled') => void): void {}; }