You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

集成Google Pay的Android应用订阅价格调整技术问询:如何通过内部优惠券将20美元套餐降至17美元

Alright, let's break down how to apply that $3 discount to your Google Play subscription for specific users. Since you're using Google Pay (which integrates seamlessly with Google Play Billing), here are the most reliable, policy-compliant methods to adjust the subscription price to $17:

Google Play has native tools for handling discounts, which is the safest way to avoid policy violations and ensure smooth payment flow. Here's how to set it up:

  • Create the Discount Promotion in Google Play Console:
    1. Navigate to your app in Google Play Console, go to Monetization > Subscriptions.
    2. Select your $20 subscription plan, then switch to the Promotions tab.
    3. Click Create promotion, choose "Discount" as the promotion type, and set the discount amount to $3 (or 15% off, since 3/20 equals 15%).
    4. Under Eligibility, pick "Custom eligibility" to define which users get this discount—you can target user segments, upload a list of user IDs/emails, or use your backend to flag eligible users.
  • Redeem the Promotion in Your App:
    When eligible users navigate to the subscription screen, you'll need to fetch the promotion details and pass them to the BillingClient to apply the discount at checkout. Here's a Kotlin code snippet to handle this:
    // Fetch available promotions for the user
    val promotionQueryParams = QueryPromotionParams.newBuilder()
        .setProductIds(listOf("your_premium_subscription_id")) // Replace with your actual SKU
        .build()
    
    billingClient.queryPromotionDetailsAsync(promotionQueryParams) { billingResult, promotionDetails ->
        if (billingResult.responseCode == BillingClient.BillingResponseCode.OK && !promotionDetails.isNullOrEmpty()) {
            // Grab your $3 discount promotion
            val discountPromotion = promotionDetails.first()
            // Build purchase params with the promotion code
            val billingFlowParams = BillingFlowParams.newBuilder()
                .setSkuDetails(yourRegular20DollarSkuDetails)
                .setPromotionCode(discountPromotion.promotionCode)
                .build()
            // Launch the Google Pay billing flow with the discount applied
            billingClient.launchBillingFlow(activity, billingFlowParams)
        }
    }
    
2. Alternative: Create a Discounted Subscription SKU

If you need simpler control (e.g., a one-time fixed discount for a small group), you can create a separate subscription SKU priced at $17:

  • Set Up the Discounted SKU:
    In Google Play Console, add a new subscription plan with identical features to your $20 plan, but set the price to $17. Name it something like "Premium Subscription (Exclusive Discount)".
  • Show the Correct SKU to Eligible Users:
    In your app, check if the user qualifies for the discount (verify via your backend to prevent abuse). If they do, display the $17 SKU instead of the regular $20 plan. If not, show the standard subscription option.

    Note: This approach is less flexible—you’ll need to create a new SKU if you want to adjust the discount amount later.

Key Things to Remember
  • Policy Compliance: Never handle discounts outside of Google Play Billing—this violates Google's terms of service and can lead to app removal.
  • Security: Always verify user eligibility on your backend before applying any discount, to prevent unauthorized users from accessing the reduced price.
  • Testing: Use Google Play's Internal Testing or Closed Testing tracks to test the discount flow with test users before rolling it out to your full audience.

内容的提问来源于stack exchange,提问作者abdallah

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 21:32:32