Skip to content

Commit

Permalink
Merge pull request #54 from dietmap/dietmap/effective-price-in-pubsub…
Browse files Browse the repository at this point in the history
…-flow

Fix effective price in updates coming from pubsub
  • Loading branch information
matt-sikora authored Nov 25, 2020
2 parents 28a2fd7 + 0bb80ae commit c657016
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class GooglePlaySubscriptionService(val androidPublisherApiClient: AndroidPublis
description = "Google Play subscription update: " + notification.notificationType,
productId = notification.subscriptionId,
countryCode = subscription.countryCode,
price = BigDecimal(subscription.priceAmountMicros).divide(BigDecimal(1000 * 1000)),
price = subscription.calculateEffectivePrice(null),
currencyCode = subscription.priceCurrencyCode,
transactionId = subscription.orderId,
originalTransactionId = subscription.getInitialOrderId(),
Expand Down

0 comments on commit c657016

Please sign in to comment.