Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (28 loc) · 1 KB

README.md

File metadata and controls

34 lines (28 loc) · 1 KB

receipt_checker

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

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

TODO (pom.xml & maven)