Fix platformId selection in payment::Loader

The old `#if`/`#else`/`#endif` evaluated always to `true` because cocos2d hasn't been imported. :laughing:

Changes in this PR:
* The right id is used
* Fixed a bug with products without any type
* Fixed a bug with products that have an invalid type

**Important**: 
* `googlePlayId` changed to `androidGoogleId`
* `amazonId` changed to `androidAmazonId`