User Tag List

Results 1 to 9 of 9

Thread: Android In app purchase - how to show current price in string?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Android In app purchase - how to show current price in string?

    Hi all!

    I have 2 inapp purchases for an android game I'm trying to get to display the current price in a string.

    inappscreenshot.PNG

    In this screenshot I've got two strings on the same line. When I do ProductPrice$("In-app Android)",1) it shows the first product price perfectly, but when I do ProductPrice$("In-app Android)",2) it shows blank. (ignore the deactivated line, doesn't apply). What value is supposed to go in the number slot to grab the current price of a product? I was surprised 1 worked but 2 doesn't. I tried changing the value to the product ID and all other kinds of things but nothing seems to work. Anyone know how to get the price from the store to display on a string for android inapp purchases?

    Thanks so much for any help!!


    SOLVED:

    Happens way too often, figured it out after I posted lol!

    Here's the answer just in case someone else gets stuck on this!... Set alterable string to ProductPrice$(In-App Android)", (Val(ProductId$(In-App Android)",2)))

    This will grab it based on product ID :-)

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ok apparently my idea is a bit buggy. If I do this ProductPrice$(In-App Android)", (Val(ProductId$(In-App Android)",1))) for my first product and ProductPrice$(In-App Android)", (Val(ProductId$(In-App Android)",2))) for my second, it will show the price in my strings for both the second products.

    How do you guys show your product price??

    Thanks!

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Anyone have any advice? I'm sure it's been done before, displaying the current price. @Perry I know you have done a lot of tutorials for the inapp google play store, do you know how to do this by chance?

    Thanks a bunch!

  4. #4
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,392
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)
    @Beejers This is what I use, and shows the current price what's in google.

    https://www.dropbox.com/s/skgtwwo1s5...droid.MFA?dl=0

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yay! Thanks so much @Perry !! You're the best! (love these mentions btw - hehe)

  6. #6
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,392
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)
    hehe, your welcome

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    589
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Perry View Post
    @Beejers This is what I use, and shows the current price what's in google.

    https://www.dropbox.com/s/skgtwwo1s5...droid.MFA?dl=0
    Is this example/solution available anywhere else since the dropbox file is not?

  8. #8
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,392
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)
    ooh I switched from dropbox to one drive.

    HEre is a new link

    https://1drv.ms/u/s!AiFsZBUm7Hnr2g99AlqTGpGTV5m2

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    589
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Perry View Post
    ooh I switched from dropbox to one drive.

    HEre is a new link

    https://1drv.ms/u/s!AiFsZBUm7Hnr2g99AlqTGpGTV5m2
    Great, thank you!

Similar Threads

  1. Button with actual price and currency for Android
    By evi1ove in forum Android Export Module 2.5
    Replies: 0
    Last Post: 29th April 2018, 08:21 AM
  2. Help Android In app purchase
    By mouss1299 in forum Fusion 2.5
    Replies: 6
    Last Post: 16th April 2016, 07:29 AM
  3. Ouya IAP retrieve item price and try to display it as string causes crash!
    By BrashMonkey in forum Android Export Module 2.5
    Replies: 5
    Last Post: 9th October 2014, 02:49 PM
  4. command for current directory string?
    By Dave in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th February 2008, 10:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •