Skip to content

Commit

Permalink
add createMap
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrorangel committed Nov 7, 2019
1 parent 861bfc0 commit f700543
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/src/main/java/com/dooboolab/RNIap/RNIapModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ public void onPurchasesUpdated(BillingResult billingResult, @Nullable List<Purch
if (purchases != null) {
WritableMap promiseItem = null;
for (Purchase purchase : purchases) {
promiseItem = Arguments.createMap();
promiseItem.putString("productId", purchase.getSku());
promiseItem.putString("transactionId", purchase.getOrderId());
promiseItem.putDouble("transactionDate", purchase.getPurchaseTime());
Expand Down

0 comments on commit f700543

Please sign in to comment.