DocumentationIn-app Purchase

In-app Purchase

IAP banner

Introduction

In-app purchases are a key driver of revenue for mobile games, and the VNGGames SDK makes it easy for developers to implement seamless transactions. By integrating with App Store In-app Purchases and Google Play Billing, the SDK allows you to offer a smooth, frictionless experience for purchasing digital products while enhancing user engagement and retention.

What is In-App Purchase?

The In-App Purchase (IAP) feature within the VNGGames SDK not only enables developers to offer in-game items or upgrades securely through Apple StoreKit or Google Play Billing, but also interacts with the VNGGames Payment Platform to verify payments. This integration provides an optimized cost solution for game developers, as they can rely on VNGGames’ built-in payment system instead of building their own. By utilizing this ready-made platform, developers save time and resources while still delivering a seamless and premium experience to players for purchasing virtual currency, exclusive content, or special upgrades.


IAP flow


Key capabilities

Effortless Transactions
VNGGames SDK handles the entire purchase process, from querying available products to final delivery of purchased items.
Secure Payment Handling
VNGGames SDK and VNGGames Payment Platform integrates with App Store and Google Play Billing, ensuring all payments are processed securely.
Low-Code Integration
VNGGames SDK provides an easy-to-implement In-app purchase solution with low-code integration. Developers can quickly enable secure transactions using VNGGames' built-in payment platform, reducing the need for extensive development work.

How it works





Initiating Purchase

The user initiates the purchase by selecting an item from the game’s in-app store. The VNGGames SDK handles the request, guiding the user through the purchasing process.

Billing Process

VNGGames SDK communicates with App Store or Google Play to handle the billing and payment details. The store processes the payment and then SDK verifies the transaction with VNGGames Payment platform.

Receipt Verification

After a successful transaction, the VNGGames Payment Platform verifies the receipt and sends it back to the SDK through callbacks, notifying the game of the payment status

Game Server Notification

Payment platform notifies the game’s server of the successful transaction, and the server delivers the purchased item to the user.

Final Delivery

The item is added to the user’s account, allowing them to immediately use or enjoy the purchased content in the game.



Sample Use Case

Challenge: High server costs and manual verification for in-app purchases

Managing in-app purchases can be resource-intensive for game developers. They often face high costs from setting up servers, handling payment verifications, and ensuring secure transactions for players.

Solution

By using the VNGGames SDK’s In-App Purchase (IAP) feature, developers can eliminate the need for their own servers and manual business verifications. VNGGames SDK integrates seamlessly with Google Play Billing and Apple StoreKit, as well as the VNGGames Payment Platform, to handle all aspects of in-app transactions.

Result

Developers save time, reduce server costs, and improve operational efficiency, while still delivering a premium and secure purchasing experience for users. The game can focus on offering enticing in-game items, knowing that the technical and financial operations are securely managed.