Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Where to register IAPs


DeanCode
 Share

Recommended Posts

Hi,

I'm trying to implement (non-subscription) IAPs but I can't see where in the portal I should register them? In the "In-App Purchase" section I see only entries for getting my API key, registering a webhook URL and setting up subscription based IAPs. Am I missing something? or am I miss-understanding how IAPs should be setup?

Kind regards,
Dean

@Corvus

IAP.png

Link to comment
Share on other sites

@DeanCode There is sample code for Unity/Unreal here: https://developer.vive.com/resources/viveport/sdk/documentation/english/viveport-sdk/apis/-app-purchase-iap-api/sample-code/

What engine are you using?

With Unity the current flow is to Viveport Init, check IAP is ready, add items, create Request (with price), and send Purchase.

 

...
Api.Init(InitStatusHandler, VIVEPORT_ID);
...
IAPurchase.IsReady(mListener, API_KEY);
mListener.mItem.items = new string[3];
mListener.mItem.items[0] = "sword";
mListener.mItem.items[1] = "knife";
mListener.mItem.items[2] = "medicine";
IAPurchase.Request(mListener, "1");
...
IAPurchase.Purchase(mListener, mListener.mItem.ticket);
...

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...