mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-01 20:32:55 +08:00
docs(): remove identifier from product id (#1432)
This commit is contained in:
parent
f699c6d4b7
commit
83a3569155
@ -16,7 +16,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* this.iap
|
* this.iap
|
||||||
* .getProducts(['com.yourapp.prod1', 'com.yourapp.prod2', ...])
|
* .getProducts(['prod1', 'prod2', ...])
|
||||||
* .then((products) => {
|
* .then((products) => {
|
||||||
* console.log(products);
|
* console.log(products);
|
||||||
* // [{ productId: 'com.yourapp.prod1', 'title': '...', description: '...', price: '...' }, ...]
|
* // [{ productId: 'com.yourapp.prod1', 'title': '...', description: '...', price: '...' }, ...]
|
||||||
@ -27,7 +27,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* this.iap
|
* this.iap
|
||||||
* .buy('com.yourapp.prod1')
|
* .buy('prod1')
|
||||||
* .then((data)=> {
|
* .then((data)=> {
|
||||||
* console.log(data);
|
* console.log(data);
|
||||||
* // {
|
* // {
|
||||||
@ -47,7 +47,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
* ```ts
|
* ```ts
|
||||||
* // fist buy the product...
|
* // fist buy the product...
|
||||||
* this.iap
|
* this.iap
|
||||||
* .buy('com.yourapp.consumable_prod1')
|
* .buy('consumable_prod1')
|
||||||
* .then(data => this.iap.consume(data.productType, data.receipt, data.signature))
|
* .then(data => this.iap.consume(data.productType, data.receipt, data.signature))
|
||||||
* .then(() => console.log('product was successfully consumed!'))
|
* .then(() => console.log('product was successfully consumed!'))
|
||||||
* .catch( err=> console.log(err))
|
* .catch( err=> console.log(err))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user