Skip to content

Commit

Permalink
pass consumer locale in checkout v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottAntonacAP committed Jul 21, 2022
1 parent 3cf67ff commit ad9b169
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.afterpay.android.internal

import com.afterpay.android.Afterpay
import com.afterpay.android.AfterpayCheckoutV2Options
import com.afterpay.android.BuildConfig
import kotlinx.serialization.Serializable
Expand All @@ -13,7 +14,8 @@ internal data class AfterpayCheckoutV2(
val pickup: Boolean?,
val buyNow: Boolean?,
val shippingOptionRequired: Boolean?,
val checkoutRedesignForced: Boolean?
val checkoutRedesignForced: Boolean?,
val consumerLocale: String?,
) {
constructor(
token: String,
Expand All @@ -27,6 +29,7 @@ internal data class AfterpayCheckoutV2(
pickup = options.pickup,
buyNow = options.buyNow,
shippingOptionRequired = options.shippingOptionRequired,
checkoutRedesignForced = options.enableSingleShippingOptionUpdate
checkoutRedesignForced = options.enableSingleShippingOptionUpdate,
consumerLocale = Afterpay.language.toString()
)
}

0 comments on commit ad9b169

Please sign in to comment.