Android Question Rest calls using googleplay apis using json key from google cloud

Markos

Well-Known Member
Licensed User
Longtime User
Hi All,

Any code samples to use the google play api calls to get order details using the json key and converting to jwt or access token etc
 

aeric

Expert
Licensed User
Longtime User
If I understand correctly, I think you don't need to make your own API calls to get the "order" details.

If you mean to query the purchases for Google in-app billing,
B4X:
Wait For (billing.ConnectIfNeeded) Billing_Connected (Result As BillingResult)
    If Result.IsSuccess Then
        Wait For (billing.QueryPurchases("inapp")) Billing_PurchasesQueryCompleted (Result As BillingResult, Purchases As List)
        Log("Query completed: " & Result.IsSuccess)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If you mean getting access token for firebase messaging in sending tool (B4J),
 
Upvote 0

Markos

Well-Known Member
Licensed User
Longtime User
If I understand correctly, I think you don't need to make your own API calls to get the "order" details.

If you mean to query the purchases for Google in-app billing,
B4X:
Wait For (billing.ConnectIfNeeded) Billing_Connected (Result As BillingResult)
    If Result.IsSuccess Then
        Wait For (billing.QueryPurchases("inapp")) Billing_PurchasesQueryCompleted (Result As BillingResult, Purchases As List)
        Log("Query completed: " & Result.IsSuccess)
Hey,

This is invaluable for the in app billing purchases which is actually my other milestone. The hurdle I'm at now is to make the rest call with the request payload including the OrderID to google to query the order details for the one off purchase from the play store. The reasoning is to validate an OrderID and then I create a user account for the user using their email and OrderID. How do I do that and does it somehow have to include the json key I received from google cloud or converting it to an access token?

Many thanks for lending me your ear I really appreciate it!
 
Upvote 0
Top