Skip to content
Sign Up For Free
BatchKeys License Key SaaS
  • Pricing
  • Try Demo
  • Docs
  • SupportExpand
    • Tickets
  • AboutExpand
    • Contact
  • Dashboard
BatchKeys License Key SaaS

Getting Started

11
  • Setting Up An Account
  • Your Dashboard
  • Generating Keys
  • Viewing And Editing Keys
  • Viewing/Editing An Individual Key’s Details
  • Bulk Deleting Keys
  • Importing Keys
  • Encoding And Decoding PHP
  • Handling Refunds
  • Unbanning A Valid End User
  • Requesting An Enterprise or Custom Plan

Integrations

14
  • Inserting Code Into Your App
  • Making API Calls
  • Receiving A Response
  • Example JSON Response
  • Assigning Keys To A Domain Name
  • Generating Unique UUIDs
  • Assigning Keys To A UUID
  • Checking Keys Daily Using A Cron Job
  • Checking Keys At Startup
  • Consuming And Topping Up Tokens For Token-Based Keys
  • Server-Side Proxy For Client-Side JavaScript Connections
  • Forms To Collect A Key
  • Adding BatchKeys To A WordPress Plugin
  • Adding BatchKeys To A WordPress Theme

Best Practices

13
  • Using Domain/UUID Settings To Upsell Your App
  • Staying Within Rate Limits
  • Handling Errors
  • Dealing With Connection Failures And Rechecks
  • Securing Keys
  • Working Around Hardware Changes With V5 UUIDs
  • Working Around V4 UUID Security Concerns
  • Creating Good Validation Forms
  • How We Use UUIDs To Secure Keys
  • A Note About Example Codes
  • Can We Create Custom Code For You?
  • Maximum Key Limits Per Plan
  • Using A License Key Service In A Mobile App
  • Home
  • Docs
  • Getting Started
  • Handling Refunds

Handling Refunds

Eventually you will need to issue a refund to someone who has purchased your app. Handling refunds is a simple process involving the management of the refunded key inside your Dashboard and also rechecking key validity in your app.

How To Refund Keys In The Dashboard #

First, process the refund through your payment processor, then:

  1. Check your payment processor one more time to ensure the money has been fully returned to your user
  2. Go to Dashboard > Key Library and delete that user’s key
dashboard delete key

We recommend deleting refunded keys so it will be impossible for a refunded user to validate it. This ensures a refunded user will not be able to access any part of your app that you have locked behind a successful key check.

Deleting the key also frees up the space in your account limits so that you can generate a new key when it’s needed.

NOTE: Be sure to confirm the refund is finished processing through your payment processor and that the money has been returned to your user’s bank account before deleting their key. Deleted keys cannot be recovered.

Adding Automated Key Checks To Your Project #

If your app isn’t automatically checking keys regularly it can’t tell when a key has been deleted. Now that the end user’s key has been deleted due to the refund we need to ensure your app will recheck the validity of their key in a timely fashion.

NOTE: If your app does not have the ability to automatically recheck keys it will not know if a key has been deleted and will continue to function. It’s important to add this functionality to all your projects.

Adding a simple key check function that runs every time your app launches or, in the case of web apps, uses a cron job to run daily is the simplest way to automatically check keys without user input.

In short, this code should check if a key is still valid by accessing our API at the specified times and then update any locally saved variables of the key activation in your app, such as in a database or a local file on the end user’s device. Designing your code this way will make issuing refunds easy and secure.

We provide several example codes in various languages to accomplish this, based on app startup or as a cron job.

See our documentation on checking keys at startup.

See our documentation on checking keys daily with a cron job.

Was this Helpful?
Still stuck? How can we help?

How can we help?

Updated on April 22, 2024
Encoding And Decoding PHPUnbanning A Valid End User

Powered by BetterDocs

Table of Contents
  • How To Refund Keys In The Dashboard
  • Adding Automated Key Checks To Your Project
  • Get Early Access
  • Try Demo
  • Status
  • API Tester
  • Docs
  • Support
  • Feature Request
  • Feedback
  • About
  • Contact
  • Sitemap
  • Coupons

TOS

Privacy Policy

SLA

© 2025 Batch Keys | Created and maintained by Kayce Media Group

  • Pricing
  • Try Demo
  • Docs
  • Support
    • Tickets
  • About
    • Contact
  • Dashboard