Amazon

This guide describes how to set up InPlayer in-app payments for your Amazon app. When setting things up, please make sure to take your time and follow each step in the below instructions carefully.

If you are planning on using in-app purchases, make sure to let us know so we can enable the proper payment gateway on your account.

Connecting your InPlayer and Amazon accounts

First, log into your InPlayer Dashboard.

Go to Settings, then Integrations, and finally In-App integrations.

Click on Amazon.

Enter the Shared Key from your Amazon developer account, and click Save.

To complete the integration, make sure to follow the Set Up Real-Time Notifications guide here.

To get the HTTP endpoint you need for the URL for Appstore notifications field, do the following:

Go back to the Integrations tab of your InPlayer dashboard.

Click Copy URL.

Your InPlayer and Amazon accounts are now integrated.

How to find the Shared Key

Go to the Shared Key page of your Amazon developer account.

Creating your InPlayer asset

The next step is to create your InPlayer asset.

We offer several different types of assets, so make sure to look at this section for instructions on how to create the correct asset type, depending on your content.

After you’ve created your asset, the next step is to create the in-app purchase, i.e. the Amazon item.

Creating the Amazon item

Next, you need to create the in-app purchase. The in-app purchase is going to be the Amazon counterpart to the price option you have previously set up for your InPlayer asset.

When creating Amazon purchases, you can set up either a PPV price, by using the Consumables item, or a Subscription price by using the Subscription item. The Entitlement item is not used.

Setting up a PPV price

Log into your Amazon developer account and go to your app list.

Open the app you use for InPlayer purchases and go to In-App Items.

Click on Add Single IAP and then Add a Consumable.

Fill out the consumable details.

In Title, enter the title for the purchase.

In SKU, enter the Product ID of the price option for the InPlayer asset you are monetizing.

To get the Product ID, go to the Assets tab of your InPlayer dashboard and open the asset you wish to use.
Go to Price Options, open the price option for which you are creating the in-app purchase, and click the Copy in-app product ID button.

Paste the Product ID into the SKU field in the Amazon consumable form.

Click Add consumable.

Complete the setup by filling out the rest of the consumable details.

Under Display Title and Description, enter a title and description for the purchase.

Under Pricing, choose Yes for Are you charging for this consumable?.

Click Set price.

In My base price enter a price. Make sure it is the same price and currency as in the InPlayer dashboard. Also, make sure not to modify the automatically generated prices for the other currencies.

Click Save.

Finally, click SUBMIT IAP at the top right.

And with that, you are done.

Setting up a Subscription

Log into your Amazon developer account and go to your app list.

Open the app you use for InPlayer purchases and go to In-App items.

Click on Add Single IAP and then on Add a Subscription.

Fill out the details.

In Subscription Title, enter the title for the purchase.

In Subscription SKU, enter the Product ID of the price option for the InPlayer asset you are monetizing.

To get the Product ID, go to the Assets tab of your InPlayer dashboard and open the asset you wish to use.
Go to Price Options, open the price option for which you are creating the in-app purchase, and click the Copy in-app product ID button.

Alternatively, if you are creating a price option for a subscription that already exists on your Amazon Dashboard, instead of changing it’s Subscription SKU value to the InPlayer Product ID, you can do the following:
1. Copy the existing Subscription SKU from your Amazon Dashboard.
2. Go to the price option in the InPlayer Dashboard.
3. Go to Additional info.
4. Check Use external In-App IDs.
5. In the Amazon field, input the Subscription SKU.
6. Save the price option.

Click Add Subscription.

Complete the setup by filling out the rest of the subscription details.

Fill out the Subscription period tab.

Under Display Title and Description, enter a title and description for the purchase.

Under Subscription terms click Add New Term.

In Term Period, select the same period as in the InPlayer dashboard.

In Term SKU, enter the Product ID of the price option for the InPlayer asset you are monetizing, plus an extra bit of text, like_parent or _abc. For example, if the Product ID is 47986_6248, here you would enter 47986_6248_parent or 47986_6248_abc.
The reason for these extra characters is that the real Product ID needs to be entered in the subscription SKU field and you cannot have the same value both there and here. Note also that it doesn’t really matter what you put in this field, but it is still a good idea to have the Product ID stated in it.

Click Create Term.

Choose Yes for Is this a paid subscription?.

For Do you offer a free trial for this subscription?, select Yes or No, depending on your wishes. Note that if you enable a free trial here, you also need to do that in the Additional info tab of the price option settings in the InPlayer Dashboard, making sure the length of the trial matches in both dashboards.

Click Set price.

In My base price enter a price. Make sure it is the same price and currency as in the InPlayer dashboard. Also, make sure not to modify the automatically generated prices for the other currencies.

Click Save.

Note that you can only have one subscription term per subscription (in-App item-subscription). If you wish to have more than one subscription option for your product (ex. monthly and yearly), you need to create two separate subscriptions, each with a single subscription term.


Finally, click SUBMIT IAP at the top right.

And with that, you are done.

To learn more about Amazon in-app purchases, you can check out the official Amazon guide.

If you have any questions in regards to any of this, don’t hesitate to contact us at clients@inplayer.com.

Amazon CloudFront

Introduction

Using the Amazon CloudFront integration, you can quickly and easily protect and monetize your content that is being processed through AWS Elemental and delivered through CloudFront.
All you need to do is insert the CloudFront URL of your content into your CloudFront InPlayer asset, and embed the asset on your webpage.
Using our CloudFront integration is a very secure way of protecting your online content, because our platform makes it impossible for users to share the content once they access it through the paywall.

Let’s take a look at how everything works.

Before you start

Before you can connect your CloudFront and InPlayer accounts, you will need two things:

  • CloudFront Key-Pair ID
  • Private Key

You will also need to make sure that your CloudFront distribution has been set as Private so that your files aren’t directly accessible.

To get the CloudFront Key-Pair ID and the Private Key, just follow these steps:

  1. Log into your AWS account.
  2. On your IAM dashboard, click Security Credentials.
  3. You may receive a message giving you the options to either Continue to security credentials or Get started with IAM Users. Select Continue to security credentials (you can check the option to prevent this pop up from coming up in the future).
  4. Scroll down to Cloudfront Key Pairs.
  5. Check that you have no more than one active key pair. You can’t create a key pair if you already have two active key pairs.
  6. Click Create New Key Pair.
  7. In the Create Key Pair dialog box, click Download Private Key File.
    Important! Save the private key for your CloudFront key pair in a secure location. If someone gets your private key, they can generate valid signed URLs and signed cookies and download your content. You cannot get the private key again, so if you lose or delete it, you must create a new CloudFront key pair.
  8. Close the dialog box.
  9. Scroll up to Access Keys.
  10. Click on Create new access Key.
  11. Click Download Key File (this will come in a .csv format. Note that you can also click on Show above Secret Access Key and then copy the displayed key, and save it in a text file.
  12. This is your CloudFront Key-Pair ID.

For more info, you can visit this page.

Once you have your CloudFront key, you are ready to connect your CloudFront and InPlayer accounts.

Connecting InPlayer and CloudFront

First, log into your InPlayer Dashboard.

Go to Settings, and then to the Integrations tab.

Click on Amazon CloudFront.

Enter the CloudFront Key-Pair ID and Private Key from your Amazon CloudFront account, and click Save.

Your CloudFront account is now paired with your InPlayer account, and you are ready to create your first CloudFront asset.

You can learn how to do that here.

If you have any questions, don’t hesitate to contact us at clients@inplayer.com.