Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ class CTXSpendViewModel @Inject constructor(
merchant.savingsPercentage = this.savingsPercentage
merchant.minCardPurchase = this.minimumCardPurchase
merchant.maxCardPurchase = this.maximumCardPurchase
// TODO: re-enable fixed denoms
merchant.active = this.enabled || this.denominationType == DenominationType.Fixed
merchant.active = this.enabled
merchant.fixedDenomination = this.denominationType == DenominationType.Fixed
merchant.denominations = this.denominations.map { it.toInt() }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class GiftCardDetailsViewModel @Inject constructor(
val timeElapsed = (System.currentTimeMillis() - startPurchaseTime).toDouble() / 1000
if (BuildConfig.DEBUG) {
log.info(
"event:process_gift_card_purchase: {} ms",
"event:process_gift_card_purchase: {} s",
timeElapsed
)
}
Expand Down
13 changes: 13 additions & 0 deletions features/exploredash/src/main/res/layout/item_details_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,19 @@
app:layout_constraintBottom_toTopOf="@id/pay_btn"
/>

<TextView
android:id="@+id/country_availability_text"
style="@style/Overline.Secondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/country_availability"
android:layout_marginBottom="16dp"
android:visibility="visible"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/temporary_unavailable_text"
/>

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:id="@+id/pay_btn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
<string name="create_an_account_at_ctx_spend_or_log_in_to_the_existing_one">Create a DashSpend account or log in to the existing one</string>
<string name="ctx_terms_url" translatable="false">https://ctx.com/gift-card-agreement/</string>
<string name="temporarily_unavailable">Temporarily unavailable</string>
<string name="country_availability">This card works only in the United States</string>
<string name="token_expired_title">Your session expired</string>
<string name="token_expired_message">It looks like you haven’t used DashSpend in a while. For security reasons, you’ve been logged out.\n\nPlease sign in again to continue exploring where to spend your Dash.</string>
</resources>