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

A Java library to validate in-app purchase Apple receipts

License

Notifications You must be signed in to change notification settings

Thunderforge/receipt_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A Java library to validate in-app purchase Apple receipts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages