flutter_inapp_purchase icon indicating copy to clipboard operation
flutter_inapp_purchase copied to clipboard

Not giving detail of Renew Subscription

Open khizar1556 opened this issue 3 years ago • 4 comments

Version of flutter_inapp_purchase

sdk: ">=2.12.0 <3.0.0"

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

when subscription renew then it gives new transaction detail

Actual behavior

when subscription renew it gives base order id it should give new order id with recurrance like this orderid..1 it just give base orderid

Tested environment (Emulator? Real Device?)

real

Steps to reproduce the behavior

i have one-week subscription when it renews then you just got a base order, not a new orderid so how can i tackle the subscription is active or not

Screenshot

this json i got from inappInstance.getAvailablePurchases() [productId: one_week_subs, transactionId: GPA.3397-5571-2111-77797, transactionDate: 2022-04-20T13:15:03.731, transactionReceipt: {"orderId":"GPA.3397-5571-2111-77797","packageName":"com.speed.vpn.smart.vpnmaster.fast.pubg.tiktok","productId":"one_week_subs","purchaseTime":1650442503731,"purchaseState":0","quantity":1,"autoRenewing":true,"acknowledged":true},

as you can see the transactionid there is no new numbers in the end

khizar1556 avatar May 17 '22 09:05 khizar1556

You need to validate this on server side. E.g. googleapis package with androidpublisher api v3

offline-first avatar May 23 '22 07:05 offline-first

yes i already did but i think you can put this in your library so everyone can use this i searched it and found solution you didn't even mention it in your readme

khizar1556 avatar May 23 '22 07:05 khizar1556

Feel free to make a PR, I am not the author of this repo

offline-first avatar May 23 '22 07:05 offline-first

ok i will add it thanks

khizar1556 avatar May 23 '22 07:05 khizar1556

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 22 '22 02:08 github-actions[bot]

Have you guys found the way of this? i am also facing the same issue right now

HAFIZkhan-source avatar Sep 05 '23 09:09 HAFIZkhan-source