diff --git a/android/app/src/main/java/updated/mysterium/vpn/ui/top/up/summary/PaymentSummaryActivity.kt b/android/app/src/main/java/updated/mysterium/vpn/ui/top/up/summary/PaymentSummaryActivity.kt index da1304017..fc02b469b 100644 --- a/android/app/src/main/java/updated/mysterium/vpn/ui/top/up/summary/PaymentSummaryActivity.kt +++ b/android/app/src/main/java/updated/mysterium/vpn/ui/top/up/summary/PaymentSummaryActivity.kt @@ -89,6 +89,10 @@ class PaymentSummaryActivity : BaseActivity() { paymentStatusViewModel.getPayment(price).observe(this) { it.onSuccess { order -> topUpPriceCardItem = topUpPriceCardItem?.copy(id = order.id) + if (topUpPriceCardItem?.id?.isEmpty() == true) { + showNoAmountPopUp { getPayment(price) } + return@onSuccess + } inflateOrderData(order) } it.onFailure { error -> @@ -111,6 +115,8 @@ class PaymentSummaryActivity : BaseActivity() { } private fun launchPlayBillingPayment() { + if (topUpPriceCardItem?.id?.isEmpty() == true) return + topUpPriceCardItem?.let { paymentViewModel.billingDataSource.launchBillingFlow( this@PaymentSummaryActivity, diff --git a/fastlane/android_version_code b/fastlane/android_version_code index 4146ba56c..b9185e6e7 100644 --- a/fastlane/android_version_code +++ b/fastlane/android_version_code @@ -1 +1 @@ -107147 \ No newline at end of file +107148 \ No newline at end of file