• 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

Processing Refunds?

Scheduled Pinned Locked Moved APIs
refundstransaction log
6 Posts 3 Posters 517 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.
  • D Offline
    D Offline
    Davis Knox
    wrote on last edited by
    #1

    Hi there.

    I am currently making a mobile application that utilizes Unity's IAP library to manage IAP. I also use you guys for data storage and receipt validation.

    I am currently testing refund scenarios and am not seeing much on Braincloud API in regards to refunds.

    I currently call a cloud code script from my client that performs a VerifyPurchase call to validate the receipt, and then I can ensure receipt has purchaseState:1 (GooglePlay receipt). At this point I can revoke the purchase in the cloud code script.

    I am noticing that with this method, the cancelled receipt does not show up in the user's Transaction log, only the original purchase receipt shows up (purchaseState:0).

    Is there a better way to do this?

    Thanks,
    Davis

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #2

    Hi Davis,

    brainCloud does not currently support processing of refunds.

    You could potentially create an owned custom entity collection to store the details of refunded collections in - so that you would have an entry against that user.

    Note - you could also use a user entity for such data - but custom entities have the advantage of being globally searchable -- i.e. you can easily search for all refunds in the system.

    Note - global entities are less ideal - they don't scale as well. Not recommended for data associated with users that could conceivably scale over time.

    Paul.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    Davis Knox
    wrote on last edited by
    #3
    This post is deleted!
    1 Reply Last reply
    0
  • D Offline
    D Offline
    Davis Knox
    wrote on last edited by
    #4

    Thanks for the response Paul.

    So using "User Entities" I can record the refund receipt with the User, but it won't show up in the transaction log in the portal.

    Via Custom Entities I could have a globally searchable refund receipt, but I need to pay for a Plus plan to get this functionality, and still I assume it won't show up in transaction view.

    Just confirming that there's no way for this to show up in the user transaction log in the portal right now?

    -Davis

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #5

    Apologies but no - there isn't currently a way to have refunds appear in the transaction logs for users in the portal.

    Paul.

    A 1 Reply Last reply
    0
  • A Offline
    A Offline
    Ali Raza
    replied to Paul Winterhalder on last edited by
    #6

    @Paul-Winterhalder It'd be great if we can have this info. +1

    1 Reply Last reply
    0

  • Login

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