Partner Store-specific Code?

Hi,

I am using Unity IAP to build for both Google Play and UDP.

How can I write partner store-specific code? I have the simple scenario where I have a “Rate Game” button and when pressed it opens the Google Play page of my game so the user can rate it.

But if I build for UDP then there are several stores, each having its own link. So I need to update the URL the button opens when clicked according to the respective stores.

Any help is appreciated.
Thanks!

Nevermind… I came up with the solution to compare to the Application.Identifier (app package name)

I think the “Possible udpStore values” in the below doc can help you.

https://docs.unity3d.com/Packages/com.unity.purchasing.udp@1.3/manual/service-interoperability.html

Thanks!