Skip to main content

Ready to market your stellar app?

Samsung Developer Program is your gateway to app monetization success.

Learn More

Samsung Developer Program

Unbind From the IAP Billing Service

After working with the in-app purchases, unbind from the IAP billing service by calling the unbindService() method, which unbinds and shuts down the billing service. This unbinding is implemented in the onDestroy() method in the Shop.cs file.

Shop.cs
// Remove listeners when the application exits

private void OnDestroy()
    {
    ...
    // Unbind from the IAP billing service
    OpenIAB.unbindService();
}

  • Was this article helpful?