hyochan / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
550 stars 235 forks source link

Not giving detail of Renew Subscription #362

Closed khizar1556 closed 2 years ago

khizar1556 commented 2 years ago

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 frominappInstance.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

offline-first commented 2 years ago

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

khizar1556 commented 2 years ago

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

offline-first commented 2 years ago

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

khizar1556 commented 2 years ago

ok i will add it thanks

github-actions[bot] commented 2 years ago

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.

HAFIZkhan-source commented 1 year ago

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