Adding a custom purchase validator / provider

If I were to implement a custom purchase validator… (in this case xsolla)… Can I do the “same” thing as others payments?
This is the facebook one…

Assuming I get the network handshake correctly (a function equivalent to what can be found in the iap module)… could I upsert my purchase into the database so I can take advantage of the whole Nakama security features like replay protection and stuff?

I see that upsertPurchase is not exported, but it’s just a db query function that I could recreate on my side. But I know that messing directly with the db is unadviced.

I understand that this is not the ideal way to use nakama and here be dragons :sweat_smile:

I just want to know if I am missing something more in the purchase validation flow
(Or maybe there is an easier way to add a custom validator :stuck_out_tongue: )

Thank you for your time!

I think it’s safe, but it can only be known during a PR review if you are willing to upstream your changes.

1 Like