Skip to content

Instantly share code, notes, and snippets.

@phamquyhai
Created May 26, 2017 06:58
Show Gist options
  • Save phamquyhai/cd566288de7d86b93da36d1ec1764a91 to your computer and use it in GitHub Desktop.
Save phamquyhai/cd566288de7d86b93da36d1ec1764a91 to your computer and use it in GitHub Desktop.
Receipt
[
{
"purchase" : {
"autoRenewing" : true,
"orderId" : "asdfdg345353463rft345435", // hash unique
"packageName" : "com.example.abc",
"productId" : "book.abc.sub6month",
"purchaseTime" : 78354763544, //The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
"purchaseState" : 0, //The purchase state of the order. Possible values are 0 (purchased), 1 (canceled), or 2 (refunded).
"developerPayload" : "34rsfdt3344asdsd...", // Auto create in Android Client
"purchaseToken": "asdsdg3243rfdsf.." //A token that uniquely identifies a purchase for a given item and user pair.
}
"signature" : "...." //The data signature uses the RSASSA-PKCS1-v1_5 scheme
},
{
"purchase" : {
"autoRenewing" : true,
"orderId" : "asdfdg345353463rft345435", // hash unique
"packageName" : "com.example.abc",
"productId" : "book.abc.sub6month",
"purchaseTime" : 78354763544, //The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
"purchaseState" : 0, //The purchase state of the order. Possible values are 0 (purchased), 1 (canceled), or 2 (refunded).
"developerPayload" : "34rsfdt3344asdsd...", // Auto create in Android Client
"purchaseToken": "asdsdg3243rfdsf.." //A token that uniquely identifies a purchase for a given item and user pair.
}
"signature" : "...." //The data signature uses the RSASSA-PKCS1-v1_5 scheme
}
]
{
"purchase" : {
"autoRenewing" : true,
"orderId" : "asdfdg345353463rft345435", // hash unique
"packageName" : "com.example.abc",
"productId" : "book.abc.sub6month",
"purchaseTime" : 78354763544, //The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
"purchaseState" : 0, //The purchase state of the order. Possible values are 0 (purchased), 1 (canceled), or 2 (refunded).
"developerPayload" : "34rsfdt3344asdsd...", // Auto create in Android Client
"purchaseToken": "asdsdg3243rfdsf.." //A token that uniquely identifies a purchase for a given item and user pair.
}
"signature" : "...." //The data signature uses the RSASSA-PKCS1-v1_5 scheme
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment