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)
Google has deprecated the previous method of sending push notifications. It will stop working on June 2024. If you have an already working solution then you only need to update the B4J side. Do make sure that you switched from the service to a receiver on B4A. The new API is (confusingly) named...
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)
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!