# Nakama In-app Purchase Validation

**URL:** <https://forum.heroiclabs.com/t/nakama-in-app-purchase-validation/463>\
**Category:** Local Setup\
**Created:** [January 17, 2020, 12:03am UTC](https://forum.heroiclabs.com/t/nakama-in-app-purchase-validation/463 "2020-01-17T00:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerBytes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bergerbytes/32/1877_2.png) [@BergerBytes](https://forum.heroiclabs.com/u/BergerBytes)\
**Post date:** [January 17, 2020, 12:03am UTC](https://forum.heroiclabs.com/t/nakama-in-app-purchase-validation/463/1 "2020-01-17T00:03:00Z")

</div>

Hello!

I am building an in-app purchasing system for an upcoming project and I am looking for some clarification on some Nakama systems. I came across this [documentation](https://github.com/heroiclabs/nakama-docs/blob/master/docs/in-app-purchase-validation.md). However it has left me a little confused, the two code examples look like they would be called using a client library however I cannot find any examples other than this file. I have also seen this [post](https://forum.heroiclabs.com/t/does-nakama-support-iap-and-is-there-any-available-documentation/293), but when looking at the Lua RPC code it doesn’t seem to match the functionality detailed in the aforementioned documentation. Is the documentation incorrect or am I just very blind? (Which is likely 😄)

Thank you!

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [January 17, 2020, 1:19pm UTC](https://forum.heroiclabs.com/t/nakama-in-app-purchase-validation/463/2 "2020-01-17T13:19:04Z")

</div>

That documentation page you linked is a draft in the docs source repo, it’s not deployed and shouldn’t be used as a reference for current Nakama features. You should browse [the deployed docs](https://heroiclabs.com/docs/) instead.

You can use the sample IAP verifier Lua modules instead: [iap\_verifier.lua](https://github.com/heroiclabs/nakama/blob/master/data/modules/iap_verifier.lua) and [iap\_verifier\_rpc.lua](https://github.com/heroiclabs/nakama/blob/master/data/modules/iap_verifier_rpc.lua). You can see in the function reference comments in [iap\_verifier\_rpc.lua](https://github.com/heroiclabs/nakama/blob/master/data/modules/iap_verifier_rpc.lua) exactly how clients are expected to call these functions - it’s as simple as calling the `iap.apple_verify_payment` RPC (or Google equivalent, whichever you need to use) with the appropriate payload.

---

<div class="post-metadata">

**Author:** ![BergerBytes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bergerbytes/32/1877_2.png) [@BergerBytes](https://forum.heroiclabs.com/u/BergerBytes)\
**Post date:** [January 17, 2020, 3:10pm UTC](https://forum.heroiclabs.com/t/nakama-in-app-purchase-validation/463/3 "2020-01-17T15:10:07Z")

</div>

Gotcha, just wanted to make sure I wasn’t reimplementing anything unnecessarily, Thank you.
