Skip to main content
Question

Paywall v2 String Variable


Forum|alt.badge.img

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
  • 574 replies
  • March 10, 2025

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
  • Author
  • New Member
  • 3 replies
  • March 10, 2025
Haley Pace wrote:

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
  • 574 replies
  • March 17, 2025

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
  • Author
  • New Member
  • 3 replies
  • March 18, 2025
Haley Pace wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings