Apps/WebApplicationReceipt: Difference between revisions

Jump to navigation Jump to search
Line 13: Line 13:
* <tt>nbf</tt>: A "not-before" timestamp (seconds from 1970-01-01T00:00:00Z in UTC, RFC3339), indicating when the purchase was completed
* <tt>nbf</tt>: A "not-before" timestamp (seconds from 1970-01-01T00:00:00Z in UTC, RFC3339), indicating when the purchase was completed
* <tt>iat</tt>: An "issued-at" timestamp (seconds from 1970-01-01T00:00:00Z in UTC, RFC3339), indicating when this receipt was issued
* <tt>iat</tt>: An "issued-at" timestamp (seconds from 1970-01-01T00:00:00Z in UTC, RFC3339), indicating when this receipt was issued
* <tt>exp</tt>: (optional) An "expiry" timestamp (seconds from 1970-01-01T00:00:00Z in UTC, RFC3339), indicating when this receipt will exipre
* <tt>detail</tt>: (optional) A URL that contains additional human- or machine-readable detail about the purchase
* <tt>detail</tt>: (optional) A URL that contains additional human- or machine-readable detail about the purchase
* <tt>verify</tt>: (optional) A URL that can be used by an authenticated application to verify a receipt
* <tt>verify</tt>: (optional) A URL that can be used by an authenticated application to verify a receipt
* <tt>reissue</tt>: (optional) A URL that can be used to re-issue a new receipt


=== the product field ===
=== the product field ===
Line 55: Line 57:


The <tt>iat</tt> (issued at) field identifies the time at which the receipt was issued. This claim can be used to determine the age of the token.
The <tt>iat</tt> (issued at) field identifies the time at which the receipt was issued. This claim can be used to determine the age of the token.
=== the exp field ===
The <tt>exp</tt> (expiry) field identifies the time at which the receipt will expire.


=== the detail field ===
=== the detail field ===
Line 63: Line 69:


The <tt>verify</tt> field is a URL.  Is is used for automated verification of a receipt by application receivers.  See "Interaction with the verify URL", below.
The <tt>verify</tt> field is a URL.  Is is used for automated verification of a receipt by application receivers.  See "Interaction with the verify URL", below.
=== the reissue field ===
The <tt>reissue</tt> field is a URL.  Is is used for automated reissuing of receipts.


=== An example receipt ===
=== An example receipt ===
Line 79: Line 89:
   nbf: 131360185,
   nbf: 131360185,
   iat: 131360188,
   iat: 131360188,
  exp: 141360188,
   detail: "https://appstore.com/receipt/5169314356",
   detail: "https://appstore.com/receipt/5169314356",
   verify: "https://appstore.com/verify/5169314356"
   verify: "https://appstore.com/verify/5169314356",
  reissue: "https://appstore.com/reissue/5169314356"
  }
  }


Confirmed users
1,158

edits

Navigation menu