Skip to main content
Question

Paywall v2 String Variable

  • Mar 6, 2025 9:56 PM UTC
  • 4 replies
  • 399 views

Forum|alt.badge.img+3

I switched to V2 Paywall, I want to print “Try 7 Days Free & Subscribe” on the purchase button and I tried it like this: Try {{ product.offer_period_with_unit }} Free & Subscribe. This is not working, I want this variable to say 7 Days when monthly package is selected and 14 Days when annual package is selected.

This post has been closed for comments

4 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • Mar 10, 2025 8:11 PM UTC

Hi, can you try the variable {{product.offer_period_in_days}} instead? So do “Try {{ product.offer_period_in_days }} Days Free & Subscribe”


Forum|alt.badge.img+3
  • Author
  • New Member
  • Mar 10, 2025 8:48 PM UTC

Hi, can you try the variable {{product.offer_period_in_days}} instead? So do “Try {{ product.offer_period_in_days }} Days Free & Subscribe”

In fact, in the first example, the string I want in the editor writes the string I want, the variable does not come in the app. I also tried your suggestion but the result is the same


Forum|alt.badge.img+8
  • RevenueCat Staff
  • Mar 17, 2025 4:08 PM UTC

Hi, when setting that to the “Text field for an introductory offer” on the purchase button’s text component, I was able to get this working on my end. In your app, are you making sure to login with a user that is eligible for the offer? I would recommend creating a brand new Google Play licensed tester account with a new RevenueCat app user id to make sure they are eligible for the trial, and when you try this can you please enable RevenueCat debug logs here and send them to me? You could provide these in a support ticket here to avoid sharing any sensitive information.


Forum|alt.badge.img+3
  • Author
  • New Member
  • Mar 18, 2025 7:35 PM UTC

Hi, when setting that to the “Text field for an introductory offer” on the purchase button’s text component, I was able to get this working on my end. In your app, are you making sure to login with a user that is eligible for the offer? I would recommend creating a brand new Google Play licensed tester account with a new RevenueCat app user id to make sure they are eligible for the trial, and when you try this can you please enable RevenueCat debug logs here and send them to me? You could provide these in a support ticket here to avoid sharing any sensitive information.

Thanks for your support, I will try this again and report back