react-native-adapty - v3.15.2
    Preparing search index...

    Type Alias MakePurchaseParamsInput

    MakePurchaseParamsInput:
        | { android?: AdaptyAndroidPurchaseParams }
        | { android?: AdaptyAndroidSubscriptionUpdateParameters }

    Type Declaration

    • { android?: AdaptyAndroidPurchaseParams }
    • { android?: AdaptyAndroidSubscriptionUpdateParameters }
      • Optionalandroid?: AdaptyAndroidSubscriptionUpdateParameters

        Use the new parameter structure instead

        // OLD (deprecated):
        makePurchase(product, {
        android: {
        oldSubVendorProductId: 'old_product_id',
        prorationMode: 'charge_prorated_price',
        isOfferPersonalized: true
        }
        });

        // NEW:
        makePurchase(product, {
        android: {
        subscriptionUpdateParams: {
        oldSubVendorProductId: 'old_product_id',
        prorationMode: 'charge_prorated_price'
        },
        isOfferPersonalized: true, // Note: moved to upper level
        }
        });

        android