Created
December 1, 2012 05:26
-
-
Save lxcid/4180678 to your computer and use it in GitHub Desktop.
Comparing decoded `purchase-info` from `SKPaymentTransaction` to `receipt` from Apple's receipt validation response.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The decoded `purchase-info` from `SKPaymentTransaction`: | |
{ | |
bid = "com.example.app"; | |
bvrs = 7; | |
"item-id" = 580191698; | |
"original-purchase-date" = "2012-11-27 15:26:42 Etc/GMT"; | |
"original-purchase-date-ms" = 1354030002000; | |
"original-purchase-date-pst" = "2012-11-27 07:26:42 America/Los_Angeles"; | |
"original-transaction-id" = 1000000059318468; | |
"product-id" = "com.example.app.nc.premium"; | |
"purchase-date" = "2012-11-29 19:18:23 Etc/GMT"; | |
"purchase-date-ms" = 1354216703000; | |
"purchase-date-pst" = "2012-11-29 11:18:23 America/Los_Angeles"; | |
quantity = 1; | |
"transaction-id" = 1000000059511766; | |
"unique-identifier" = 0000b0114818; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The `receipt` from Apple's receipt validation response: | |
{ | |
bid = "com.example.app"; | |
bvrs = 7; | |
"item_id" = 580191698; | |
"original_purchase_date" = "2012-11-27 15:26:42 Etc/GMT"; | |
"original_purchase_date_ms" = 1354030002000; | |
"original_purchase_date_pst" = "2012-11-27 07:26:42 America/Los_Angeles"; | |
"original_transaction_id" = 1000000059318468; | |
"product_id" = "com.example.app.nc.premium"; | |
"purchase_date" = "2012-11-29 19:18:23 Etc/GMT"; | |
"purchase_date_ms" = 1354216703000; | |
"purchase_date_pst" = "2012-11-29 11:18:23 America/Los_Angeles"; | |
quantity = 1; | |
"transaction_id" = 1000000059511766; | |
"unique_identifier" = 0000b0114818; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment