Skip to content
This repository has been archived by the owner. It is now read-only.
A Java library to validate in-app purchase Apple receipts
Branch: master
Clone or download
Latest commit f872638 Jul 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc updated javadoc Jun 2, 2018
src consistent keywords Jun 3, 2018
.gitignore initialized project, begun junit tests May 29, 2018
LICENSE Update LICENSE May 30, 2018
README.md Update README.md Jul 17, 2018
pom.xml updated pom.xml Jun 2, 2018

README.md

receipt_checker

A Java library to validate Apple Receipts Based on work done in gdx-pay. Intended to be simple to modify and use.

Important This library isn't in active development or production ready!

Example Use

/** Your end use might look something like this */
public class FooApplePaymentController {

  /** Use sandbox, no password, and logging */ 
  private static final AppleReceiptValidator validator = new AppleReceiptValidator(true, null, true);
  
  public FooApplePaymentController(){
  }
  /** Receiving a subscription update from Apple */ 
  public void receiveUpdate(){
    /** Depends on your framework */
    String fooUpdate = getRequestAsJson(...);
    if(!validator.isValid(fooUpdate)){
      //Error handling here
    }
    /** Your business logic here */
  }
  
}

Dependencies

Installation Steps

The library is hosted on Central Repository. Follow the appropriate steps for your build tool e.g. Maven, sbt, etc.

Thank you

hans123456

You can’t perform that action at this time.