Discounted offer from Google Play not applied (one-time product)
We were recently trying to do a promotional offer via Google Play but struggled to get the discounted price to work.
From what I can tell, on Google Play Console, it should be active and available:
This is a flat 33% discount for all regions that I set.
However, there is no mention of any discounts in the response to fetchProducts(), and the discounted price is not used:
[
{
"currency": "EUR",
"debugDescription": null,
"description": "For testing purposes only",
"displayName": "Test purchase",
"displayPrice": "€11.99",
"id": "lih.uptrip.test_product",
"nameAndroid": "Test purchase",
"oneTimePurchaseOfferDetailsAndroid": {
"formattedPrice": "€11.99",
"priceAmountMicros": "11990000",
"priceCurrencyCode": "EUR"
},
"platform": "android",
"price": 11.99,
"subscriptionOfferDetailsAndroid": undefined,
"title": "Test purchase (Uptrip)",
"type": "in-app"
}
]
Should this work without additional steps on our end? I have been looking through the docs and other issues but could not find any mention of this mechanism at all. I've tried getPromotedProductIOS() but the response is null (which makes sense, given the naming).
Environment
"react-native": "0.79.5", "react-native-iap": "^14.5.0", "react-native-nitro-modules": "^0.31.10",
@arechsteiner Thanks for the issue I just catched that oneTimePurchaseOfferDetailsAndroid could be a list and not single object. I am planning to change this soon
@arechsteiner I’ve worked on the fix and am currently implementing the remaining pieces from #3103.
You can test the latest update via 14.5.1-rc.1 by installing:
npm install react-native-iap@next
Please let me know if this resolves the issue on your side.
@arechsteiner Just released 14.6.0-rc.2 which is updates in #3103. This will be released next week or later.
@hyochan Thank you for the quick turnaround. I didn't manage to test it yet because I had some Kotlin error when building, and I have to work on something different for now.
Will test/implement as soon as I can.
@arechsteiner Thanks! I've just released 14.6.0 now! You can try newer version without next tag!
https://github.com/hyochan/react-native-iap/actions/runs/20266328254