• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Virtual Purchase

Scheduled Pinned Locked Moved Feature Suggestions
3 Posts 2 Posters 94 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    antony
    wrote on last edited by
    #1

    The API could benefit from adding a new 'Virtual Purchase' platform into Products.

    What the 'Virtual Purchase' platform would allow is to define a price for a product in virtual currency. This allow developers to implement virtual item purchasing using the exact same logic as any other purchase. It would make it much easier to implement things like a pack of coins that costs a number of gems or a virtual item that costs a number of coins for example.

    1 Reply Last reply
    0
  • J Offline
    J Offline
    JasonL bitHeads
    wrote on last edited by
    #2

    The SysRecordTransaction method should work for your needs. Refer to the provided link for more information -- https://docs-internal.braincloudservers.com/api/capi/appstore/sysrecordtransaction

    1 Reply Last reply
    0
  • A Offline
    A Offline
    antony
    wrote on last edited by
    #3

    Almost, but you can't define the price in virtual currency.

    The solution I came up with is to make a cloud script that purchases and then immediately sells a user item. The user item has a buyPrice and a sellPrice which effectively does the currency conversion.

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users