Skip to main content
Solved

Validity of the subscription showing different value for introductory offer on react native android.

  • September 1, 2021
  • 3 replies
  • 142 views

Forum|alt.badge.img+1

I have created subscription with annual introductory offer and I am trying to fetch that product to show the user current offering but I am receiving wrong data as the validity of the plans is showing in some minutes.

How can I show the user active introductory price for given subscription?
How can I show multiple offers with multiple offers?

I am using React native 0.64.2.

Best answer by ryan

Hey @Aniket Dalvi,

Sandbox subscriptions renew at an accelerated rate, so seeing 30min subscription durations is expected during testing. The durations of sandbox renewals are set by Apple / Google and outside of developer control.

The introductory price would also only be valid once, so if you’ve already made a test purchase with the introductory price, the expected behavior would be to see the actual price next time you go to buy. If you need to test the introductory price again you can try creating a new sandbox tester in Apple / Google.

Hope this helps clear things up!

View original
Did this post help you find an answer to your question?

3 replies

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • September 3, 2021

Hey Aniket!

Can you clarify what information is “different” for the introductory offer - what value are you expecting and what value are you receiving? 

You should be able to use the introPrice property on the Package to display the introductory price.


Forum|alt.badge.img+1
  • Author
  • New Member
  • 2 replies
  • September 3, 2021

Hi Ryan,

I am facing few issues while displaying the subscription.

  •  I have created the subscriptions on the app store and play store with 1-year validity but on the app getting the validity of the same subscriptions 30 mins on android & 1 hour for iOS.
  •  This subscription has an introductory offer on android but I am getting the actual price on android with 30 minutes validity.

This is the following code I am using to display the product.

const offerings = await Purchases.getOfferings();
const purchase = await Purchases.purchasePackage(offerings.all[“identifier”].availablePackages[0]);

I am using react-native version 0.64.2


ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • Answer
  • September 3, 2021

Hey @Aniket Dalvi,

Sandbox subscriptions renew at an accelerated rate, so seeing 30min subscription durations is expected during testing. The durations of sandbox renewals are set by Apple / Google and outside of developer control.

The introductory price would also only be valid once, so if you’ve already made a test purchase with the introductory price, the expected behavior would be to see the actual price next time you go to buy. If you need to test the introductory price again you can try creating a new sandbox tester in Apple / Google.

Hope this helps clear things up!


Reply


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