Receipt's formats
If you generate the receipt value for receipt event yourself, you should do it in special format depending on the store. Pay attention, please, this receipt is always a string.
Apple App Store
{
\"Store\": \"AppleAppStore\",
\"TransactionID\": \"1000000351234566\",
\"Payload\": \"MIIT3QY.......mctQK8rQgCXKOtlajA==\"
}
Google Play
Pay attention that receipt should match Android receipt requirements. Therefore, first of all, it is necessary to focus on the current requirements of Android receipt. Below is the receipt format relevant at the time of writing the article.
{
\"Store\":\"GooglePlay\",
\"TransactionID\":\"GPA.3314-2478-9433-45800\",
\"Payload\":\"{
\\\"json\\\":\\\"{
\\\\\\\"orderId\\\\\\\":\\\\\\\"GPA.3314-2478-9433-45800\\\\\\\",
\\\\\\\"packageName\\\\\\\":\\\\\\\"com.xxx.xxx\\\\\\\",
\\\\\\\"productId\\\\\\\":\\\\\\\"product_01\\\\\\\",
\\\\\\\"purchaseTime\\\\\\\":1504624447206,
\\\\\\\"purchaseState\\\\\\\":0,
\\\\\\\"developerPayload\\\\\\\":\\\\\\\"...\\\\\\\",
\\\\\\\"purchaseToken\\\\\\\": \\\\\\\"pklaagcihjlifco......4MSrZzqc\\\\\\\"
}\\\",
\\\"signature\\\":\\\"oGAB0....XUHZqeGsRLb6Rkg==\\\"
}\"
}
Samsung Store
{
\"Store\":\"SamsungApps\",
\"TransactionID\":\"TPMTID20170823ILA3107000\",
\"Payload\":\"{
\\\"purchaseId\\\":\\\"3ba7ba4dfc3fb2e3...1e8df4c96a90\\\"
}\"
}