TheMonetizr Unity plugin
Integration instructions and documentation
TheMonetizr is a monetization engine for mobile games. Our mission is to help game developers increase player retention, loyalty and create an additional revenue stream. TheMonetizr will help you to monetize your games by selling custom merchandise on game accomplishments.
With our easy-to-integrate plugin, you can connect your game with our platform and let players buy your products using Credit Cards and Apple Pay. Your products will be added to our system, and you will be provided with unique product ID's. To find sample product ID's, please check http://themonetizr.com/samples.
These products will be shown to your players on game actions (level completed or similar). You have full control to choose when which product will be shown to your players. This documentation will guide you through the integration. Right now we support only iOS, Android and Web builds. In Android and WebGL the product is shown in the web browser.
Getting started with TheMonetizr Unity plugin
Our plugin is available for download on GitHub - https://github.com/themonetizr/TheMonetizr-Unity.
Step1: Import the package into your Unity project.
Step 2: Drag TheMonetizr prefab into your first scene.
Step 3: To open product view, call the ShowProductWithID function, either with an Event Handler (i.e. OnClick on a Button component) or via code:
Monetizr.Instance.ShowProductWithID("Provided product ID");
Check product ID's of sample products here:http://themonetizr.com/samples
Now check in the console if the correct product is called. TheMonetizr products will only be shown after you build your game.
Build your Game: Be sure the minimum build target in your "Build Settings" for iOS Devices is set to: iOS 8.0. After building the game, test the integration and make a test order.
Apple Pay (optional - iOS ONLY)
You can enable support for Apple Pay in the product view. Customers using your game will then have the option of paying with Apple Pay, instead of providing their credit card details.
Before you can enable Apple Pay for your iOS app, you need:
• an Apple Mac with Xcode installed
• an Apple Developer Account
• membership of Apple's iOS Developer Program
Obtain an Apple Pay certificate
Use the Certificate Signing Request (CSR) provided upon request by TheMonetizr (firstname.lastname@example.org).
Activate your merchant ID in your iOS app
When you've received the Apple Pay certificate, you must activate your merchant ID to make Apple Pay available in your iOS app.
Before you begin, make sure that you have Xcode installed on your Mac.
1. In Xcode, open your project settings.
2. Choose the Capabilities tab, and slide the Apple Pay switch to ON.
3. Log in to your Developer Account if you're asked to.
4. Enable the Apple Pay Identifiers checkbox next to your merchant ID.