简体   繁体   中英

What do I need to do once I request IAP (in-app purchase)?

I have implemented requesting an IAP using this plugin: https://pub.dev/packages/flutter_inapp_purchase I basically copied their example file and adapted to my project. When testing with Sandbox testers or when testing on Android, everything seems to be working correctly.

Except for this bug: https://github.com/dooboolab/flutter_inapp_purchase/issues/318 which I now am thinking may be because I only requestPurchase when purchasing IAP — nothing else. I read in the docs that there are other methods that we could use, such as: finishTransaction or validateReceipt .

Is any of those after purchase methods required or at least recommended? If recommended, can someone explain why it'd be a good idea to implement? Could it be I experience the bug due to no implementing any of the after purchase methods ( finishTransaction / validateReceipt )?

In the docs says I shall validate the purchase on my back end. I don't understand why I should do it. Why is it even necessary?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM