Issue in verifying Android In-App Subscription/Purchase on server side
₹600-1500 INR
K zaplacení v momentě doručení
Server Side Scripting: PHP
Expected Output: Android App is sending RECEIPT to the server and it should receive a response (Subscription Plan is Valid or Not). When a user subscribed any Subscription Plan, He / She is getting a receipt which will send to the server in the JSON format. Server has to communicate with the Google API Server and Verify that the Purchase Token is Valid or not.
Receipt JSON (send by android application):
{
"orderId":"GPA.3317-1000-0225-94803",
"packageName":"[login to view URL]",
"productId":"monthly_0001",
"purchaseTime":1526200087202,
"purchaseState":0,
"developerPayload":"subs: monthly_0001",
"purchaseToken":"oklkgnlkilpppkakppidmelj.AM-J1OzJl4dX3hnniMmoAlOcisykfOvhC2UOoF0f9UXAkVkXyk5ByNWFiMfMUE3zc1E8yrzPqgbq35v5grUoTpPDm6ni4w7DhZUBQ7t6W4WpdaahJ3pqCYl611ed0gHPXo_Z6Igc3Bc6",
"autoRenewing":true
}
I have followed this URL and got
Array
(
[access_token] => ya29.Glu7Be7JhD4JfR9WcFde8xmhExkPgcDsKGHkjC3jOzpZj-UxKbgIIyXUB21CrVDuJRru7qRcN4dtO6_ByVk0S_mm5MZXoKLgHkFSKw6DEF2a32hhd7WH9d_-lLjJ
[token_type] => Bearer
[expires_in] => 3599
[created] => 1526285349
)
Identifikační číslo projektu: #16964788