Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • 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
  1. Home
  2. APIs
  3. Processing Refunds?

Processing Refunds?

Scheduled Pinned Locked Moved APIs
refundstransaction log
6 Posts 3 Posters 2.1k Views 1 Watching
  • 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
            • Paul WinterhalderP Paul Winterhalder

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

              Paul.

              A Offline
              A Offline
              Ali Raza
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

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