How to get orderId for auto-update transaction using Google Play Developer API?

I developed an Android app in which the inapp subscription is done using the billing version of v3. And I implemented the Google Play Developer api to get the status of the subscription, regardless of whether it is autorotic or not.

The GET method for the Google Play APi developer returns this automatically available status along with other data, such as Expiration Time, Start Time, etc. But I could not find a possible solution to get the subscription order ID, which is used to process the backend. Where can I get this transaction ID from the Google Play Developer api?

Thanks in advance.

+4
source share
1 answer

You don't need orderID, you need "base orderID" and you can generate the current orderID from startTime and expireTime

From the Android developer ( https://developer.android.com/google/play/billing/billing_subscriptions.html#administering ):

Subscription Order Numbers

To track the transactions associated with this subscription, Google payments provide a basic trading account number for all repetitions of the subscription and indicate each recurring transaction by adding an integer as follows:

GPA.1234-5678-9012-34567 (basic order number)

GPA.1234-5678-9012-34567..0 (first repeat identifier)

GPA.1234-5678-9012-34567..1 (second repeat identifier)

GPA.1234-5678-9012-34567..2 (third repeat identifier)

+1

All Articles