docs(): remove identifier from product id (#1432)

This commit is contained in:
Daniel Sogl 2017-04-28 15:33:05 +02:00 committed by Ibby Hadeed
parent f699c6d4b7
commit 83a3569155

View File

@ -16,7 +16,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
* ...
*
* this.iap
* .getProducts(['com.yourapp.prod1', 'com.yourapp.prod2', ...])
* .getProducts(['prod1', 'prod2', ...])
* .then((products) => {
* console.log(products);
* // [{ productId: 'com.yourapp.prod1', 'title': '...', description: '...', price: '...' }, ...]
@ -27,7 +27,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
*
*
* this.iap
* .buy('com.yourapp.prod1')
* .buy('prod1')
* .then((data)=> {
* console.log(data);
* // {
@ -47,7 +47,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
* ```ts
* // fist buy the product...
* this.iap
* .buy('com.yourapp.consumable_prod1')
* .buy('consumable_prod1')
* .then(data => this.iap.consume(data.productType, data.receipt, data.signature))
* .then(() => console.log('product was successfully consumed!'))
* .catch( err=> console.log(err))