[SDL] In-App Purchases

Martin Felis martin at silef.de
Fri Sep 26 02:04:52 PDT 2014


Thanks for sharing the code! Highly appreciated!

On 26.09.2014 07:51, Pallav Nawani wrote:
> As Promised, here is the In-App Purchase Code:
> https://dl.dropboxusercontent.com/u/38460079/InAppPurchaseCode.zip
>
> I have tried a bit to make it clear & self contained, however I am sure
> that some changes will be needed, esp. in the Android code. I will be
> out of station from Today till 29th September, so I will not be able to
> answer any questions during that time.
>
> *Pallav Nawani*
> *IronCode Gaming Private Limited*
> Website: http://www.ironcode.com
> Twitter: http://twitter.com/Ironcode_Gaming
> Facebook: http://www.facebook.com/Ironcode.Gaming
> Mobile: *9997478768*
>
> On Tue, Sep 23, 2014 at 12:01 PM, Pallav Nawani <pallavnawani at gmail.com
> <mailto:pallavnawani at gmail.com>> wrote:
>
>     Okay, I will share the code. However, the code might be tied to our
>     game engine, and it might need to modified quite a bit.
>
>     *Pallav Nawani*
>     *IronCode Gaming Private Limited*
>     Website: http://www.ironcode.com
>     Twitter: http://twitter.com/Ironcode_Gaming
>     Facebook: http://www.facebook.com/Ironcode.Gaming
>     Mobile: *9997478768*
>
>     On Mon, Sep 22, 2014 at 12:18 PM, M. Gerhardy
>     <martin.gerhardy at gmail.com <mailto:martin.gerhardy at gmail.com>> wrote:
>
>         Could you maybe share the code? Maybe a third party lib could
>         unify that in the sdl way.
>
>         Am 22.09.2014 07:23 schrieb "Pallav Nawani"
>         <pallavnawani at gmail.com <mailto:pallavnawani at gmail.com>>:
>
>             I doubt that there is a cross-platform way. You would need
>             to code for both iOS and Android separately. The way I did
>             it was to create an in-app purchase interface class & then
>             made platform specific derived classes. The iOS specific
>             class tapped into the Objective C API and the Android
>             specific class used JNI to call google's API.
>
>             It was a tedious and sometimes non-obvious process, but it
>             worked.
>
>             *Pallav Nawani*
>             *IronCode Gaming Private Limited*
>             Website: http://www.ironcode.com
>             Twitter: http://twitter.com/Ironcode_Gaming
>             Facebook: http://www.facebook.com/Ironcode.Gaming
>             Mobile: *9997478768*
>
>             On Sun, Sep 21, 2014 at 8:02 AM, ruler501
>             <d.ruler501 at gmail.com <mailto:d.ruler501 at gmail.com>> wrote:
>
>                 __
>                 I'm looking for a cross-platform(iOS and Android) way to
>                 process and verify in-app purchases. Is this possible?
>                 If not what is the best way to do it for each of those
>                 two platforms, note I'm using C++ not C.
>
>                 _______________________________________________
>                 SDL mailing list
>                 SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
>                 http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
>
>             _______________________________________________
>             SDL mailing list
>             SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
>             http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
>         _______________________________________________
>         SDL mailing list
>         SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
>         http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>




More information about the SDL mailing list