Discussions

Ask a Question
Back to All

How to get the non-subscription purchase that is just purchased.

Hello, I am using Adapty for subscriptions on my Flutter app.

I am also trying to use Adapty for non-subscriptions.

But when a purchase is made with makePurchase() function,

AdaptyProfile object is returned instead of AdaptyNonSubscription object.

So it looks like I have to compare the AdaptyProfile before and after purchase and find which nonSubscription object is newly created.

Is this right? or is there easier way. This way is so overly complicated.