in-app billing v3 across multiple activities - what is the right approach?

hello guys, if anyone involved with in-app billing v3, how do you implement across multiple activities? Do you use a service, do you replicate code? or do you rely on inheritance for example from a “PurchaseActivity” that implements the relevant functionality? Any reference on the right approach except the android reference docs?