Type alias MakePurchaseParamsInput

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

Type declaration

Type declaration

  • Optional android?: AdaptyAndroidSubscriptionUpdateParameters

    Deprecated

    Use the new parameter structure instead

    Example

    // 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
    obfuscatedAccountId: 'account_123',
    obfuscatedProfileId: 'profile_456'
    }
    });

    Platform

    android

Generated using TypeDoc