Some questions about codeless IAP

Greetings,

I’m implementing IAP and have some questions I can’t seem to find answered (either in the manual, in this subforum, the KB, the API documentation, the project examples provided, or via Google search).

Basically it comes down to these:

  • It’s not entirely clear to me where the scope of codeless IAP stops, and scripted IAP begins. I’ve seen recommended that you shouldn’t mix and match the two, but I’m not sure how to prevent that if we don’t know what features are supported by the different methods. For example, do I need to do receipt verification if I’m using codeless IAP, or is that something already handled elsewhere? I see it in the IAPDemo.cs file, but to be honest, I don’t want to untangle all the spaghetti of figuring out how and when these things get called. When an IAPListener gets the OnPurchaseComplete call, does that mean we are good to unlock the content?

  • Once the user clicks an IAPButton, if we are using an IAPListener, we don’t need to keep that button active, correct? It looks like we are just sending a message to the codeless IAP instance and it handles everything. I assume this also means I should not put things in my OnPurchaseComplete / Failed for the buttons, to prevent duplication.

I think that covers my questions for now, but I may have follow ups based on the answers to these. I’m also aware that it’s been recommended to just use scripted IAP, and while that seems like a fine solution, I don’t like reinventing the wheel if I can avoid it.

Cheers,
Dusty

Yes, Codeless doesn’t support receipt validation, you would need to manually update the codeless script, not recommended as it would get overwritten on the next update. Just use Scripted IAP, it’s much easier and more flexible. Codeless is really only for demos.

1 Like

I would recommend starting with the scripted IAP sample project Sample IAP Project

Will do, thanks.