Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Commit

Permalink
Add readme for new transaction details methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrevik committed Feb 26, 2016
1 parent 28ad8ba commit 5a3236d
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ InAppBilling.consumePurchase('android.test.purchased').then(...);
* **receiptData:** String

```javascript
InAppBilling.subscribe('android.test.purchased')
InAppBilling.subscribe('android.test.subscription')
.then((details) => {
console.log(details)
});
Expand All @@ -194,7 +194,7 @@ InAppBilling.subscribe('android.test.purchased')
* **subscribed:** Boolean

```javascript
InAppBilling.isSubscribed('android.test.purchased').then(...);
InAppBilling.isSubscribed('android.test.subscription').then(...);
```

### isPurchased(productId)
Expand Down Expand Up @@ -281,3 +281,45 @@ InAppBilling.getSubscriptionDetails('android.test.subscription').then(...);
```javascript
InAppBilling.getSubscriptionDetailsArray(['android.test.subscription', 'android.test.subscription2']).then(...);
```

### getPurchaseTransactionDetails(productId)
##### Parameter(s)
* **productId (required):** String

##### Returns:
* **transactionDetails:** Object:
* **productId:** String
* **orderId:** String
* **purchaseToken:** String
* **purchaseTime:** String
* **purchaseState:** String
* **receiptSignature:** String
* **receiptData:** String

```javascript
InAppBilling.getPurchaseTransactionDetails('android.test.purchased')
.then((details) => {
console.log(details)
});
```

### getSubscriptionTransactionDetails(productId)
##### Parameter(s)
* **productId (required):** String

##### Returns:
* **transactionDetails:** Object:
* **productId:** String
* **orderId:** String
* **purchaseToken:** String
* **purchaseTime:** String
* **purchaseState:** String
* **receiptSignature:** String
* **receiptData:** String

```javascript
InAppBilling.getSubscriptionTransactionDetails('android.test.subscription')
.then((details) => {
console.log(details)
});
```

0 comments on commit 5a3236d

Please sign in to comment.