Android app - google in-app purchase implementation -


developing application (android) band. application freely available in play store , in every month add new album ( movie ) application. user can view requested video in app ( via streaming vimeo pro, youtube pro etc ).

but need restrict paid / purchased user can view corresponding video. there user table in our db saving "which user bought album", can view purchased album anytime, multiple times.

come question have implement in-app purchase buying each album. possible ? ie if user liked 1 album, process be

choose album  ->    purchase via in-app store ( single album, not entire )   -> if payment received, save user-video details in db   -> user can view movie in device 

is can done in android app ? or alternative way available ?

please advise in advance

solution:

  • you have create number of product_id number of album.and rest of flow same.
  • for testing,you can make testing account , if don't wish create testing account,you can use android.test.purchased id testing
  • sample application of in-app v3 provided android-sdk,please @ download sample application reference

have @ in-app billing version 3, testing in-app billing reference

i hope helpful !!


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -