Inapp Purchase

Discussion in 'How Can I...?' started by dennisms, Sep 10, 2020.

  1. dennisms

    dennisms Boxer

    Joined:
    Jan 18, 2020
    Messages:
    22
    Likes Received:
    3
    Hello guys!

    I want to make an inapp purchase for coins using a store identifier.

    How can i implement this feature in Buildbox 3?

    Thank you very much!
     
  2. Serryhoofd

    Serryhoofd Boxer

    Joined:
    Apr 1, 2017
    Messages:
    30
    Likes Received:
    2
    Hi @dennisms , already got the solution? In BB2 it was easy, but can`t get it to work..
     
  3. dennisms

    dennisms Boxer

    Joined:
    Jan 18, 2020
    Messages:
    22
    Likes Received:
    3
    Hello!
    This is my custom purchase button: purchase button.png
     
  4. Serryhoofd

    Serryhoofd Boxer

    Joined:
    Apr 1, 2017
    Messages:
    30
    Likes Received:
    2
    Thanks for your message, but it still doesn`t work on my side. Getting this message:
    JS Error [asset: 750 coins world, component: Add Coin, line: 25] - TypeError: this.scene(...) is null

    Any idea?
     
  5. dennisms

    dennisms Boxer

    Joined:
    Jan 18, 2020
    Messages:
    22
    Likes Received:
    3
    Hello

    I have this workaround for the "Add Point" to work properly.
    Just insert a world between the "START" scene and your Main Menu UI like this:
    Screen Shot 2020-10-14 at 11.07.58 AM.png
    This is because the AddPoint uses this.scene().... properties.
    Hope this works for you!
     
    Serryhoofd likes this.
  6. Serryhoofd

    Serryhoofd Boxer

    Joined:
    Apr 1, 2017
    Messages:
    30
    Likes Received:
    2
    Thanks, the error is gone :)

    Only it still doesn`t work when I test it in Testflight: Transaction Error. The no ads works perfectly, but the iap not.

    Any idea? (Sorry :) )
     
  7. dennisms

    dennisms Boxer

    Joined:
    Jan 18, 2020
    Messages:
    22
    Likes Received:
    3
    Hello

    Maybe this is an issue regarding the iap store identifier...
    Check if the iap store id stored in the Purchase box matches the one configured in appstore connect.
     

Share This Page