I am making an application that will include billing. I have purchasing working otherwise.
The app links to a PHP server. I want to save the in-app purchase information on my server and confirm using Google Play Market.
I have managed to save the in-app purchase information on my server, but I can't confirm with Google Play Market.
I have tried using this library, but all I see is:
"This library does not (yet) support verifying purchases made via Google Play's In-app Billing."
Is what I want to do possible? If so, how?
Here is my PHP:
$signedData = $request['signedData'];
$signature = $request['signature'];
$signedData = str_replace('\\', '', $signedData);
$signature = str_replace('\\', '', $signature);
define('PUBLIC_KEY', 'MY GOOGLE MARKET PUBLIC KEY');
define('PACKAGE_NAME', 'MY APP PACKAGE NAME');
$validator = new AndroidMarket_Licensing_ResponseValidator(PUBLIC_KEY, PACKAGE_NAME);
$valid = $validator->verify($signedData, $signature);
if($valid){
$result['respon'] = 'sucessed';
} else {
$result['respon'] = 'fail';
}
SendData($result);
$db -> close();