Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Cannot get order/transcation Id from purchase method #3

Closed
WiseKodama opened this issue Nov 11, 2023 · 0 comments
Closed

Cannot get order/transcation Id from purchase method #3

WiseKodama opened this issue Nov 11, 2023 · 0 comments

Comments

@WiseKodama
Copy link

WiseKodama commented Nov 11, 2023

Greetings,

I am trying to get an orderId / transactionId after a successful purchase.
I am initiating a purchase like so:
Glassfy.purchase(activity, sku!!, null) { transaction, error -> processPurchase(sku!!, transaction, error) }
☝️ will return a transaction, which however contains only the following fields

In order to get orderId I would need to get a Purchase object and the only way to get that seems to be via using the setPurchaseDelegate. The question here is what will trigger first and whether this is even the correct way to get it.
Can someone explain when/how setPurchaseDelegate should be used?

There is also the transactionId, which seems to be attainable only via the PurchaseHistory data. Is that the same as orderId?

Thank you in advance.

@lgarbo lgarbo closed this as completed Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants