Skip to content

Commit

Permalink
Merge pull request #160 from afterpay/fix/checkout-v2-pass-consumer-l…
Browse files Browse the repository at this point in the history
…ocale

Fix: pass consumer locale in checkout v2
  • Loading branch information
ScottAntonacAP authored Jul 21, 2022
2 parents 3cf67ff + ad9b169 commit d9b4286
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 d9b4286

Please sign in to comment.