android pay - Google Wallet Subscription Cancellation Postback and PHP -


i creating google wallet subscriptions via website , marking users active , stores orderid when subscription created postback.

when subscription cancelled, unable set user status inactive. how know user mark inactive when postback comes through?

the sellerdata nor orderid seem sent when postback sent.

i've tried without luck:

if($decoded_jwt->typ === "google/payments/inapp/subscription/v1/canceled") {      $order_id = $decoded_jwt->response->orderid;      $query = "update user set ";     $query .= "user.activewalletsub = '0' "; //0 inactive     $query .= "where user.walletsuborderid = '{$order_id}'";      mysqli_query($connection, $query);  } 

how go associating user google wallet subscription?

thanks input.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -